Package system.directoryservices
Class DirectoryEntry
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.directoryservices.DirectoryEntry
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class DirectoryEntry extends Component
The base .NET class managing System.DirectoryServices.DirectoryEntry, System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DirectoryServices.DirectoryEntry
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.DirectoryServicesstatic String
className
Qualified class name: System.DirectoryServices.DirectoryEntrystatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DirectoryEntry()
DirectoryEntry(Object instance)
Internal constructor.DirectoryEntry(String path)
DirectoryEntry(String path, String username, String password)
DirectoryEntry(String path, String username, String password, AuthenticationTypes authenticationType)
DirectoryEntry(NetObject adsObject)
-
Method Summary
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.DirectoryServices- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.DirectoryServices.DirectoryEntry- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectoryEntry
public DirectoryEntry(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
DirectoryEntry
public DirectoryEntry(NetObject adsObject) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, OutOfMemoryException, CryptographicException, IndexOutOfRangeException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NotSupportedException
OutOfMemoryException
CryptographicException
IndexOutOfRangeException
-
DirectoryEntry
public DirectoryEntry(String path) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, OutOfMemoryException, MissingManifestResourceException
-
DirectoryEntry
public DirectoryEntry(String path, String username, String password) throws Throwable, ArgumentNullException, CultureNotFoundException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
DirectoryEntry
public DirectoryEntry(String path, String username, String password, AuthenticationTypes authenticationType) throws Throwable, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, InvalidOperationException, OutOfMemoryException, MissingManifestResourceException, CryptographicException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public 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 classComponent
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DirectoryEntry cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoDirectoryEntry
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DirectoryEntry
instance- Throws:
Throwable
- in case of error during cast operation
-
Exists
public static boolean Exists(String path) throws Throwable, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, InvalidOperationException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, CryptographicException, FormatException
-
CopyTo
public DirectoryEntry CopyTo(DirectoryEntry newParent) throws Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException, FormatException
-
CopyTo
public DirectoryEntry CopyTo(DirectoryEntry newParent, String newName) throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException
-
Invoke
public NetObject Invoke(String methodName, NetObject... args) throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, TargetInvocationException
-
InvokeGet
public NetObject InvokeGet(String propertyName) throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, TargetInvocationException
-
Close
public void Close() throws Throwable, ArgumentException
- Throws:
Throwable
ArgumentException
-
CommitChanges
public void CommitChanges() throws Throwable, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, FormatException
-
DeleteTree
public void DeleteTree() throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException
-
InvokeSet
public void InvokeSet(String propertyName, NetObject... args) throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, TargetInvocationException
-
MoveTo
public void MoveTo(DirectoryEntry newParent) throws Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException, FormatException, NotSupportedException, OutOfMemoryException
-
MoveTo
public void MoveTo(DirectoryEntry newParent, String newName) throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, NotSupportedException
-
RefreshCache
public void RefreshCache() throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
RefreshCache
public void RefreshCache(String[] propertyNames) throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
RefreshCache
public void RefreshCache(JCORefOut dupParam0) throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
Rename
public void Rename(String newName) throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, NotSupportedException
-
setUsePropertyCache
public void setUsePropertyCache(boolean UsePropertyCache) throws Throwable, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, MissingManifestResourceException
-
getObjectSecurity
public ActiveDirectorySecurity getObjectSecurity() throws Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SystemException, OverflowException
-
setObjectSecurity
public void setObjectSecurity(ActiveDirectorySecurity ObjectSecurity) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException
-
getAuthenticationType
public AuthenticationTypes getAuthenticationType() throws Throwable
- Throws:
Throwable
-
setAuthenticationType
public void setAuthenticationType(AuthenticationTypes AuthenticationType) throws Throwable, ArgumentException
- Throws:
Throwable
ArgumentException
-
getChildren
public DirectoryEntries getChildren() throws Throwable
- Throws:
Throwable
-
getParent
public DirectoryEntry getParent() throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getSchemaEntry
public DirectoryEntry getSchemaEntry() throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getOptions
public DirectoryEntryConfiguration getOptions() throws Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException
-
getProperties
public PropertyCollection getProperties() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException
-
getGuid
public Guid getGuid() throws Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, MissingManifestResourceException, OverflowException
-
getNativeObject
public NetObject getNativeObject() throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getName
public String getName() throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getNativeGuid
public String getNativeGuid() throws Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException, FormatException
-
setPassword
public void setPassword(String Password) throws Throwable, ObjectDisposedException, ArgumentNullException, OutOfMemoryException, CryptographicException, InvalidOperationException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException
-
setPath
public void setPath(String Path) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
-
getSchemaClassName
public String getSchemaClassName() throws Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getUsername
public String getUsername() throws Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException
-
setUsername
public void setUsername(String Username) throws Throwable, ArgumentException, ArgumentNullException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
-