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
ConstructorDescriptionDeprecated.Use com.axemble.vdoc.sdk.Modules.getDirectoryModule() instead. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a child group.void
addLocalizationScope
(ILocalizationScopeSupport localizationScopeSupport, ILocalization localization, boolean heritable) Add localizationScope to the localizationScopeSupport objectvoid
Adds a user to a group.void
addOrganizationScope
(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.void
breakLocalizationScopeInheritance
(ILocalizationScopeSupport localizationScopeSupport) break the localizationScope inheritance for the localizationScopeSupport objectvoid
break the organizationScope inheritance for the user objectvoid
Commits the current transaction.void
commitTransaction
(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 anIElement
object 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 itsIStorageKey
object.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 itsIStorageKey
object.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 aILocalization
object.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 itsIStorageKey
object.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 specifiedIOrganization
object.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 ainvalid reference
ConnectionDefinition
getSearchController
(IDataSourceReference reference) Gets a search controller object by specifying aIDataSourceReference
object.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 systemIProfile
object by its system name.Collection
<? extends IProfile> getSystemProfiles
(IContext context) Retrieves a collection of systemIProfile
objects.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.void
initialize
(Properties properties) Initializes the module.boolean
Checks if the group is child of another group.boolean
isLocalizationScopeInherited
(ILocalizationScopeSupport localizationScopeSupport) Checks if the localization scope is inheritedboolean
isMemberOf
(IUser user, IGroup group, boolean recursive) Checks if a user is member of a group.boolean
is organizationScope inheritancevoid
removeChild
(IGroup child, IGroup group) Removes a child group object.void
removeLocalizationScope
(ILocalizationScopeSupport localizationScopeSupport, IDirectoryLocalizationScope directoryLocalizationScope) remove the localizationScope to the localizationScopeSupport objectvoid
removeMember
(IUser user, IGroup group) Removes a user from a group.void
removeOrganizationScope
(IUser user, IDirectoryOrganizationScope directoryOrganizationScope) Removes the directoryOrganizationScope to the user's OrganizationScopevoid
restoreLocalizationScopeInheritance
(ILocalizationScopeSupport localizationScopeSupport) restore the localizationScope inheritance for the localizationScopeSupport objectvoid
restore the organizationScope inheritance for the user objectvoid
Roll back the current transaction.void
rollbackTransaction
(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, unInitialize
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
getTranslation, getTranslationForLanguage, getTranslationKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.modules.IBaseDirectoryModule
createAttachment, createAttachment, createAttachment, createAttachment, getElementByProtocolURI, getUser, getUserByLogin
Methods 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:IModule
Initializes the module.- Specified by:
initialize
in interfaceIModule
- Overrides:
initialize
in classCoreModule
- Parameters:
properties
- The custom properties.
-
beginTransaction
Description copied from interface:IModule
Starts a new transaction or use the current one.- Specified by:
beginTransaction
in interfaceIModule
- Overrides:
beginTransaction
in classCoreModule
- Returns:
- The report object.
-
commitTransaction
public void commitTransaction()Description copied from interface:IModule
Commits the current transaction.- Specified by:
commitTransaction
in interfaceIModule
- Overrides:
commitTransaction
in classCoreModule
-
rollbackTransaction
public void rollbackTransaction()Description copied from interface:IModule
Roll back the current transaction.- Specified by:
rollbackTransaction
in interfaceIModule
- Overrides:
rollbackTransaction
in classCoreModule
-
beginTransaction
Description copied from interface:IModule
Starts a new transaction if required.- Specified by:
beginTransaction
in interfaceIModule
- Overrides:
beginTransaction
in classCoreModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.- Returns:
- The report object.
-
commitTransaction
Description copied from class:CoreModule
Commit a transaction- Specified by:
commitTransaction
in interfaceIModule
- Overrides:
commitTransaction
in classCoreModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.
-
rollbackTransaction
Description copied from class:CoreModule
Roll back a transaction- Specified by:
rollbackTransaction
in interfaceIModule
- Overrides:
rollbackTransaction
in 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:IBaseDirectoryModule
Allows to create a child group.- Specified by:
createGroup
in interfaceIBaseDirectoryModule
- 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
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IGroup group, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a child group.- Specified by:
createGroup
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.group
- The parent group.name
- The system name of the group.label
- The label of the group.- Returns:
- A
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IOrganization organization, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a group.- Specified by:
createGroup
in interfaceIBaseDirectoryModule
- 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
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
createGroup
public IGroup createGroup(IContext context, IOrganization organization, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a group.- Specified by:
createGroup
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.organization
- The organization object.name
- The system name of the group.label
- The label of the group.- Returns:
- A
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
getTransformer
Description copied from interface:IBaseDirectoryModule
Gets a transformer.- Specified by:
getTransformer
in interfaceIBaseDirectoryModule
- Returns:
- A
ITransformer
object. - Throws:
DirectoryModuleException
- Default module exception.
-
addChild
Description copied from interface:IBaseDirectoryModule
Adds a child group.- Specified by:
addChild
in interfaceIBaseDirectoryModule
- Parameters:
child
- The child group.group
- The parent group.- Throws:
DirectoryModuleException
- default module exception.
-
addMember
Description copied from interface:IBaseDirectoryModule
Adds a user to a group.- Specified by:
addMember
in interfaceIBaseDirectoryModule
- Parameters:
user
- The user object to add.group
- The parent group.- Throws:
DirectoryModuleException
- default module exception.
-
createAttribute
Deprecated.Description copied from interface:IBaseDirectoryModule
Allows to create an attribute.- Specified by:
createAttribute
in interfaceIBaseDirectoryModule
- Parameters:
name
- The name of the attribute.type
- The type of the attribute. Check theIAttribute.IType
interface.value
- The associated value to the attribute.- Returns:
- A
IAttribute
object.
-
createLocalization
public ILocalization createLocalization(IContext context, ILocalization localization, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a child localization.- Specified by:
createLocalization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.localization
- The parentILocalization
object.label
- The label of the localization. Be aware the system name will be generated automatically.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createLocalization
public ILocalization createLocalization(IContext context, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a localization at the root level.- Specified by:
createLocalization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.label
- The label of the localization. Be aware the system name will be generated automatically.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createLocalization
public ILocalization createLocalization(IContext context, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a localization at the root level.- Specified by:
createLocalization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.name
- The system name of the localization.label
- The label of the localization.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createLocalization
public ILocalization createLocalization(IContext context, ILocalization localization, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a child localization.- Specified by:
createLocalization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.localization
- The parentILocalization
object.name
- The system name of the localization.label
- The label of the localization.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, IOrganization organization, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a child organization.- Specified by:
createOrganization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.organization
- The parentIOrganization
object.label
- The label of the organization. Be aware the system name of the organization will be generated.- Returns:
- A
IOrganization
object - Throws:
DirectoryModuleException
- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create an organization at the root level.- Specified by:
createOrganization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.label
- The label of the organization. Be aware the system name of the organization will be generated.- Returns:
- A
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, IOrganization organization, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a child organization.- Specified by:
createOrganization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.organization
- The parentIOrganization
object.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
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createOrganization
public IOrganization createOrganization(IContext context, String name, String label) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create an organization at the root level.- Specified by:
createOrganization
in interfaceIBaseDirectoryModule
- 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
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
createUser
public IUser createUser(IContext context, String login, String password, IOrganization organization) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Allows to create a user into an organization.- Specified by:
createUser
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.login
- The login of the userpassword
- The password of the userorganization
- The parentIOrganization
object.- Returns:
- A
IUser
object. - Throws:
DirectoryModuleException
- default module exception.
-
getAllChildren
Description copied from interface:IBaseDirectoryModule
Retrieves all the children of a specified group object.- Specified by:
getAllChildren
in interfaceIBaseDirectoryModule
- Parameters:
group
- The group to search for.- Returns:
- A java.util.Collection of
IGroup
objects.
-
getAllMembers
Description copied from interface:IBaseDirectoryModule
Retrieves all the members of the group.- Specified by:
getAllMembers
in interfaceIBaseDirectoryModule
- Parameters:
group
- The group.- Returns:
- A java.util.Collection of
IUser
objects.
-
getAllParents
Description copied from interface:IBaseDirectoryModule
Retrieves all the parents of a specified group object.- Specified by:
getAllParents
in interfaceIBaseDirectoryModule
- Parameters:
group
- The group to search for.- Returns:
- A java.util.Collection of
IGroup
objects.
-
getAllParents
Description copied from interface:IBaseDirectoryModule
Retrieves all the parents of a specified user.- Specified by:
getAllParents
in interfaceIBaseDirectoryModule
- Parameters:
user
- The user to search for.- Returns:
- A java.util.Collection of
IGroup
objects.
-
getChildren
Description copied from interface:IBaseDirectoryModule
Retrieves the children of a specified group object.- Specified by:
getChildren
in interfaceIBaseDirectoryModule
- Parameters:
group
- The group to search for.- Returns:
- A java.util.Collection of
IGroup
objects.
-
getDirectoryTransformer
Description copied from interface:IBaseDirectoryModule
Gets a directory transformer.- Specified by:
getDirectoryTransformer
in interfaceIBaseDirectoryModule
- Returns:
- A
IDirectoryTransformer
object. - Throws:
DirectoryModuleException
- Default module exception.
-
getElement
Description copied from interface:IBaseDirectoryModule
Retrieves anIElement
object from an object.- Specified by:
getElement
in interfaceIBaseDirectoryModule
- Parameters:
object
- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IElement
object. - Throws:
DirectoryModuleException
- default module exception.
-
getGroup
public IGroup getGroup(IContext context, IOrganization organization, String name) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves a group by its system name on an organization scope.- Specified by:
getGroup
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.organization
- The parentIOrganization
object.name
- The system name of the group.- Returns:
- A
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
getGroup
Description copied from interface:IBaseDirectoryModule
Retrieves a group by its system name.- Specified by:
getGroup
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.name
- The system name of the group.- Returns:
- A
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
getGroup
Deprecated.Description copied from interface:IBaseDirectoryModule
Retrieves a group from an object.- Specified by:
getGroup
in interfaceIBaseDirectoryModule
- Parameters:
object
- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalization
@Deprecated public ILocalization getLocalization(IContext context, ILocalization parent, String name) throws DirectoryModuleException Deprecated.Description copied from interface:IBaseDirectoryModule
Retrieves a localization by its system name and a parent localization object.- Specified by:
getLocalization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.parent
- The parentILocalization
object.name
- The system name of the localization.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalization
Description copied from interface:IBaseDirectoryModule
Retrieves a localization by its system name.- Specified by:
getLocalization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.name
- The system name of the localization.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalization
Deprecated.Description copied from interface:IBaseDirectoryModule
Retrieves an localization from an object.- Specified by:
getLocalization
in interfaceIBaseDirectoryModule
- Parameters:
object
- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalizationByPathLabel
public ILocalization getLocalizationByPathLabel(IContext context, String path) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves a localization by its path.- Specified by:
getLocalizationByPathLabel
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.path
- The path of the localization built from labels.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalizationPathLabel
Description copied from interface:IBaseDirectoryModule
Generate path label of the localization "/" in label will replaced by "\\/"- Specified by:
getLocalizationPathLabel
in interfaceIBaseDirectoryModule
- Parameters:
localization
-- Returns:
- localization path label
-
getLocalizations
public Collection<? extends ILocalization> getLocalizations(IContext context, ILocalization parent) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves the localizations of aILocalization
object.- Specified by:
getLocalizations
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.parent
- The parentILocalization
object.- Returns:
- A java.util.Collection of
ILocalization
objects. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalizations
public Collection<? extends ILocalization> getLocalizations(IContext context) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves all the localizations.- Specified by:
getLocalizations
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.- Returns:
- A java.util.Collection of
ILocalization
objects. - Throws:
DirectoryModuleException
- default module exception.
-
getMembers
Description copied from interface:IBaseDirectoryModule
Retrieves the members of the group.- Specified by:
getMembers
in interfaceIBaseDirectoryModule
- Parameters:
group
- The group.- Returns:
- A java.util.Collection of
IUser
objects.
-
getOrganization
@Deprecated public IOrganization getOrganization(IContext context, IOrganization parent, String name) throws DirectoryModuleException Deprecated.Description copied from interface:IBaseDirectoryModule
Retrieves an organization by its name and a parent organization.- Specified by:
getOrganization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.parent
- The parentIOrganization
object.name
- The system name of the organization.- Returns:
- A
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getOrganization
Description copied from interface:IBaseDirectoryModule
Retrieves an organization by its system name (the system name is unique on the server).- Specified by:
getOrganization
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.name
- The system name of the organization.- Returns:
- A
IOrganization
object - Throws:
DirectoryModuleException
- default module exception.
-
getOrganization
Deprecated.Description copied from interface:IBaseDirectoryModule
Retrieves an organization from an object.- Specified by:
getOrganization
in interfaceIBaseDirectoryModule
- Parameters:
object
- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getOrganizationByPathLabel
public IOrganization getOrganizationByPathLabel(IContext context, String path) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves an organization by its path.- Specified by:
getOrganizationByPathLabel
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.path
- The path built from the labels.- Returns:
- A
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getOrganizationPathLabel
Description copied from interface:IBaseDirectoryModule
Generate path label of the organization "/" in label will replaced by "\\/"- Specified by:
getOrganizationPathLabel
in interfaceIBaseDirectoryModule
- Parameters:
organization
-- Returns:
- organization path label
-
getOrganizations
public Collection<? extends IOrganization> getOrganizations(IContext context, IOrganization parent) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves the organizations of a specifiedIOrganization
object.- Specified by:
getOrganizations
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.parent
- The parentIOrganization
object.- Returns:
- A java.util.Collection of
IOrganization
objects. - Throws:
DirectoryModuleException
- default module exception.
-
getOrganizations
public Collection<? extends IOrganization> getOrganizations(IContext context) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Retrieves all the organizations.- Specified by:
getOrganizations
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.- Returns:
- A java.util.Collection of
IOrganization
objects. - Throws:
DirectoryModuleException
- default module exception.
-
getParents
Description copied from interface:IBaseDirectoryModule
Retrieves the direct parents of a specified group object.- Specified by:
getParents
in interfaceIBaseDirectoryModule
- Parameters:
group
- The group to search for.- Returns:
- A java.util.Collection of
IGroup
objects.
-
getParents
Description copied from interface:IBaseDirectoryModule
Retrieves the parents of a specified user.- Specified by:
getParents
in interfaceIBaseDirectoryModule
- Parameters:
user
- The user to search for.- Returns:
- A java.util.Collection of
IGroup
objects.
-
getSearchController
- Specified by:
getSearchController
in interfaceIBaseDirectoryModule
- Throws:
DirectoryModuleException
-
getSearchController
public ISearchController getSearchController(IDataSourceReference reference) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Gets a search controller object by specifying aIDataSourceReference
object.- Specified by:
getSearchController
in interfaceIBaseDirectoryModule
- Parameters:
reference
- TheIDataSourceReference
object.- Returns:
- A
ISearchController
object. - Throws:
DirectoryModuleException
- Default module exception.
-
getSearchController
public ISearchController getSearchController(IJdbcReference reference) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Gets a search controller object by specifying a JDBC external reference.- Specified by:
getSearchController
in interfaceIBaseDirectoryModule
- Parameters:
reference
- TheIJdbcReference
object.- Returns:
- The
ISearchController
object. - Throws:
DirectoryModuleException
- default module exception.
-
getSearchController
public ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Gets a search controller object by specifying ainvalid reference
ConnectionDefinition
- Specified by:
getSearchController
in interfaceIBaseDirectoryModule
- Parameters:
connectionDefinition
- TheIConnectionDefinition
object.- Returns:
- A
ISearchController
object. - Throws:
DirectoryModuleException
- Default module exception.
-
getUser
Deprecated.Description copied from interface:IBaseDirectoryModule
Retrieves a user from an object.- Specified by:
getUser
in interfaceIBaseDirectoryModule
- Parameters:
object
- Any object of the following type:- A java.lang.Long
- java.lang.String
- or com.triactive.jdo.store.OID
- Returns:
- A
IUser
object. - Throws:
DirectoryModuleException
- default module exception.
-
getUsers
Description copied from interface:IBaseDirectoryModule
Retrieves all the users.- Specified by:
getUsers
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.- Returns:
- A java.util.Collection of
IUser
objects.
-
getUsers
Description copied from interface:IBaseDirectoryModule
Retrieves all the users of a specified organization.- Specified by:
getUsers
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.organization
- TheIOrganization
object.- Returns:
- A java.util.Collection of
IUser
objects.
-
getUsers
Description copied from interface:IBaseDirectoryModule
Retrieves all the users of a specified localization.- Specified by:
getUsers
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.localization
- TheILocalization
object.- Returns:
- A java.util.Collection of
IUser
objects.
-
isChildOf
Description copied from interface:IBaseDirectoryModule
Checks if the group is child of another group.- Specified by:
isChildOf
in interfaceIBaseDirectoryModule
- 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:IBaseDirectoryModule
Checks if a user is member of a group.- Specified by:
isMemberOf
in interfaceIBaseDirectoryModule
- 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:IBaseDirectoryModule
Removes a child group object.- Specified by:
removeChild
in interfaceIBaseDirectoryModule
- Parameters:
child
- The child group.group
- The parent group.- Throws:
DirectoryModuleException
- default module exception.
-
removeMember
Description copied from interface:IBaseDirectoryModule
Removes a user from a group.- Specified by:
removeMember
in interfaceIBaseDirectoryModule
- Parameters:
user
- The user object to add.group
- The parent group.- Throws:
DirectoryModuleException
- default module exception.
-
getGroup
Description copied from interface:IBaseDirectoryModule
Retrieves a group object by itsIStorageKey
object.- Specified by:
getGroup
in interfaceIBaseDirectoryModule
- Parameters:
key
- TheIStorageKey
object.- Returns:
- A
IGroup
object. - Throws:
DirectoryModuleException
- default module exception.
-
getLocalization
Description copied from interface:IBaseDirectoryModule
Retrieves a localization object by itsIStorageKey
object.- Specified by:
getLocalization
in interfaceIBaseDirectoryModule
- Parameters:
key
- TheIStorageKey
object.- Returns:
- A
ILocalization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getOrganization
Description copied from interface:IBaseDirectoryModule
Retrieves an organization by itsIStorageKey
object.- Specified by:
getOrganization
in interfaceIBaseDirectoryModule
- Parameters:
key
- The storage key object.- Returns:
- A
IOrganization
object. - Throws:
DirectoryModuleException
- default module exception.
-
getSecurityController
public ISecurityController getSecurityController(ISecuritySupport securitySupport) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Gets a security controller to manipulate the rights on a specified object.- Specified by:
getSecurityController
in interfaceIBaseDirectoryModule
- Parameters:
securitySupport
- AnyISecuritySupport
object.- Returns:
- A
ISecurityController
object. - Throws:
DirectoryModuleException
- Default module exception.
-
getResourceDefinition
public IResourceDefinition getResourceDefinition(IContext context, String name) throws DirectoryModuleException Description copied from interface:IBaseDirectoryModule
Gets an extended attributes table- Specified by:
getResourceDefinition
in interfaceIBaseDirectoryModule
- Parameters:
context
-name
- of the table- Returns:
- A
IResourceDefinition
table - Throws:
DirectoryModuleException
-
addLocalizationScope
public void addLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, ILocalization localization, boolean heritable) Description copied from interface:IBaseDirectoryModule
Add localizationScope to the localizationScopeSupport object- Specified by:
addLocalizationScope
in interfaceIBaseDirectoryModule
- Parameters:
localizationScopeSupport
-localization
-heritable
-
-
getLocalizationScopes
public Collection<? extends IDirectoryLocalizationScope> getLocalizationScopes(ILocalizationScopeSupport localizationScopeSupport) Description copied from interface:IBaseDirectoryModule
get the localizationScopes for the localizationScopeSupport object- Specified by:
getLocalizationScopes
in interfaceIBaseDirectoryModule
- Parameters:
localizationScopeSupport
-- Returns:
- a Collection object of
IDirectoryLocalizationScope
-
removeLocalizationScope
public void removeLocalizationScope(ILocalizationScopeSupport localizationScopeSupport, IDirectoryLocalizationScope directoryLocalizationScope) Description copied from interface:IBaseDirectoryModule
remove the localizationScope to the localizationScopeSupport object- Specified by:
removeLocalizationScope
in interfaceIBaseDirectoryModule
- Parameters:
localizationScopeSupport
-directoryLocalizationScope
-
-
restoreLocalizationScopeInheritance
Description copied from interface:IBaseDirectoryModule
restore the localizationScope inheritance for the localizationScopeSupport object- Specified by:
restoreLocalizationScopeInheritance
in interfaceIBaseDirectoryModule
- Parameters:
localizationScopeSupport
-
-
breakLocalizationScopeInheritance
Description copied from interface:IBaseDirectoryModule
break the localizationScope inheritance for the localizationScopeSupport object- Specified by:
breakLocalizationScopeInheritance
in interfaceIBaseDirectoryModule
- Parameters:
localizationScopeSupport
-
-
isLocalizationScopeInherited
Description copied from interface:IBaseDirectoryModule
Checks if the localization scope is inherited- Specified by:
isLocalizationScopeInherited
in interfaceIBaseDirectoryModule
- Parameters:
localizationScopeSupport
-- Returns:
- true if the localization scope is inhe
-
addOrganizationScope
Description copied from interface:IBaseDirectoryModule
Add OrganizationScope to the User object- Specified by:
addOrganizationScope
in interfaceIBaseDirectoryModule
- Parameters:
user
-organization
-heritable
-
-
getOrganizationScopes
Description copied from interface:IBaseDirectoryModule
Gets the OrganizationScope for the User object- Specified by:
getOrganizationScopes
in interfaceIBaseDirectoryModule
- Parameters:
user
-- Returns:
- a Collection object of
IDirectoryOrganizationScope
-
removeOrganizationScope
public void removeOrganizationScope(IUser user, IDirectoryOrganizationScope directoryOrganizationScope) Description copied from interface:IBaseDirectoryModule
Removes the directoryOrganizationScope to the user's OrganizationScope- Specified by:
removeOrganizationScope
in interfaceIBaseDirectoryModule
- Parameters:
user
-directoryOrganizationScope
-
-
restoreOrganizationScopeInheritance
Description copied from interface:IBaseDirectoryModule
restore the organizationScope inheritance for the user object- Specified by:
restoreOrganizationScopeInheritance
in interfaceIBaseDirectoryModule
- Parameters:
user
-
-
breakOrganizationScopeInheritance
Description copied from interface:IBaseDirectoryModule
break the organizationScope inheritance for the user object- Specified by:
breakOrganizationScopeInheritance
in interfaceIBaseDirectoryModule
- Parameters:
user
-
-
isOrganizationScopeInherited
Description copied from interface:IBaseDirectoryModule
is organizationScope inheritance- Specified by:
isOrganizationScopeInherited
in interfaceIBaseDirectoryModule
- Parameters:
user
-- Returns:
- isOrganizationScopeInherited
-
createSystemProfile
Description copied from interface:IBaseDirectoryModule
Creates aIProfile
.- Specified by:
createSystemProfile
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.name
- The system name of theIProfile
to be created.- Returns:
- a
IProfile
object. - Throws:
ModuleException
- default module exception.
-
getSystemProfile
Description copied from interface:IBaseDirectoryModule
Retrieves a systemIProfile
object by its system name.- Specified by:
getSystemProfile
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.name
- The system name of the role.- Returns:
- a
IProfile
object. - Throws:
ModuleException
- default module exception.
-
getSystemProfiles
Description copied from interface:IBaseDirectoryModule
Retrieves a collection of systemIProfile
objects.- Specified by:
getSystemProfiles
in interfaceIBaseDirectoryModule
- Parameters:
context
- The execution context.- Returns:
- a collection of system
IProfile
objects. - Throws:
ModuleException
- default module exception.
-
getCatalog
Description copied from interface:IBaseDirectoryModule
Gets the extended attributes catalog- Specified by:
getCatalog
in interfaceIBaseDirectoryModule
- Returns:
ICatalog
the extended attributes catalog
-
generateSystemName
Description copied from interface:IModule
Generate a valid system name for this module and this label.- Specified by:
generateSystemName
in interfaceIModule
- Parameters:
label
- label to normalize- Returns:
- normalized value
-