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.StringassemblyFullNameFully assembly qualified name: System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.DirectoryServicesstatic java.lang.StringclassNameQualified class name: System.DirectoryServices.DirectoryEntrystatic JCTypeclassTypeThe 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 DirectoryEntrycast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDirectoryEntry, a cast assert is made to check if types are compatible.voidClose()voidCommitChanges()DirectoryEntryCopyTo(DirectoryEntry newParent)DirectoryEntryCopyTo(DirectoryEntry newParent, java.lang.String newName)voidDeleteTree()static booleanExists(java.lang.String path)AuthenticationTypesgetAuthenticationType()DirectoryEntriesgetChildren()GuidgetGuid()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 Typejava.lang.StringgetName()java.lang.StringgetNativeGuid()NetObjectgetNativeObject()ActiveDirectorySecuritygetObjectSecurity()DirectoryEntryConfigurationgetOptions()DirectoryEntrygetParent()java.lang.StringgetPath()PropertyCollectiongetProperties()java.lang.StringgetSchemaClassName()DirectoryEntrygetSchemaEntry()booleangetUsePropertyCache()java.lang.StringgetUsername()NetObjectInvoke(java.lang.String methodName, NetObject... args)NetObjectInvokeGet(java.lang.String propertyName)voidInvokeSet(java.lang.String propertyName, NetObject... args)voidMoveTo(DirectoryEntry newParent)voidMoveTo(DirectoryEntry newParent, java.lang.String newName)voidRefreshCache()voidRefreshCache(java.lang.String[] propertyNames)voidRefreshCache(JCORefOut dupParam0)voidRename(java.lang.String newName)voidsetAuthenticationType(AuthenticationTypes AuthenticationType)voidsetJCOInstance(JCObject instance)voidsetObjectSecurity(ActiveDirectorySecurity ObjectSecurity)voidsetPassword(java.lang.String Password)voidsetPath(java.lang.String Path)voidsetUsePropertyCache(boolean UsePropertyCache)voidsetUsername(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
-
-
Constructor Detail
-
DirectoryEntry
public DirectoryEntry(java.lang.Object instance) throws java.lang.ThrowableInternal 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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNotSupportedExceptionOutOfMemoryExceptionCryptographicExceptionIndexOutOfRangeException
-
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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classComponent- 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 classComponent- 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 classComponent- 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 classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DirectoryEntry cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDirectoryEntry, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DirectoryEntryinstance- 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.ThrowableArgumentException
-
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.ThrowableArgumentException
-
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.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatException
-
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.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionArgumentOutOfRangeException
-
setUsername
public void setUsername(java.lang.String Username) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
-