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 SummaryFields inherited from class com.axemble.vdoc.sdk.impl.CoreModuleproperties
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Use com.axemble.vdoc.sdk.Modules.getDirectoryModule() instead.
- 
Method SummaryModifier 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.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 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 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 aobject.invalid referenceConnectionDefinitiongetSearchController(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.CoreModuleconvertId, 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.AbstractTranslaterModulegetTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IBaseDirectoryModulecreateAttachment, createAttachment, createAttachment, createAttachment, getElementByProtocolURI, getUser, getUserByLoginMethods inherited from interface com.axemble.vdoc.sdk.modules.IModuleconvertId, 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- 
DirectoryModuleImplDeprecated.Use com.axemble.vdoc.sdk.Modules.getDirectoryModule() instead.
 
- 
- 
Method Details- 
initializeDescription copied from interface:IModuleInitializes the module.- Specified by:
- initializein interface- IModule
- Overrides:
- initializein class- CoreModule
- Parameters:
- properties- The custom properties.
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction or use the current one.- Specified by:
- beginTransactionin interface- IModule
- Overrides:
- beginTransactionin class- CoreModule
- Returns:
- The report object.
 
- 
commitTransactionpublic void commitTransaction()Description copied from interface:IModuleCommits the current transaction.- Specified by:
- commitTransactionin interface- IModule
- Overrides:
- commitTransactionin class- CoreModule
 
- 
rollbackTransactionpublic void rollbackTransaction()Description copied from interface:IModuleRoll back the current transaction.- Specified by:
- rollbackTransactionin interface- IModule
- Overrides:
- rollbackTransactionin class- CoreModule
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction if required.- Specified by:
- beginTransactionin interface- IModule
- Overrides:
- beginTransactionin class- CoreModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
- Returns:
- The report object.
 
- 
commitTransactionDescription copied from class:CoreModuleCommit a transaction- Specified by:
- commitTransactionin interface- IModule
- Overrides:
- commitTransactionin class- CoreModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
rollbackTransactionDescription copied from class:CoreModuleRoll back a transaction- Specified by:
- rollbackTransactionin interface- IModule
- Overrides:
- rollbackTransactionin class- CoreModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
createGrouppublic IGroup createGroup(IContext context, IGroup group, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a child group.- Specified by:
- createGroupin interface- IBaseDirectoryModule
- 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.
 
- 
createGrouppublic IGroup createGroup(IContext context, IGroup group, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a child group.- Specified by:
- createGroupin interface- IBaseDirectoryModule
- 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.
 
- 
createGrouppublic IGroup createGroup(IContext context, IOrganization organization, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a group.- Specified by:
- createGroupin interface- IBaseDirectoryModule
- 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.
 
- 
createGrouppublic IGroup createGroup(IContext context, IOrganization organization, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a group.- Specified by:
- createGroupin interface- IBaseDirectoryModule
- 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.
 
- 
getTransformerDescription copied from interface:IBaseDirectoryModuleGets a transformer.- Specified by:
- getTransformerin interface- IBaseDirectoryModule
- Returns:
- A ITransformerobject.
- Throws:
- DirectoryModuleException- Default module exception.
 
- 
addChildDescription copied from interface:IBaseDirectoryModuleAdds a child group.- Specified by:
- addChildin interface- IBaseDirectoryModule
- Parameters:
- child- The child group.
- group- The parent group.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
addMemberDescription copied from interface:IBaseDirectoryModuleAdds a user to a group.- Specified by:
- addMemberin interface- IBaseDirectoryModule
- Parameters:
- user- The user object to add.
- group- The parent group.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
createAttributeDeprecated.Description copied from interface:IBaseDirectoryModuleAllows to create an attribute.- Specified by:
- createAttributein interface- IBaseDirectoryModule
- Parameters:
- name- The name of the attribute.
- type- The type of the attribute. Check the- IAttribute.ITypeinterface.
- value- The associated value to the attribute.
- Returns:
- A IAttributeobject.
 
- 
createLocalizationpublic ILocalization createLocalization(IContext context, ILocalization localization, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a child localization.- Specified by:
- createLocalizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- localization- The parent- ILocalizationobject.
- label- The label of the localization. Be aware the system name will be generated automatically.
- Returns:
- A ILocalizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
createLocalizationpublic ILocalization createLocalization(IContext context, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a localization at the root level.- Specified by:
- createLocalizationin interface- IBaseDirectoryModule
- 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.
 
- 
createLocalizationpublic ILocalization createLocalization(IContext context, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a localization at the root level.- Specified by:
- createLocalizationin interface- IBaseDirectoryModule
- 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.
 
- 
createLocalizationpublic ILocalization createLocalization(IContext context, ILocalization localization, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a child localization.- Specified by:
- createLocalizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- localization- The parent- ILocalizationobject.
- name- The system name of the localization.
- label- The label of the localization.
- Returns:
- A ILocalizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
createOrganizationpublic IOrganization createOrganization(IContext context, IOrganization organization, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a child organization.- Specified by:
- createOrganizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- organization- The parent- IOrganizationobject.
- 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.
 
- 
createOrganizationpublic IOrganization createOrganization(IContext context, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create an organization at the root level.- Specified by:
- createOrganizationin interface- IBaseDirectoryModule
- 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.
 
- 
createOrganizationpublic IOrganization createOrganization(IContext context, IOrganization organization, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a child organization.- Specified by:
- createOrganizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- organization- The parent- IOrganizationobject.
- 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.
 
- 
createOrganizationpublic IOrganization createOrganization(IContext context, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create an organization at the root level.- Specified by:
- createOrganizationin interface- IBaseDirectoryModule
- 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.
 
- 
createUserpublic IUser createUser(IContext context, String login, String password, IOrganization organization) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleAllows to create a user into an organization.- Specified by:
- createUserin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- login- The login of the user
- password- The password of the user
- organization- The parent- IOrganizationobject.
- Returns:
- A IUserobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getAllChildrenDescription copied from interface:IBaseDirectoryModuleRetrieves all the children of a specified group object.- Specified by:
- getAllChildrenin interface- IBaseDirectoryModule
- Parameters:
- group- The group to search for.
- Returns:
- A java.util.Collection of IGroupobjects.
 
- 
getAllMembersDescription copied from interface:IBaseDirectoryModuleRetrieves all the members of the group.- Specified by:
- getAllMembersin interface- IBaseDirectoryModule
- Parameters:
- group- The group.
- Returns:
- A java.util.Collection of IUserobjects.
 
- 
getAllParentsDescription copied from interface:IBaseDirectoryModuleRetrieves all the parents of a specified group object.- Specified by:
- getAllParentsin interface- IBaseDirectoryModule
- Parameters:
- group- The group to search for.
- Returns:
- A java.util.Collection of IGroupobjects.
 
- 
getAllParentsDescription copied from interface:IBaseDirectoryModuleRetrieves all the parents of a specified user.- Specified by:
- getAllParentsin interface- IBaseDirectoryModule
- Parameters:
- user- The user to search for.
- Returns:
- A java.util.Collection of IGroupobjects.
 
- 
getChildrenDescription copied from interface:IBaseDirectoryModuleRetrieves the children of a specified group object.- Specified by:
- getChildrenin interface- IBaseDirectoryModule
- Parameters:
- group- The group to search for.
- Returns:
- A java.util.Collection of IGroupobjects.
 
- 
getDirectoryTransformerDescription copied from interface:IBaseDirectoryModuleGets a directory transformer.- Specified by:
- getDirectoryTransformerin interface- IBaseDirectoryModule
- Returns:
- A IDirectoryTransformerobject.
- Throws:
- DirectoryModuleException- Default module exception.
 
- 
getElementDescription copied from interface:IBaseDirectoryModuleRetrieves anIElementobject from an object.- Specified by:
- getElementin interface- IBaseDirectoryModule
- 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.
 
- 
getGrouppublic IGroup getGroup(IContext context, IOrganization organization, String name) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves a group by its system name on an organization scope.- Specified by:
- getGroupin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- organization- The parent- IOrganizationobject.
- name- The system name of the group.
- Returns:
- A IGroupobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getGroupDescription copied from interface:IBaseDirectoryModuleRetrieves a group by its system name.- Specified by:
- getGroupin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- name- The system name of the group.
- Returns:
- A IGroupobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getGroupDeprecated.Description copied from interface:IBaseDirectoryModuleRetrieves a group from an object.- Specified by:
- getGroupin interface- IBaseDirectoryModule
- 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:IBaseDirectoryModuleRetrieves a localization by its system name and a parent localization object.- Specified by:
- getLocalizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- parent- The parent- ILocalizationobject.
- name- The system name of the localization.
- Returns:
- A ILocalizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getLocalizationDescription copied from interface:IBaseDirectoryModuleRetrieves a localization by its system name.- Specified by:
- getLocalizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- name- The system name of the localization.
- Returns:
- A ILocalizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getLocalizationDeprecated.Description copied from interface:IBaseDirectoryModuleRetrieves an localization from an object.- Specified by:
- getLocalizationin interface- IBaseDirectoryModule
- 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.
 
- 
getLocalizationByPathLabelpublic ILocalization getLocalizationByPathLabel(IContext context, String path) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves a localization by its path.- Specified by:
- getLocalizationByPathLabelin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- path- The path of the localization built from labels.
- Returns:
- A ILocalizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getLocalizationPathLabelDescription copied from interface:IBaseDirectoryModuleGenerate path label of the localization "/" in label will replaced by "\\/"- Specified by:
- getLocalizationPathLabelin interface- IBaseDirectoryModule
- Parameters:
- localization-
- Returns:
- localization path label
 
- 
getLocalizationspublic Collection<? extends ILocalization> getLocalizations(IContext context, ILocalization parent) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves the localizations of aILocalizationobject.- Specified by:
- getLocalizationsin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- parent- The parent- ILocalizationobject.
- Returns:
- A java.util.Collection of ILocalizationobjects.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getLocalizationspublic Collection<? extends ILocalization> getLocalizations(IContext context) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves all the localizations.- Specified by:
- getLocalizationsin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- Returns:
- A java.util.Collection of ILocalizationobjects.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getMembersDescription copied from interface:IBaseDirectoryModuleRetrieves the members of the group.- Specified by:
- getMembersin interface- IBaseDirectoryModule
- 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:IBaseDirectoryModuleRetrieves an organization by its name and a parent organization.- Specified by:
- getOrganizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- parent- The parent- IOrganizationobject.
- name- The system name of the organization.
- Returns:
- A IOrganizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getOrganizationDescription copied from interface:IBaseDirectoryModuleRetrieves an organization by its system name (the system name is unique on the server).- Specified by:
- getOrganizationin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- name- The system name of the organization.
- Returns:
- A IOrganizationobject
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getOrganizationDeprecated.Description copied from interface:IBaseDirectoryModuleRetrieves an organization from an object.- Specified by:
- getOrganizationin interface- IBaseDirectoryModule
- 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.
 
- 
getOrganizationByPathLabelpublic IOrganization getOrganizationByPathLabel(IContext context, String path) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves an organization by its path.- Specified by:
- getOrganizationByPathLabelin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- path- The path built from the labels.
- Returns:
- A IOrganizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getOrganizationPathLabelDescription copied from interface:IBaseDirectoryModuleGenerate path label of the organization "/" in label will replaced by "\\/"- Specified by:
- getOrganizationPathLabelin interface- IBaseDirectoryModule
- Parameters:
- organization-
- Returns:
- organization path label
 
- 
getOrganizationspublic Collection<? extends IOrganization> getOrganizations(IContext context, IOrganization parent) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves the organizations of a specifiedIOrganizationobject.- Specified by:
- getOrganizationsin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- parent- The parent- IOrganizationobject.
- Returns:
- A java.util.Collection of IOrganizationobjects.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getOrganizationspublic Collection<? extends IOrganization> getOrganizations(IContext context) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleRetrieves all the organizations.- Specified by:
- getOrganizationsin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- Returns:
- A java.util.Collection of IOrganizationobjects.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getParentsDescription copied from interface:IBaseDirectoryModuleRetrieves the direct parents of a specified group object.- Specified by:
- getParentsin interface- IBaseDirectoryModule
- Parameters:
- group- The group to search for.
- Returns:
- A java.util.Collection of IGroupobjects.
 
- 
getParentsDescription copied from interface:IBaseDirectoryModuleRetrieves the parents of a specified user.- Specified by:
- getParentsin interface- IBaseDirectoryModule
- Parameters:
- user- The user to search for.
- Returns:
- A java.util.Collection of IGroupobjects.
 
- 
getSearchController- Specified by:
- getSearchControllerin interface- IBaseDirectoryModule
- Throws:
- DirectoryModuleException
 
- 
getSearchControllerpublic ISearchController getSearchController(IDataSourceReference reference) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleGets a search controller object by specifying aIDataSourceReferenceobject.- Specified by:
- getSearchControllerin interface- IBaseDirectoryModule
- Parameters:
- reference- The- IDataSourceReferenceobject.
- Returns:
- A ISearchControllerobject.
- Throws:
- DirectoryModuleException- Default module exception.
 
- 
getSearchControllerpublic ISearchController getSearchController(IJdbcReference reference) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleGets a search controller object by specifying a JDBC external reference.- Specified by:
- getSearchControllerin interface- IBaseDirectoryModule
- Parameters:
- reference- The- IJdbcReferenceobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getSearchControllerpublic ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleGets a search controller object by specifying aobject.invalid referenceConnectionDefinition- Specified by:
- getSearchControllerin interface- IBaseDirectoryModule
- Parameters:
- connectionDefinition- The- IConnectionDefinitionobject.
- Returns:
- A ISearchControllerobject.
- Throws:
- DirectoryModuleException- Default module exception.
 
- 
getUserDeprecated.Description copied from interface:IBaseDirectoryModuleRetrieves a user from an object.- Specified by:
- getUserin interface- IBaseDirectoryModule
- 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.
 
- 
getUsersDescription copied from interface:IBaseDirectoryModuleRetrieves all the users.- Specified by:
- getUsersin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- Returns:
- A java.util.Collection of IUserobjects.
 
- 
getUsersDescription copied from interface:IBaseDirectoryModuleRetrieves all the users of a specified organization.- Specified by:
- getUsersin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- Returns:
- A java.util.Collection of IUserobjects.
 
- 
getUsersDescription copied from interface:IBaseDirectoryModuleRetrieves all the users of a specified localization.- Specified by:
- getUsersin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- localization- The- ILocalizationobject.
- Returns:
- A java.util.Collection of IUserobjects.
 
- 
isChildOfDescription copied from interface:IBaseDirectoryModuleChecks if the group is child of another group.- Specified by:
- isChildOfin interface- IBaseDirectoryModule
- 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.
 
- 
isMemberOfDescription copied from interface:IBaseDirectoryModuleChecks if a user is member of a group.- Specified by:
- isMemberOfin interface- IBaseDirectoryModule
- Parameters:
- user- The user
- group- The group
- recursive- if true checks recursively.
- Returns:
- true if the user is member of the group, false otherwise.
 
- 
removeChildDescription copied from interface:IBaseDirectoryModuleRemoves a child group object.- Specified by:
- removeChildin interface- IBaseDirectoryModule
- Parameters:
- child- The child group.
- group- The parent group.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
removeMemberDescription copied from interface:IBaseDirectoryModuleRemoves a user from a group.- Specified by:
- removeMemberin interface- IBaseDirectoryModule
- Parameters:
- user- The user object to add.
- group- The parent group.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getGroupDescription copied from interface:IBaseDirectoryModuleRetrieves a group object by itsIStorageKeyobject.- Specified by:
- getGroupin interface- IBaseDirectoryModule
- Parameters:
- key- The- IStorageKeyobject.
- Returns:
- A IGroupobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getLocalizationDescription copied from interface:IBaseDirectoryModuleRetrieves a localization object by itsIStorageKeyobject.- Specified by:
- getLocalizationin interface- IBaseDirectoryModule
- Parameters:
- key- The- IStorageKeyobject.
- Returns:
- A ILocalizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getOrganizationDescription copied from interface:IBaseDirectoryModuleRetrieves an organization by itsIStorageKeyobject.- Specified by:
- getOrganizationin interface- IBaseDirectoryModule
- Parameters:
- key- The storage key object.
- Returns:
- A IOrganizationobject.
- Throws:
- DirectoryModuleException- default module exception.
 
- 
getSecurityControllerpublic ISecurityController getSecurityController(ISecuritySupport securitySupport) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleGets a security controller to manipulate the rights on a specified object.- Specified by:
- getSecurityControllerin interface- IBaseDirectoryModule
- Parameters:
- securitySupport- Any- ISecuritySupportobject.
- Returns:
- A ISecurityControllerobject.
- Throws:
- DirectoryModuleException- Default module exception.
 
- 
getResourceDefinitionpublic IResourceDefinition getResourceDefinition(IContext context, String name) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModuleGets an extended attributes table- Specified by:
- getResourceDefinitionin interface- IBaseDirectoryModule
- Parameters:
- context-
- name- of the table
- Returns:
- A IResourceDefinitiontable
- Throws:
- DirectoryModuleException
 
- 
addLocalizationScopepublic void addLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, ILocalization localization, boolean heritable) Description copied from interface:IBaseDirectoryModuleAdd localizationScope to the localizationScopeSupport object- Specified by:
- addLocalizationScopein interface- IBaseDirectoryModule
- Parameters:
- localizationScopeSupport-
- localization-
- heritable-
 
- 
getLocalizationScopespublic Collection<? extends IDirectoryLocalizationScope> getLocalizationScopes(ILocalizationScopeSupport localizationScopeSupport) Description copied from interface:IBaseDirectoryModuleget the localizationScopes for the localizationScopeSupport object- Specified by:
- getLocalizationScopesin interface- IBaseDirectoryModule
- Parameters:
- localizationScopeSupport-
- Returns:
- a Collection object of IDirectoryLocalizationScope
 
- 
removeLocalizationScopepublic void removeLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, IDirectoryLocalizationScope directoryLocalizationScope) Description copied from interface:IBaseDirectoryModuleremove the localizationScope to the localizationScopeSupport object- Specified by:
- removeLocalizationScopein interface- IBaseDirectoryModule
- Parameters:
- localizationScopeSupport-
- directoryLocalizationScope-
 
- 
restoreLocalizationScopeInheritanceDescription copied from interface:IBaseDirectoryModulerestore the localizationScope inheritance for the localizationScopeSupport object- Specified by:
- restoreLocalizationScopeInheritancein interface- IBaseDirectoryModule
- Parameters:
- localizationScopeSupport-
 
- 
breakLocalizationScopeInheritanceDescription copied from interface:IBaseDirectoryModulebreak the localizationScope inheritance for the localizationScopeSupport object- Specified by:
- breakLocalizationScopeInheritancein interface- IBaseDirectoryModule
- Parameters:
- localizationScopeSupport-
 
- 
isLocalizationScopeInheritedDescription copied from interface:IBaseDirectoryModuleChecks if the localization scope is inherited- Specified by:
- isLocalizationScopeInheritedin interface- IBaseDirectoryModule
- Parameters:
- localizationScopeSupport-
- Returns:
- true if the localization scope is inhe
 
- 
addOrganizationScopeDescription copied from interface:IBaseDirectoryModuleAdd OrganizationScope to the User object- Specified by:
- addOrganizationScopein interface- IBaseDirectoryModule
- Parameters:
- user-
- organization-
- heritable-
 
- 
getOrganizationScopesDescription copied from interface:IBaseDirectoryModuleGets the OrganizationScope for the User object- Specified by:
- getOrganizationScopesin interface- IBaseDirectoryModule
- Parameters:
- user-
- Returns:
- a Collection object of IDirectoryOrganizationScope
 
- 
removeOrganizationScopepublic void removeOrganizationScope(IUser user, IDirectoryOrganizationScope directoryOrganizationScope) Description copied from interface:IBaseDirectoryModuleRemoves the directoryOrganizationScope to the user's OrganizationScope- Specified by:
- removeOrganizationScopein interface- IBaseDirectoryModule
- Parameters:
- user-
- directoryOrganizationScope-
 
- 
restoreOrganizationScopeInheritanceDescription copied from interface:IBaseDirectoryModulerestore the organizationScope inheritance for the user object- Specified by:
- restoreOrganizationScopeInheritancein interface- IBaseDirectoryModule
- Parameters:
- user-
 
- 
breakOrganizationScopeInheritanceDescription copied from interface:IBaseDirectoryModulebreak the organizationScope inheritance for the user object- Specified by:
- breakOrganizationScopeInheritancein interface- IBaseDirectoryModule
- Parameters:
- user-
 
- 
isOrganizationScopeInheritedDescription copied from interface:IBaseDirectoryModuleis organizationScope inheritance- Specified by:
- isOrganizationScopeInheritedin interface- IBaseDirectoryModule
- Parameters:
- user-
- Returns:
- isOrganizationScopeInherited
 
- 
createSystemProfileDescription copied from interface:IBaseDirectoryModuleCreates aIProfile.- Specified by:
- createSystemProfilein interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- name- The system name of the- IProfileto be created.
- Returns:
- a IProfileobject.
- Throws:
- ModuleException- default module exception.
 
- 
getSystemProfileDescription copied from interface:IBaseDirectoryModuleRetrieves a systemIProfileobject by its system name.- Specified by:
- getSystemProfilein interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- name- The system name of the role.
- Returns:
- a IProfileobject.
- Throws:
- ModuleException- default module exception.
 
- 
getSystemProfilesDescription copied from interface:IBaseDirectoryModuleRetrieves a collection of systemIProfileobjects.- Specified by:
- getSystemProfilesin interface- IBaseDirectoryModule
- Parameters:
- context- The execution context.
- Returns:
- a collection of system IProfileobjects.
- Throws:
- ModuleException- default module exception.
 
- 
getCatalogDescription copied from interface:IBaseDirectoryModuleGets the extended attributes catalog- Specified by:
- getCatalogin interface- IBaseDirectoryModule
- Returns:
- ICatalogthe extended attributes catalog
 
- 
generateSystemNameDescription copied from interface:IModuleGenerate a valid system name for this module and this label.- Specified by:
- generateSystemNamein interface- IModule
- Parameters:
- label- label to normalize
- Returns:
- normalized value
 
 
-