Package system.directoryservices
Class DirectoryEntry
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.directoryservices.DirectoryEntry
-
- All Implemented Interfaces:
java.lang.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
- 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.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.DirectoryServicesstatic java.lang.String
className
Qualified class name: System.DirectoryServices.DirectoryEntrystatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DirectoryEntry()
DirectoryEntry(java.lang.Object instance)
Internal constructor.DirectoryEntry(java.lang.String path)
DirectoryEntry(java.lang.String path, java.lang.String username, java.lang.String password)
DirectoryEntry(java.lang.String path, java.lang.String username, java.lang.String password, AuthenticationTypes authenticationType)
DirectoryEntry(NetObject adsObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectoryEntry
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDirectoryEntry
, a cast assert is made to check if types are compatible.void
Close()
void
CommitChanges()
DirectoryEntry
CopyTo(DirectoryEntry newParent)
DirectoryEntry
CopyTo(DirectoryEntry newParent, java.lang.String newName)
void
DeleteTree()
static boolean
Exists(java.lang.String path)
AuthenticationTypes
getAuthenticationType()
DirectoryEntries
getChildren()
Guid
getGuid()
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 objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class Typejava.lang.String
getName()
java.lang.String
getNativeGuid()
NetObject
getNativeObject()
ActiveDirectorySecurity
getObjectSecurity()
DirectoryEntryConfiguration
getOptions()
DirectoryEntry
getParent()
java.lang.String
getPath()
PropertyCollection
getProperties()
java.lang.String
getSchemaClassName()
DirectoryEntry
getSchemaEntry()
boolean
getUsePropertyCache()
java.lang.String
getUsername()
NetObject
Invoke(java.lang.String methodName, NetObject... args)
NetObject
InvokeGet(java.lang.String propertyName)
void
InvokeSet(java.lang.String propertyName, NetObject... args)
void
MoveTo(DirectoryEntry newParent)
void
MoveTo(DirectoryEntry newParent, java.lang.String newName)
void
RefreshCache()
void
RefreshCache(java.lang.String[] propertyNames)
void
RefreshCache(JCORefOut dupParam0)
void
Rename(java.lang.String newName)
void
setAuthenticationType(AuthenticationTypes AuthenticationType)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
void
setObjectSecurity(ActiveDirectorySecurity ObjectSecurity)
void
setPassword(java.lang.String Password)
void
setPath(java.lang.String Path)
void
setUsePropertyCache(boolean UsePropertyCache)
void
setUsername(java.lang.String Username)
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.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 java.lang.String assemblyShortName
Assembly name: System.DirectoryServices- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.DirectoryServices.DirectoryEntry- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
DirectoryEntry
public DirectoryEntry(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
DirectoryEntry
public DirectoryEntry() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DirectoryEntry
public DirectoryEntry(NetObject adsObject) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, OutOfMemoryException, CryptographicException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NotSupportedException
OutOfMemoryException
CryptographicException
IndexOutOfRangeException
-
DirectoryEntry
public DirectoryEntry(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, OutOfMemoryException, MissingManifestResourceException
-
DirectoryEntry
public DirectoryEntry(java.lang.String path, java.lang.String username, java.lang.String password) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
DirectoryEntry
public DirectoryEntry(java.lang.String path, java.lang.String username, java.lang.String password, AuthenticationTypes authenticationType) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, InvalidOperationException, OutOfMemoryException, MissingManifestResourceException, CryptographicException
-
-
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 classComponent
- 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 classComponent
- 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 classComponent
- 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 classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public org.mases.jcobridge.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 java.lang.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:
java.lang.Throwable
- in case of error during cast operation
-
Exists
public static boolean Exists(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, InvalidOperationException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, CryptographicException, FormatException
-
CopyTo
public DirectoryEntry CopyTo(DirectoryEntry newParent) throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException, FormatException
-
CopyTo
public DirectoryEntry CopyTo(DirectoryEntry newParent, java.lang.String newName) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException
-
Invoke
public NetObject Invoke(java.lang.String methodName, NetObject... args) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, TargetInvocationException
-
InvokeGet
public NetObject InvokeGet(java.lang.String propertyName) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, TargetInvocationException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
CommitChanges
public void CommitChanges() throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, FormatException
-
DeleteTree
public void DeleteTree() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException
-
InvokeSet
public void InvokeSet(java.lang.String propertyName, NetObject... args) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, TargetInvocationException
-
MoveTo
public void MoveTo(DirectoryEntry newParent) throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException, FormatException, NotSupportedException, OutOfMemoryException
-
MoveTo
public void MoveTo(DirectoryEntry newParent, java.lang.String newName) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, NotSupportedException
-
RefreshCache
public void RefreshCache() throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
RefreshCache
public void RefreshCache(java.lang.String[] propertyNames) throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
RefreshCache
public void RefreshCache(JCORefOut dupParam0) throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
Rename
public void Rename(java.lang.String newName) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, NotSupportedException
-
getUsePropertyCache
public boolean getUsePropertyCache() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUsePropertyCache
public void setUsePropertyCache(boolean UsePropertyCache) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, MissingManifestResourceException
-
getObjectSecurity
public ActiveDirectorySecurity getObjectSecurity() throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SystemException, OverflowException
-
setObjectSecurity
public void setObjectSecurity(ActiveDirectorySecurity ObjectSecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException
-
getAuthenticationType
public AuthenticationTypes getAuthenticationType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthenticationType
public void setAuthenticationType(AuthenticationTypes AuthenticationType) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
getChildren
public DirectoryEntries getChildren() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getParent
public DirectoryEntry getParent() throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getSchemaEntry
public DirectoryEntry getSchemaEntry() throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getOptions
public DirectoryEntryConfiguration getOptions() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException
-
getProperties
public PropertyCollection getProperties() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
FormatException
-
getGuid
public Guid getGuid() throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, MissingManifestResourceException, OverflowException
-
getNativeObject
public NetObject getNativeObject() throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getName
public java.lang.String getName() throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getNativeGuid
public java.lang.String getNativeGuid() throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException, FormatException
-
setPassword
public void setPassword(java.lang.String Password) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, OutOfMemoryException, CryptographicException, InvalidOperationException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException
-
getPath
public java.lang.String getPath() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPath
public void setPath(java.lang.String Path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
-
getSchemaClassName
public java.lang.String getSchemaClassName() throws java.lang.Throwable, ObjectDisposedException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, AbandonedMutexException, MissingManifestResourceException, InvalidOperationException, FormatException, CryptographicException
-
getUsername
public java.lang.String getUsername() throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
FormatException
ArgumentOutOfRangeException
-
setUsername
public void setUsername(java.lang.String Username) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
-