Package com.axemble.vdoc.sdk.impl
Class DirectoryModuleImpl
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.CoreModule
com.axemble.vdoc.sdk.impl.DirectoryModuleImpl
- All Implemented Interfaces:
IBaseDirectoryModule,IDirectoryModule,IModule,Serializable,Remote
The IDirectoryModule implementation
- See Also:
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.CoreModule
properties -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use com.axemble.vdoc.sdk.Modules.getDirectoryModule() instead. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a child group.voidaddLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, ILocalization localization, boolean heritable) Add localizationScope to the localizationScopeSupport objectvoidAdds a user to a group.voidaddOrganizationScope(IUser user, IOrganization organization, boolean heritable) Add OrganizationScope to the User objectStarts a new transaction or use the current one.beginTransaction(Object currentObject) Starts a new transaction if required.voidbreakLocalizationScopeInheritance(ILocalizationScopeSupport localizationScopeSupport) break the localizationScope inheritance for the localizationScopeSupport objectvoidbreak the organizationScope inheritance for the user objectvoidCommits the current transaction.voidcommitTransaction(Object currentObject) Commit a transactioncreateAttribute(String name, int type, Object value) Deprecated.createGroup(IContext context, IGroup group, String label) Allows to create a child group.createGroup(IContext context, IGroup group, String name, String label) Allows to create a child group.createGroup(IContext context, IOrganization organization, String label) Allows to create a group.createGroup(IContext context, IOrganization organization, String name, String label) Allows to create a group.createGroup(IContext context, IOrganization organization, String name, String label, String categoryName) Allows to create a group.createLocalization(IContext context, ILocalization localization, String label) Allows to create a child localization.createLocalization(IContext context, ILocalization localization, String name, String label) Allows to create a child localization.createLocalization(IContext context, String label) Allows to create a localization at the root level.createLocalization(IContext context, String name, String label) Allows to create a localization at the root level.createOrganization(IContext context, IOrganization organization, String label) Allows to create a child organization.createOrganization(IContext context, IOrganization organization, String name, String label) Allows to create a child organization.createOrganization(IContext context, String label) Allows to create an organization at the root level.createOrganization(IContext context, String name, String label) Allows to create an organization at the root level.createSystemProfile(IContext context, String name) Creates aIProfile.createUser(IContext context, String login, String password, IOrganization organization) Allows to create a user into an organization.generateSystemName(String label) Generate a valid system name for this module and this label.Collection<? extends IGroup> getAllChildren(IGroup group) Retrieves all the children of a specified group object.Collection<? extends IUser> getAllMembers(IGroup group) Retrieves all the members of the group.Collection<? extends IGroup> getAllParents(IGroup group) Retrieves all the parents of a specified group object.Collection<? extends IGroup> getAllParents(IUser user) Retrieves all the parents of a specified user.Gets the extended attributes catalogCollection<? extends IGroup> getChildren(IGroup group) Retrieves the children of a specified group object.Gets a directory transformer.getElement(Object object) Retrieves anIElementobject from an object.getGroup(IContext context, IOrganization organization, String name) Retrieves a group by its system name on an organization scope.Retrieves a group by its system name.getGroup(IStorageKey key) Retrieves a group object by itsIStorageKeyobject.Deprecated.getLocalization(IContext context, ILocalization parent, String name) Deprecated.getLocalization(IContext context, String name) Retrieves a localization by its system name.Retrieves a localization object by itsIStorageKeyobject.getLocalization(Object object) Deprecated.getLocalizationByPathLabel(IContext context, String path) Retrieves a localization by its path.getLocalizationPathLabel(ILocalization localization) Generate path label of the localization "/" in label will be replaced by "\\/"Collection<? extends ILocalization> getLocalizations(IContext context) Retrieves all the localizations.Collection<? extends ILocalization> getLocalizations(IContext context, ILocalization parent) Retrieves the localizations of aILocalizationobject.Collection<? extends IDirectoryLocalizationScope> getLocalizationScopes(ILocalizationScopeSupport localizationScopeSupport) get the localizationScopes for the localizationScopeSupport objectCollection<? extends IUser> getMembers(IGroup group) Retrieves the members of the group.getOrganization(IContext context, IOrganization parent, String name) Deprecated.getOrganization(IContext context, String name) Retrieves an organization by its system name (the system name is unique on the server).Retrieves an organization by itsIStorageKeyobject.getOrganization(Object object) Deprecated.getOrganizationByPathLabel(IContext context, String path) Retrieves an organization by its path.getOrganizationPathLabel(IOrganization organization) Generate path label of the organization "/" in label will be replaced by "\\/"Collection<? extends IOrganization> getOrganizations(IContext context) Retrieves all the organizations.Collection<? extends IOrganization> getOrganizations(IContext context, IOrganization parent) Retrieves the organizations of a specifiedIOrganizationobject.Collection<? extends IDirectoryOrganizationScope> getOrganizationScopes(IUser user) Gets the OrganizationScope for the User objectCollection<? extends IGroup> getParents(IGroup group) Retrieves the direct parents of a specified group object.Collection<? extends IGroup> getParents(IUser user) Retrieves the parents of a specified user.getResourceDefinition(IContext context, String name) Gets an extended attributes tablegetSearchController(IConnectionDefinition connectionDefinition) Gets a search controller object by specifying aIConnectionDefinitionobject.getSearchController(IDataSourceReference reference) Gets a search controller object by specifying aIDataSourceReferenceobject.getSearchController(IJdbcReference reference) Gets a search controller object by specifying a JDBC external reference.getSecurityController(ISecuritySupport securitySupport) Gets a security controller to manipulate the rights on a specified object.getSystemProfile(IContext context, String name) Retrieves a systemIProfileobject by its system name.Collection<? extends IProfile> getSystemProfiles(IContext context) Retrieves a collection of systemIProfileobjects.Gets a transformer.Deprecated.Collection<? extends IUser> Retrieves all the users.Collection<? extends IUser> getUsers(IContext context, ILocalization localization) Retrieves all the users of a specified localization.Collection<? extends IUser> getUsers(IContext context, IOrganization organization) Retrieves all the users of a specified organization.voidinitialize(Properties properties) Initializes the module.booleanChecks if the group is child of another group.booleanisLocalizationScopeInherited(ILocalizationScopeSupport localizationScopeSupport) Checks if the localization scope is inheritedbooleanisMemberOf(IUser user, IGroup group, boolean recursive) Checks if a user is member of a group.booleanis organizationScope inheritancevoidremoveChild(IGroup child, IGroup group) Removes a child group object.voidremoveLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, IDirectoryLocalizationScope directoryLocalizationScope) remove the localizationScope to the localizationScopeSupport objectvoidremoveMember(IUser user, IGroup group) Removes a user from a group.voidremoveOrganizationScope(IUser user, IDirectoryOrganizationScope directoryOrganizationScope) Removes the directoryOrganizationScope to the user's OrganizationScopevoidrestoreLocalizationScopeInheritance(ILocalizationScopeSupport localizationScopeSupport) restore the localizationScope inheritance for the localizationScopeSupport objectvoidrestore the organizationScope inheritance for the user objectvoidRoll back the current transaction.voidrollbackTransaction(Object currentObject) Roll back a transactionMethods inherited from class com.axemble.vdoc.sdk.impl.CoreModule
convertId, createAttachment, createAttachment, createAttachment, createAttachment, createProfile, findNativeClass, getAnonymous, getAnonymousContext, getComponentsFactory, getConfiguration, getContext, getContext, getContext, getContextByLogin, getDefinitionsFactory, getElementByProtocolURI, getElementFromExternalElement, getExternalElement, getExternalElement, getLanguage, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProfile, getProfile, getProfiles, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getUser, getUser, getUserByLogin, isTransactionActive, setTransactionTimeout, unInitializeMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
getTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IDirectoryModule
createAttachment, createAttachment, createAttachment, createAttachment, getElementByProtocolURI, getUser, getUserByLoginMethods inherited from interface com.axemble.vdoc.sdk.modules.IModule
convertId, findNativeClass, getAnonymous, getAnonymousContext, getContext, getContext, getContextByLogin, getElementFromExternalElement, getExternalElement, getExternalElement, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getTranslation, getTranslationForLanguage, getTranslationKey, isTransactionActive, setTransactionTimeout, unInitialize
-
Constructor Details
-
DirectoryModuleImpl
Deprecated.Use com.axemble.vdoc.sdk.Modules.getDirectoryModule() instead.
-
-
Method Details
-
initialize
Description copied from interface:IModuleInitializes the module.- Specified by:
initializein interfaceIModule- Overrides:
initializein classCoreModule- Parameters:
properties- The custom properties.
-
beginTransaction
Description copied from interface:IModuleStarts a new transaction or use the current one.- Specified by:
beginTransactionin interfaceIModule- Overrides:
beginTransactionin classCoreModule- Returns:
- The report object.
-
commitTransaction
public void commitTransaction()Description copied from interface:IModuleCommits the current transaction.- Specified by:
commitTransactionin interfaceIModule- Overrides:
commitTransactionin classCoreModule
-
rollbackTransaction
public void rollbackTransaction()Description copied from interface:IModuleRoll back the current transaction.- Specified by:
rollbackTransactionin interfaceIModule- Overrides:
rollbackTransactionin classCoreModule
-
beginTransaction
Description copied from interface:IModuleStarts a new transaction if required.- Specified by:
beginTransactionin interfaceIModule- Overrides:
beginTransactionin classCoreModule- Parameters:
currentObject- The synchronized object. Not used anymore.- Returns:
- The report object.
-
commitTransaction
Description copied from class:CoreModuleCommit a transaction- Specified by:
commitTransactionin interfaceIModule- Overrides:
commitTransactionin classCoreModule- Parameters:
currentObject- The synchronized object. Not used anymore.
-
rollbackTransaction
Description copied from class:CoreModuleRoll back a transaction- Specified by:
rollbackTransactionin interfaceIModule- Overrides:
rollbackTransactionin classCoreModule- Parameters:
currentObject- The synchronized object. Not used anymore.
-
createGroup
public IGroup createGroup(IContext context, IGroup group, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a child group.- Specified by:
createGroupin interfaceIBaseDirectoryModule- Specified by:
createGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.group- The parent group.label- The label of the group. Be aware the system name will be generated automatically.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IGroup group, String name, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a child group.- Specified by:
createGroupin interfaceIBaseDirectoryModule- Specified by:
createGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.group- The parent group.name- The system name of the group.label- The label of the group.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IOrganization organization, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a group.- Specified by:
createGroupin interfaceIBaseDirectoryModule- Specified by:
createGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- The organization object.label- The label of the group. Be aware the system name will be automatically generated.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IOrganization organization, String name, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a group.- Specified by:
createGroupin interfaceIBaseDirectoryModule- Specified by:
createGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- The organization object.name- The system name of the group.label- The label of the group.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IOrganization organization, String name, String label, String categoryName) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a group.- Specified by:
createGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- The organization object.name- The system name of the group.label- The label of the group.categoryName- The category's name of the group.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
getTransformer
Description copied from interface:IDirectoryModuleGets a transformer.- Specified by:
getTransformerin interfaceIBaseDirectoryModule- Specified by:
getTransformerin interfaceIDirectoryModule- Returns:
- A
ITransformerobject. - Throws:
DirectoryModuleException- Default module exception.
-
addChild
Description copied from interface:IDirectoryModuleAdds a child group.- Specified by:
addChildin interfaceIBaseDirectoryModule- Specified by:
addChildin interfaceIDirectoryModule- Parameters:
child- The child group.group- The parent group.- Throws:
DirectoryModuleException- default module exception.
-
addMember
Description copied from interface:IDirectoryModuleAdds a user to a group.- Specified by:
addMemberin interfaceIBaseDirectoryModule- Specified by:
addMemberin interfaceIDirectoryModule- Parameters:
user- The user object to add.group- The parent group.- Throws:
DirectoryModuleException- default module exception.
-
createAttribute
Deprecated.Description copied from interface:IDirectoryModuleAllows to create an attribute.- Specified by:
createAttributein interfaceIBaseDirectoryModule- Specified by:
createAttributein interfaceIDirectoryModule- Parameters:
name- The name of the attribute.type- The type of the attribute. Check theIAttribute.ITypeinterface.value- The associated value to the attribute.- Returns:
- A
IAttributeobject.
-
createLocalization
public ILocalization createLocalization(IContext context, ILocalization localization, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a child localization.- Specified by:
createLocalizationin interfaceIBaseDirectoryModule- Specified by:
createLocalizationin interfaceIDirectoryModule- Parameters:
context- The execution context.localization- The parentILocalizationobject.label- The label of the localization. Be aware the system name will be generated automatically.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createLocalization
public ILocalization createLocalization(IContext context, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a localization at the root level.- Specified by:
createLocalizationin interfaceIBaseDirectoryModule- Specified by:
createLocalizationin interfaceIDirectoryModule- Parameters:
context- The execution context.label- The label of the localization. Be aware the system name will be generated automatically.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createLocalization
public ILocalization createLocalization(IContext context, String name, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a localization at the root level.- Specified by:
createLocalizationin interfaceIBaseDirectoryModule- Specified by:
createLocalizationin interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of the localization.label- The label of the localization.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createLocalization
public ILocalization createLocalization(IContext context, ILocalization localization, String name, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a child localization.- Specified by:
createLocalizationin interfaceIBaseDirectoryModule- Specified by:
createLocalizationin interfaceIDirectoryModule- Parameters:
context- The execution context.localization- The parentILocalizationobject.name- The system name of the localization.label- The label of the localization.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, IOrganization organization, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a child organization.- Specified by:
createOrganizationin interfaceIBaseDirectoryModule- Specified by:
createOrganizationin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- The parentIOrganizationobject.label- The label of the organization. Be aware the system name of the organization will be generated.- Returns:
- A
IOrganizationobject - Throws:
DirectoryModuleException- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create an organization at the root level.- Specified by:
createOrganizationin interfaceIBaseDirectoryModule- Specified by:
createOrganizationin interfaceIDirectoryModule- Parameters:
context- The execution context.label- The label of the organization. Be aware the system name of the organization will be generated.- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, IOrganization organization, String name, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a child organization.- Specified by:
createOrganizationin interfaceIBaseDirectoryModule- Specified by:
createOrganizationin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- The parentIOrganizationobject.name- The system name of the organization.label- The label of the organization. Be aware the system name of the organization will be generated.- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, String name, String label) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create an organization at the root level.- Specified by:
createOrganizationin interfaceIBaseDirectoryModule- Specified by:
createOrganizationin interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of the organization.label- The label of the organization. Be aware the system name of the organization will be generated.- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
createUser
public IUser createUser(IContext context, String login, String password, IOrganization organization) throws DirectoryModuleException Description copied from interface:IDirectoryModuleAllows to create a user into an organization.- Specified by:
createUserin interfaceIBaseDirectoryModule- Specified by:
createUserin interfaceIDirectoryModule- Parameters:
context- The execution context.login- The login of the userpassword- The password of the userorganization- The parentIOrganizationobject.- Returns:
- A
IUserobject. - Throws:
DirectoryModuleException- default module exception.
-
getAllChildren
Description copied from interface:IDirectoryModuleRetrieves all the children of a specified group object.- Specified by:
getAllChildrenin interfaceIBaseDirectoryModule- Specified by:
getAllChildrenin interfaceIDirectoryModule- Parameters:
group- The group to search for.- Returns:
- A java.util.Collection of
IGroupobjects.
-
getAllMembers
Description copied from interface:IDirectoryModuleRetrieves all the members of the group.- Specified by:
getAllMembersin interfaceIBaseDirectoryModule- Specified by:
getAllMembersin interfaceIDirectoryModule- Parameters:
group- The group.- Returns:
- A java.util.Collection of
IUserobjects.
-
getAllParents
Description copied from interface:IDirectoryModuleRetrieves all the parents of a specified group object.- Specified by:
getAllParentsin interfaceIBaseDirectoryModule- Specified by:
getAllParentsin interfaceIDirectoryModule- Parameters:
group- The group to search for.- Returns:
- A java.util.Collection of
IGroupobjects.
-
getAllParents
Description copied from interface:IDirectoryModuleRetrieves all the parents of a specified user.- Specified by:
getAllParentsin interfaceIBaseDirectoryModule- Specified by:
getAllParentsin interfaceIDirectoryModule- Parameters:
user- The user to search for.- Returns:
- A java.util.Collection of
IGroupobjects.
-
getChildren
Description copied from interface:IDirectoryModuleRetrieves the children of a specified group object.- Specified by:
getChildrenin interfaceIBaseDirectoryModule- Specified by:
getChildrenin interfaceIDirectoryModule- Parameters:
group- The group to search for.- Returns:
- A java.util.Collection of
IGroupobjects.
-
getDirectoryTransformer
Description copied from interface:IDirectoryModuleGets a directory transformer.- Specified by:
getDirectoryTransformerin interfaceIBaseDirectoryModule- Specified by:
getDirectoryTransformerin interfaceIDirectoryModule- Returns:
- A
IDirectoryTransformerobject. - Throws:
DirectoryModuleException- Default module exception.
-
getElement
Description copied from interface:IDirectoryModuleRetrieves anIElementobject from an object.- Specified by:
getElementin interfaceIBaseDirectoryModule- Specified by:
getElementin interfaceIDirectoryModule- Parameters:
object- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IElementobject. - Throws:
DirectoryModuleException- default module exception.
-
getGroup
public IGroup getGroup(IContext context, IOrganization organization, String name) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves a group by its system name on an organization scope.- Specified by:
getGroupin interfaceIBaseDirectoryModule- Specified by:
getGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- The parentIOrganizationobject.name- The system name of the group.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
getGroup
Description copied from interface:IDirectoryModuleRetrieves a group by its system name.- Specified by:
getGroupin interfaceIBaseDirectoryModule- Specified by:
getGroupin interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of the group.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
getGroup
Deprecated.Description copied from interface:IDirectoryModuleRetrieves a group from an object.- Specified by:
getGroupin interfaceIBaseDirectoryModule- Specified by:
getGroupin interfaceIDirectoryModule- Parameters:
object- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
getLocalization
@Deprecated public ILocalization getLocalization(IContext context, ILocalization parent, String name) throws DirectoryModuleException Deprecated.Description copied from interface:IDirectoryModuleRetrieves a localization by its system name and a parent localization object.- Specified by:
getLocalizationin interfaceIBaseDirectoryModule- Specified by:
getLocalizationin interfaceIDirectoryModule- Parameters:
context- The execution context.parent- The parentILocalizationobject.name- The system name of the localization.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getLocalization
Description copied from interface:IDirectoryModuleRetrieves a localization by its system name.- Specified by:
getLocalizationin interfaceIBaseDirectoryModule- Specified by:
getLocalizationin interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of the localization.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getLocalization
Deprecated.Description copied from interface:IDirectoryModuleRetrieves an localization from an object.- Specified by:
getLocalizationin interfaceIBaseDirectoryModule- Specified by:
getLocalizationin interfaceIDirectoryModule- Parameters:
object- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getLocalizationByPathLabel
public ILocalization getLocalizationByPathLabel(IContext context, String path) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves a localization by its path.- Specified by:
getLocalizationByPathLabelin interfaceIBaseDirectoryModule- Specified by:
getLocalizationByPathLabelin interfaceIDirectoryModule- Parameters:
context- The execution context.path- The path of the localization built from labels.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getLocalizationPathLabel
Description copied from interface:IDirectoryModuleGenerate path label of the localization "/" in label will be replaced by "\\/"- Specified by:
getLocalizationPathLabelin interfaceIBaseDirectoryModule- Specified by:
getLocalizationPathLabelin interfaceIDirectoryModule- Parameters:
localization- the localization- Returns:
- localization path label
-
getLocalizations
public Collection<? extends ILocalization> getLocalizations(IContext context, ILocalization parent) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves the localizations of aILocalizationobject.- Specified by:
getLocalizationsin interfaceIBaseDirectoryModule- Specified by:
getLocalizationsin interfaceIDirectoryModule- Parameters:
context- The execution context.parent- The parentILocalizationobject.- Returns:
- A java.util.Collection of
ILocalizationobjects. - Throws:
DirectoryModuleException- default module exception.
-
getLocalizations
public Collection<? extends ILocalization> getLocalizations(IContext context) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves all the localizations.- Specified by:
getLocalizationsin interfaceIBaseDirectoryModule- Specified by:
getLocalizationsin interfaceIDirectoryModule- Parameters:
context- The execution context.- Returns:
- A java.util.Collection of
ILocalizationobjects. - Throws:
DirectoryModuleException- default module exception.
-
getMembers
Description copied from interface:IDirectoryModuleRetrieves the members of the group.- Specified by:
getMembersin interfaceIBaseDirectoryModule- Specified by:
getMembersin interfaceIDirectoryModule- Parameters:
group- The group.- Returns:
- A java.util.Collection of
IUserobjects.
-
getOrganization
@Deprecated public IOrganization getOrganization(IContext context, IOrganization parent, String name) throws DirectoryModuleException Deprecated.Description copied from interface:IDirectoryModuleRetrieves an organization by its name and a parent organization.- Specified by:
getOrganizationin interfaceIBaseDirectoryModule- Specified by:
getOrganizationin interfaceIDirectoryModule- Parameters:
context- The execution context.parent- The parentIOrganizationobject.name- The system name of the organization.- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getOrganization
Description copied from interface:IDirectoryModuleRetrieves an organization by its system name (the system name is unique on the server).- Specified by:
getOrganizationin interfaceIBaseDirectoryModule- Specified by:
getOrganizationin interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of the organization.- Returns:
- A
IOrganizationobject - Throws:
DirectoryModuleException- default module exception.
-
getOrganization
Deprecated.Description copied from interface:IDirectoryModuleRetrieves an organization from an object.- Specified by:
getOrganizationin interfaceIBaseDirectoryModule- Specified by:
getOrganizationin interfaceIDirectoryModule- Parameters:
object- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getOrganizationByPathLabel
public IOrganization getOrganizationByPathLabel(IContext context, String path) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves an organization by its path.- Specified by:
getOrganizationByPathLabelin interfaceIBaseDirectoryModule- Specified by:
getOrganizationByPathLabelin interfaceIDirectoryModule- Parameters:
context- The execution context.path- The path built from the labels.- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getOrganizationPathLabel
Description copied from interface:IDirectoryModuleGenerate path label of the organization "/" in label will be replaced by "\\/"- Specified by:
getOrganizationPathLabelin interfaceIBaseDirectoryModule- Specified by:
getOrganizationPathLabelin interfaceIDirectoryModule- Parameters:
organization- the organization- Returns:
- organization path label
-
getOrganizations
public Collection<? extends IOrganization> getOrganizations(IContext context, IOrganization parent) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves the organizations of a specifiedIOrganizationobject.- Specified by:
getOrganizationsin interfaceIBaseDirectoryModule- Specified by:
getOrganizationsin interfaceIDirectoryModule- Parameters:
context- The execution context.parent- The parentIOrganizationobject.- Returns:
- A java.util.Collection of
IOrganizationobjects. - Throws:
DirectoryModuleException- default module exception.
-
getOrganizations
public Collection<? extends IOrganization> getOrganizations(IContext context) throws DirectoryModuleException Description copied from interface:IDirectoryModuleRetrieves all the organizations.- Specified by:
getOrganizationsin interfaceIBaseDirectoryModule- Specified by:
getOrganizationsin interfaceIDirectoryModule- Parameters:
context- The execution context.- Returns:
- A java.util.Collection of
IOrganizationobjects. - Throws:
DirectoryModuleException- default module exception.
-
getParents
Description copied from interface:IDirectoryModuleRetrieves the direct parents of a specified group object.- Specified by:
getParentsin interfaceIBaseDirectoryModule- Specified by:
getParentsin interfaceIDirectoryModule- Parameters:
group- The group to search for.- Returns:
- A java.util.Collection of
IGroupobjects.
-
getParents
Description copied from interface:IDirectoryModuleRetrieves the parents of a specified user.- Specified by:
getParentsin interfaceIBaseDirectoryModule- Specified by:
getParentsin interfaceIDirectoryModule- Parameters:
user- The user to search for.- Returns:
- A java.util.Collection of
IGroupobjects.
-
getSearchController
- Specified by:
getSearchControllerin interfaceIBaseDirectoryModule- Specified by:
getSearchControllerin interfaceIDirectoryModule- Throws:
DirectoryModuleException
-
getSearchController
public ISearchController getSearchController(IDataSourceReference reference) throws DirectoryModuleException Description copied from interface:IDirectoryModuleGets a search controller object by specifying aIDataSourceReferenceobject.- Specified by:
getSearchControllerin interfaceIBaseDirectoryModule- Specified by:
getSearchControllerin interfaceIDirectoryModule- Parameters:
reference- TheIDataSourceReferenceobject.- Returns:
- A
ISearchControllerobject. - Throws:
DirectoryModuleException- Default module exception.
-
getSearchController
public ISearchController getSearchController(IJdbcReference reference) throws DirectoryModuleException Description copied from interface:IDirectoryModuleGets a search controller object by specifying a JDBC external reference.- Specified by:
getSearchControllerin interfaceIBaseDirectoryModule- Specified by:
getSearchControllerin interfaceIDirectoryModule- Parameters:
reference- TheIJdbcReferenceobject.- Returns:
- The
ISearchControllerobject. - Throws:
DirectoryModuleException- default module exception.
-
getSearchController
public ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws DirectoryModuleException Description copied from interface:IDirectoryModuleGets a search controller object by specifying aIConnectionDefinitionobject.- Specified by:
getSearchControllerin interfaceIBaseDirectoryModule- Specified by:
getSearchControllerin interfaceIDirectoryModule- Parameters:
connectionDefinition- TheIConnectionDefinitionobject.- Returns:
- A
ISearchControllerobject. - Throws:
DirectoryModuleException- Default module exception.
-
getUser
Deprecated.Description copied from interface:IDirectoryModuleRetrieves a user from an object.- Specified by:
getUserin interfaceIBaseDirectoryModule- Specified by:
getUserin interfaceIDirectoryModule- Parameters:
object- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IUserobject. - Throws:
DirectoryModuleException- default module exception.
-
getUsers
Description copied from interface:IDirectoryModuleRetrieves all the users.- Specified by:
getUsersin interfaceIBaseDirectoryModule- Specified by:
getUsersin interfaceIDirectoryModule- Parameters:
context- The execution context.- Returns:
- A java.util.Collection of
IUserobjects.
-
getUsers
Description copied from interface:IDirectoryModuleRetrieves all the users of a specified organization.- Specified by:
getUsersin interfaceIBaseDirectoryModule- Specified by:
getUsersin interfaceIDirectoryModule- Parameters:
context- The execution context.organization- TheIOrganizationobject.- Returns:
- A java.util.Collection of
IUserobjects.
-
getUsers
Description copied from interface:IDirectoryModuleRetrieves all the users of a specified localization.- Specified by:
getUsersin interfaceIBaseDirectoryModule- Specified by:
getUsersin interfaceIDirectoryModule- Parameters:
context- The execution context.localization- TheILocalizationobject.- Returns:
- A java.util.Collection of
IUserobjects.
-
isChildOf
Description copied from interface:IDirectoryModuleChecks if the group is child of another group.- Specified by:
isChildOfin interfaceIBaseDirectoryModule- Specified by:
isChildOfin interfaceIDirectoryModule- Parameters:
child- The child group.parent- The parent group.recursive- if true checks recursively.- Returns:
- true if the group is child of the parent group, false otherwise.
-
isMemberOf
Description copied from interface:IDirectoryModuleChecks if a user is member of a group.- Specified by:
isMemberOfin interfaceIBaseDirectoryModule- Specified by:
isMemberOfin interfaceIDirectoryModule- Parameters:
user- The usergroup- The grouprecursive- if true checks recursively.- Returns:
- true if the user is member of the group, false otherwise.
-
removeChild
Description copied from interface:IDirectoryModuleRemoves a child group object.- Specified by:
removeChildin interfaceIBaseDirectoryModule- Specified by:
removeChildin interfaceIDirectoryModule- Parameters:
child- The child group.group- The parent group.- Throws:
DirectoryModuleException- default module exception.
-
removeMember
Description copied from interface:IDirectoryModuleRemoves a user from a group.- Specified by:
removeMemberin interfaceIBaseDirectoryModule- Specified by:
removeMemberin interfaceIDirectoryModule- Parameters:
user- The user object to add.group- The parent group.- Throws:
DirectoryModuleException- default module exception.
-
getGroup
Description copied from interface:IDirectoryModuleRetrieves a group object by itsIStorageKeyobject.- Specified by:
getGroupin interfaceIBaseDirectoryModule- Specified by:
getGroupin interfaceIDirectoryModule- Parameters:
key- TheIStorageKeyobject.- Returns:
- A
IGroupobject. - Throws:
DirectoryModuleException- default module exception.
-
getLocalization
Description copied from interface:IDirectoryModuleRetrieves a localization object by itsIStorageKeyobject.- Specified by:
getLocalizationin interfaceIBaseDirectoryModule- Specified by:
getLocalizationin interfaceIDirectoryModule- Parameters:
key- TheIStorageKeyobject.- Returns:
- A
ILocalizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getOrganization
Description copied from interface:IDirectoryModuleRetrieves an organization by itsIStorageKeyobject.- Specified by:
getOrganizationin interfaceIBaseDirectoryModule- Specified by:
getOrganizationin interfaceIDirectoryModule- Parameters:
key- The storage key object.- Returns:
- A
IOrganizationobject. - Throws:
DirectoryModuleException- default module exception.
-
getSecurityController
public ISecurityController getSecurityController(ISecuritySupport securitySupport) throws DirectoryModuleException Description copied from interface:IDirectoryModuleGets a security controller to manipulate the rights on a specified object.- Specified by:
getSecurityControllerin interfaceIBaseDirectoryModule- Specified by:
getSecurityControllerin interfaceIDirectoryModule- Parameters:
securitySupport- AnyISecuritySupportobject.- Returns:
- A
ISecurityControllerobject. - Throws:
DirectoryModuleException- Default module exception.
-
getResourceDefinition
public IResourceDefinition getResourceDefinition(IContext context, String name) throws DirectoryModuleException Description copied from interface:IDirectoryModuleGets an extended attributes table- Specified by:
getResourceDefinitionin interfaceIBaseDirectoryModule- Specified by:
getResourceDefinitionin interfaceIDirectoryModule- Parameters:
context- the execution contextname- of the table- Returns:
- A
IResourceDefinitiontable - Throws:
DirectoryModuleException- default module exception.
-
addLocalizationScope
public void addLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, ILocalization localization, boolean heritable) Description copied from interface:IDirectoryModuleAdd localizationScope to the localizationScopeSupport object- Specified by:
addLocalizationScopein interfaceIBaseDirectoryModule- Specified by:
addLocalizationScopein interfaceIDirectoryModule- Parameters:
localizationScopeSupport- the localizationScopeSupport objectlocalization- the localization to addheritable- if true the localizationScope is heritable, otherwise false
-
getLocalizationScopes
public Collection<? extends IDirectoryLocalizationScope> getLocalizationScopes(ILocalizationScopeSupport localizationScopeSupport) Description copied from interface:IDirectoryModuleget the localizationScopes for the localizationScopeSupport object- Specified by:
getLocalizationScopesin interfaceIBaseDirectoryModule- Specified by:
getLocalizationScopesin interfaceIDirectoryModule- Parameters:
localizationScopeSupport- the localizationScopeSupport- Returns:
- a Collection object of
IDirectoryLocalizationScope
-
removeLocalizationScope
public void removeLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, IDirectoryLocalizationScope directoryLocalizationScope) Description copied from interface:IDirectoryModuleremove the localizationScope to the localizationScopeSupport object- Specified by:
removeLocalizationScopein interfaceIBaseDirectoryModule- Specified by:
removeLocalizationScopein interfaceIDirectoryModule- Parameters:
localizationScopeSupport- the localizationScopeSupportdirectoryLocalizationScope- the directoryLocalizationScope to remove
-
restoreLocalizationScopeInheritance
Description copied from interface:IDirectoryModulerestore the localizationScope inheritance for the localizationScopeSupport object- Specified by:
restoreLocalizationScopeInheritancein interfaceIBaseDirectoryModule- Specified by:
restoreLocalizationScopeInheritancein interfaceIDirectoryModule- Parameters:
localizationScopeSupport- the localizationScopeSupport
-
breakLocalizationScopeInheritance
Description copied from interface:IDirectoryModulebreak the localizationScope inheritance for the localizationScopeSupport object- Specified by:
breakLocalizationScopeInheritancein interfaceIBaseDirectoryModule- Specified by:
breakLocalizationScopeInheritancein interfaceIDirectoryModule- Parameters:
localizationScopeSupport- the localizationScopeSupport
-
isLocalizationScopeInherited
Description copied from interface:IDirectoryModuleChecks if the localization scope is inherited- Specified by:
isLocalizationScopeInheritedin interfaceIBaseDirectoryModule- Specified by:
isLocalizationScopeInheritedin interfaceIDirectoryModule- Parameters:
localizationScopeSupport- the localizationScopeSupport- Returns:
- true if the localization scope is inherited
-
addOrganizationScope
Description copied from interface:IDirectoryModuleAdd OrganizationScope to the User object- Specified by:
addOrganizationScopein interfaceIBaseDirectoryModule- Specified by:
addOrganizationScopein interfaceIDirectoryModule- Parameters:
user- the user to add the organizationScopeorganization- the organization to addheritable- if true the organizationScope is heritable, otherwise false
-
getOrganizationScopes
Description copied from interface:IDirectoryModuleGets the OrganizationScope for the User object- Specified by:
getOrganizationScopesin interfaceIBaseDirectoryModule- Specified by:
getOrganizationScopesin interfaceIDirectoryModule- Parameters:
user- the user- Returns:
- a Collection object of
IDirectoryOrganizationScope
-
removeOrganizationScope
public void removeOrganizationScope(IUser user, IDirectoryOrganizationScope directoryOrganizationScope) Description copied from interface:IDirectoryModuleRemoves the directoryOrganizationScope to the user's OrganizationScope- Specified by:
removeOrganizationScopein interfaceIBaseDirectoryModule- Specified by:
removeOrganizationScopein interfaceIDirectoryModule- Parameters:
user- the userdirectoryOrganizationScope- the directoryOrganizationScope to remove
-
restoreOrganizationScopeInheritance
Description copied from interface:IDirectoryModulerestore the organizationScope inheritance for the user object- Specified by:
restoreOrganizationScopeInheritancein interfaceIBaseDirectoryModule- Specified by:
restoreOrganizationScopeInheritancein interfaceIDirectoryModule- Parameters:
user- the user
-
breakOrganizationScopeInheritance
Description copied from interface:IDirectoryModulebreak the organizationScope inheritance for the user object- Specified by:
breakOrganizationScopeInheritancein interfaceIBaseDirectoryModule- Specified by:
breakOrganizationScopeInheritancein interfaceIDirectoryModule- Parameters:
user- the user
-
isOrganizationScopeInherited
Description copied from interface:IDirectoryModuleis organizationScope inheritance- Specified by:
isOrganizationScopeInheritedin interfaceIBaseDirectoryModule- Specified by:
isOrganizationScopeInheritedin interfaceIDirectoryModule- Parameters:
user- the user- Returns:
- isOrganizationScopeInherited
-
createSystemProfile
Description copied from interface:IDirectoryModuleCreates aIProfile.- Specified by:
createSystemProfilein interfaceIBaseDirectoryModule- Specified by:
createSystemProfilein interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of theIProfileto be created.- Returns:
- a
IProfileobject. - Throws:
ModuleException- default module exception.
-
getSystemProfile
Description copied from interface:IDirectoryModuleRetrieves a systemIProfileobject by its system name.- Specified by:
getSystemProfilein interfaceIBaseDirectoryModule- Specified by:
getSystemProfilein interfaceIDirectoryModule- Parameters:
context- The execution context.name- The system name of the role.- Returns:
- a
IProfileobject. - Throws:
ModuleException- default module exception.
-
getSystemProfiles
Description copied from interface:IDirectoryModuleRetrieves a collection of systemIProfileobjects.- Specified by:
getSystemProfilesin interfaceIBaseDirectoryModule- Specified by:
getSystemProfilesin interfaceIDirectoryModule- Parameters:
context- The execution context.- Returns:
- a collection of system
IProfileobjects. - Throws:
ModuleException- default module exception.
-
getCatalog
Description copied from interface:IDirectoryModuleGets the extended attributes catalog- Specified by:
getCatalogin interfaceIBaseDirectoryModule- Specified by:
getCatalogin interfaceIDirectoryModule- Returns:
ICatalogthe extended attributes catalog
-
generateSystemName
Description copied from interface:IModuleGenerate a valid system name for this module and this label.- Specified by:
generateSystemNamein interfaceIModule- Parameters:
label- label to normalize- Returns:
- normalized value
-