Package system.io
Class FileSystemAclExtensions
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.FileSystemAclExtensions
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class FileSystemAclExtensions extends NetObject
The base .NET class managing System.IO.FileSystemAclExtensions, System.IO.FileSystem.AccessControl, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.FileSystemAclExtensions
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.IO.FileSystem.AccessControl, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.IO.FileSystem.AccessControlstatic java.lang.StringclassNameQualified class name: System.IO.FileSystemAclExtensionsstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description FileSystemAclExtensions()FileSystemAclExtensions(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSystemAclExtensionscast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoFileSystemAclExtensions, a cast assert is made to check if types are compatible.static voidCreate(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)static FileStreamCreate(FileInfo fileInfo, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize, FileOptions options, FileSecurity fileSecurity)static DirectoryInfoCreateDirectory(DirectorySecurity directorySecurity, java.lang.String path)static DirectorySecurityGetAccessControl(DirectoryInfo directoryInfo)static DirectorySecurityGetAccessControl(DirectoryInfo directoryInfo, AccessControlSections includeSections)static FileSecurityGetAccessControl(FileInfo fileInfo)static FileSecurityGetAccessControl(FileInfo fileInfo, AccessControlSections includeSections)static FileSecurityGetAccessControl(FileStream fileStream)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic voidSetAccessControl(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)static voidSetAccessControl(FileInfo fileInfo, FileSecurity fileSecurity)static voidSetAccessControl(FileStream fileStream, FileSecurity fileSecurity)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IO.FileSystem.AccessControl, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IO.FileSystem.AccessControl- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.FileSystemAclExtensions- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileSystemAclExtensions
public FileSystemAclExtensions(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
FileSystemAclExtensions
public FileSystemAclExtensions() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static FileSystemAclExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoFileSystemAclExtensions, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
FileSystemAclExtensionsinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CreateDirectory
public static DirectoryInfo CreateDirectory(DirectorySecurity directorySecurity, java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, LockRecursionException, SynchronizationLockException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionLockRecursionExceptionSynchronizationLockException
-
Create
public static FileStream Create(FileInfo fileInfo, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize, FileOptions options, FileSecurity fileSecurity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, LockRecursionException, SynchronizationLockException, CultureNotFoundException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionSynchronizationLockExceptionCultureNotFoundExceptionOutOfMemoryExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionIOException
-
GetAccessControl
public static DirectorySecurity GetAccessControl(DirectoryInfo directoryInfo, AccessControlSections includeSections) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, SynchronizationLockException, OutOfMemoryException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionSynchronizationLockExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionOverflowException
-
GetAccessControl
public static DirectorySecurity GetAccessControl(DirectoryInfo directoryInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, SynchronizationLockException, OutOfMemoryException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionSynchronizationLockExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionOverflowException
-
GetAccessControl
public static FileSecurity GetAccessControl(FileInfo fileInfo, AccessControlSections includeSections) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, SynchronizationLockException, OutOfMemoryException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionSynchronizationLockExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionOverflowException
-
GetAccessControl
public static FileSecurity GetAccessControl(FileInfo fileInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, SynchronizationLockException, OutOfMemoryException, UnauthorizedAccessException, PrivilegeNotHeldException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionSynchronizationLockExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionOverflowException
-
GetAccessControl
public static FileSecurity GetAccessControl(FileStream fileStream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SynchronizationLockException, OutOfMemoryException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionSynchronizationLockExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionOverflowException
-
Create
public static void Create(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, IndexOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionLockRecursionExceptionAbandonedMutexExceptionSynchronizationLockExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionFormatException
-
SetAccessControl
public static void SetAccessControl(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionLockRecursionExceptionAbandonedMutexExceptionSynchronizationLockExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldException
-
SetAccessControl
public static void SetAccessControl(FileInfo fileInfo, FileSecurity fileSecurity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionLockRecursionExceptionAbandonedMutexExceptionSynchronizationLockExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldException
-
SetAccessControl
public static void SetAccessControl(FileStream fileStream, FileSecurity fileSecurity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, LockRecursionException, AbandonedMutexException, SynchronizationLockException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionLockRecursionExceptionAbandonedMutexExceptionSynchronizationLockException
-
-