Class GroovyOrgStructureWrapper
- Since:
- Intrexx 5.2.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the local user cache.booleancontainsContainerNode(String p_strGuid) Check if the org structure contains a container with the given given unique identifier.booleancontainsSetNode(String p_strGuid) Check if the org structure contains a set with the given given unique identifier.booleanexistsUser(long p_lId) Check if the specified user exists.booleanexistsUser(long p_lId, boolean p_bIncludeDeactivated) Check if the specified user exists.booleanexistsUser(String p_strGuid) Check if the specified user exists.booleanexistsUser(String p_strGuid, boolean p_bIncludeDeactivated) Check if the specified user exists.booleanexistsUser(String p_strLoginName, String p_strLoginDomain) Check if the specified user exists.booleanexistsUser(String p_strLoginName, String p_strLoginDomain, boolean p_bIncludeDeactivated) Check if the specified user exists.findContainerNode(String p_strContainer) Find a container by its GUID, its name or its path.findSetNode(String p_strSet) Find a set by its GUID, its name or its path.Get a list of all containers in the org structure that have class CONTAINER.getContainerNode(String p_strGuid) Get a container by it's unique identifier.Get a list of all containers in the org structure.getContainingSets(IUser p_user) getContainingSets(String p_strUserGuid) Get a list of all sets in the org structure that have class DISTLIST.Get a list of all sets in the org structure that have class GROUP.getMembers(Object p_obj, boolean p_bIncludeDeactivated) getMembers(Collection<?> p_collection, boolean p_bIncludeDeactivated) getMembership(IUser p_user) getMembership(String p_strUserGuid) getMembership(Subject p_subject) getMembershipContainers(IUser p_user) getMembershipContainers(String p_strUserGuid) getMembershipSets(IUser p_user) getMembershipSets(String p_strUserGuid) Get a list of all containers in the org structure that have class ORGANIZATION.Get a list of all containers in the org structure that have class ORGUNIT.Get a list of all sets in the org structure that have class ROLE.Get the pseudo root node of the organizational structure.Get a list of all sets in the org structure that have class SET.getSetNode(String p_strGuid) Get a set by it's unique identifier.Get a list of all sets in the org structure.getUser(long p_lId) Get the user with the specified integer ID.getUser(long p_lId, boolean p_bIncludeDeactivated) Get the user with the specified integer ID.Get the user with the specified GUID.Get the user with the specified GUID.Get the user with the specified login name and domain.Get the user with the specified login name and domain.
-
Method Details
-
clearLocalUserCache
public void clearLocalUserCache()Clears the local user cache. -
existsUser
Check if the specified user exists.The method returns
falseif the user exists but is deactivated.- Parameters:
p_strGuid- The user's unique identifier (GUID).- Returns:
trueif the specified user exists, orfalseotherwise.- Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
existsUser
Check if the specified user exists.- Parameters:
p_strGuid- The user's unique identifier (GUID).p_bIncludeDeactivated-falseif deactivated users should be ignored, ortrueotherwise.- Returns:
trueif the specified user exists, orfalseotherwise.- Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
getUser
Get the user with the specified GUID.The method returns
nullif the user exists but is deactivated.Note: Do not store this user object for later use by another thread or transaction.
- Parameters:
p_strGuid- The user's unique identifier (GUID).- Returns:
- The user, or
nullif the user could not be found. - Throws:
SQLException- If a database error occurred.
-
getUser
Get the user with the specified GUID.Note: Do not store this user object for later use by another thread or transaction.
- Parameters:
p_strGuid- The user's unique identifier (GUID).p_bIncludeDeactivated-falseif deactivated users should be ignored, ortrueotherwise.- Returns:
- The user, or
nullif the user could not be found. - Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
existsUser
Check if the specified user exists.The method returns
falseif the user exists but is deactivated.- Parameters:
p_strLoginName- The login name.p_strLoginDomain- The login domain.- Returns:
trueif the specified user exists, orfalseotherwise.- Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
existsUser
public boolean existsUser(String p_strLoginName, String p_strLoginDomain, boolean p_bIncludeDeactivated) throws SQLException Check if the specified user exists.- Parameters:
p_strLoginName- The login name.p_strLoginDomain- The login domain.p_bIncludeDeactivated-falseif deactivated users should be ignored, ortrueotherwise.- Returns:
trueif the specified user exists, orfalseotherwise.- Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
getUser
Get the user with the specified login name and domain.The method returns
nullif the user exists but is deactivated.Note: Do not store this user object for later use by another thread or transaction.
- Parameters:
p_strLoginName- The login name.p_strLoginDomain- The login domain.- Returns:
- The user, or
nullif the user could not be found. - Throws:
SQLException- If a database error occurred.
-
getUser
public GroovyUser getUser(String p_strLoginName, String p_strLoginDomain, boolean p_bIncludeDeactivated) throws SQLException Get the user with the specified login name and domain.Note: Do not store this user object for later use by another thread or transaction.
- Parameters:
p_strLoginName- The login name.p_strLoginDomain- The login domain.p_bIncludeDeactivated-falseif deactivated users should be ignored, ortrueotherwise.- Returns:
- The user, or
nullif the user could not be found. - Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
existsUser
Check if the specified user exists.Note: Do not use this method except in cases where only the user's integer ID is known.
The method returns
falseif the user exists but is deactivated.- Parameters:
p_lId- The user's integer identifier.- Returns:
trueif the specified user exists, orfalseotherwise.- Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
existsUser
Check if the specified user exists.Note: Do not use this method except in cases where only the user's integer ID is known.
- Parameters:
p_lId- The user's integer identifier.p_bIncludeDeactivated-falseif deactivated users should be ignored, ortrueotherwise.- Returns:
trueif the specified user exists, orfalseotherwise.- Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
getUser
Get the user with the specified integer ID.Note: Do not use this method except in cases where only the user's integer ID is known.
Note: Do not store this user object for later use by another thread or transaction.
- Parameters:
p_lId- The user's integer identifier.- Returns:
- The user, or
nullif the user could not be found. - Throws:
SQLException- If a database error occurred.
-
getUser
Get the user with the specified integer ID.- Parameters:
p_lId- The user's integer identifier.p_bIncludeDeactivated-falseif deactivated users should be ignored, ortrueotherwise.Note: Do not use this method except in cases where only the user's integer ID is known.
Note: Do not store this user object for later use by another thread or transaction.
- Returns:
- The user, or
nullif the user could not be found. - Throws:
SQLException- If a database error occurred.- Since:
- Intrexx 6.0.
-
getRootNode
Get the pseudo root node of the organizational structure.The children of this node are the top-level organizational container nodes and do not report the pseudo root as their parent.
- Returns:
- The pseudo root node.
-
containsContainerNode
Check if the org structure contains a container with the given given unique identifier.- Parameters:
p_strGuid- The unique identifier.- Returns:
trueif the container was found, orfalseotherwise.
-
getContainerNode
Get a container by it's unique identifier.- Parameters:
p_strGuid- The organizational container's unique identifier.- Returns:
- The organizational container node, or
nullif none was found for the given unique identifier.
-
findContainerNode
Find a container by its GUID, its name or its path.- Parameters:
p_strContainer- The GUID, name, or path of the container.- Returns:
- The container, or
nullif the requested container was not found. - Throws:
IllegalArgumentException- Ifp_strContainerisnullor empty, or if the given identifier was ambiguous.
-
getContainerNodes
Get a list of all containers in the org structure.- Returns:
- A list that contains all containers in the org structure.
-
getContainerClassNodes
Get a list of all containers in the org structure that have class CONTAINER.- Returns:
- A list that contains all containers in the org structure that have class CONTAINER.
-
getOrgUnitClassNodes
Get a list of all containers in the org structure that have class ORGUNIT.- Returns:
- A list that contains all containers in the org structure that have class ORGUNIT.
-
getOrganizationClassNodes
Get a list of all containers in the org structure that have class ORGANIZATION.- Returns:
- A list that contains all containers in the org structure that have class ORGANIZATION.
-
containsSetNode
Check if the org structure contains a set with the given given unique identifier.- Parameters:
p_strGuid- The unique identifier.- Returns:
trueif the set was found, orfalseotherwise.
-
getSetNode
Get a set by it's unique identifier.- Parameters:
p_strGuid- The set's unique identifier.- Returns:
- The set node, or
nullif none was found for the given unique identifier.
-
findSetNode
Find a set by its GUID, its name or its path.- Parameters:
p_strSet- The GUID, name, or path of the set.- Returns:
- The set, or
nullif the requested set was not found. - Throws:
IllegalArgumentException- Ifp_strSetisnullor empty, or if the given identifier was ambiguous.
-
getSetNodes
Get a list of all sets in the org structure.- Returns:
- A list that contains all sets in the org structure.
-
getSetClassNodes
Get a list of all sets in the org structure that have class SET.- Returns:
- A list that contains all sets in the org structure that have class SET.
-
getRoleClassNodes
Get a list of all sets in the org structure that have class ROLE.- Returns:
- A list that contains all sets in the org structure that have class ROLE.
-
getGroupClassNodes
Get a list of all sets in the org structure that have class GROUP.- Returns:
- A list that contains all sets in the org structure that have class GROUP.
-
getDistListClassNodes
Get a list of all sets in the org structure that have class DISTLIST.- Returns:
- A list that contains all sets in the org structure that have class DISTLIST.
-
getContainingSets
- Throws:
SQLException- See Also:
-
getContainingSets
public Collection<GroovyDsSetNode> getContainingSets(String p_strUserGuid) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException - Throws:
SQLExceptionde.uplanet.lucy.usermanager.NotFoundException- See Also:
-
getMembershipSets
- Throws:
SQLException- See Also:
-
getMembershipSets
public Collection<GroovyDsSetNode> getMembershipSets(String p_strUserGuid) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException - Throws:
SQLExceptionde.uplanet.lucy.usermanager.NotFoundException- See Also:
-
getMembershipContainers
- Throws:
SQLException- See Also:
-
getMembershipContainers
public Collection<GroovyDsContainerNode> getMembershipContainers(String p_strUserGuid) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException - Throws:
SQLExceptionde.uplanet.lucy.usermanager.NotFoundException- See Also:
-
getMembership
- See Also:
-
getMembership
- Throws:
SQLException- See Also:
-
getMembership
public Collection<AbstractGroovyDsNode> getMembership(String p_strUserGuid) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException - Throws:
SQLExceptionde.uplanet.lucy.usermanager.NotFoundException- See Also:
-
getMembers
- Throws:
SQLException- Since:
- Intrexx 6.0.
- See Also:
-
getMembers
public List<GroovyUser> getMembers(Collection<?> p_collection, boolean p_bIncludeDeactivated) throws SQLException - Throws:
SQLException- Since:
- Intrexx 6.0.
- See Also:
-