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.String
assemblyFullName
Fully assembly qualified name: System.IO.FileSystem.AccessControl, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.IO.FileSystem.AccessControlstatic java.lang.String
className
Qualified class name: System.IO.FileSystemAclExtensionsstatic JCType
classType
The 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 FileSystemAclExtensions
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoFileSystemAclExtensions
, a cast assert is made to check if types are compatible.static void
Create(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)
static FileStream
Create(FileInfo fileInfo, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize, FileOptions options, FileSecurity fileSecurity)
static DirectoryInfo
CreateDirectory(DirectorySecurity directorySecurity, java.lang.String path)
static DirectorySecurity
GetAccessControl(DirectoryInfo directoryInfo)
static DirectorySecurity
GetAccessControl(DirectoryInfo directoryInfo, AccessControlSections includeSections)
static FileSecurity
GetAccessControl(FileInfo fileInfo)
static FileSecurity
GetAccessControl(FileInfo fileInfo, AccessControlSections includeSections)
static FileSecurity
GetAccessControl(FileStream fileStream)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic void
SetAccessControl(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)
static void
SetAccessControl(FileInfo fileInfo, FileSecurity fileSecurity)
static void
SetAccessControl(FileStream fileStream, FileSecurity fileSecurity)
void
setJCOInstance(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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static FileSystemAclExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoFileSystemAclExtensions
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
FileSystemAclExtensions
instance- 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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
CultureNotFoundException
LockRecursionException
SynchronizationLockException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
LockRecursionException
SynchronizationLockException
CultureNotFoundException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
CultureNotFoundException
SynchronizationLockException
OutOfMemoryException
UnauthorizedAccessException
KeyNotFoundException
PrivilegeNotHeldException
OverflowException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
CultureNotFoundException
SynchronizationLockException
OutOfMemoryException
UnauthorizedAccessException
KeyNotFoundException
PrivilegeNotHeldException
OverflowException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
CultureNotFoundException
SynchronizationLockException
OutOfMemoryException
UnauthorizedAccessException
KeyNotFoundException
PrivilegeNotHeldException
OverflowException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
CultureNotFoundException
SynchronizationLockException
OutOfMemoryException
UnauthorizedAccessException
PrivilegeNotHeldException
OverflowException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
SynchronizationLockException
OutOfMemoryException
UnauthorizedAccessException
KeyNotFoundException
PrivilegeNotHeldException
OverflowException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
IndexOutOfRangeException
OutOfMemoryException
MissingMethodException
TargetInvocationException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
UnauthorizedAccessException
KeyNotFoundException
PrivilegeNotHeldException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
UnauthorizedAccessException
KeyNotFoundException
PrivilegeNotHeldException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
-
-