public class PortalUserDirectoryTools extends UserDirectoryTools
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
PortalUserDirectoryTools()
Constructs an instanceof PortalUserDirectoryTools
|
Modifier and Type | Method and Description |
---|---|
void |
addUserToCommunity(java.lang.String pProfileId,
java.lang.String pCommunityId,
java.lang.String pUserType)
Adds a user to the community with the specified membership level.
|
void |
createCommunityRole(Community pCommunity,
java.lang.String pRoleName)
Creates a community-relative role.
|
void |
createGearRole(Gear pGear,
java.lang.String pRoleName)
Creates a gear-relative role.
|
void |
createRole(java.lang.String pRolePath)
Creates a role from a fully-qualified path name.
|
java.util.Collection |
getOrganizationItems()
Deprecated.
|
java.util.Collection |
getOrganizations()
Returns a Collection of all Organizations from the Portal Repository.
|
java.util.Collection |
getOrganizations(int pStartIndex,
int pEndIndex)
Returns a Collection of Organizations from the Portal Repository.
|
java.util.Collection |
getRoles()
Returns a Collection of all Roles from the Portal Repository.
|
java.util.Collection |
getRoles(int pStartIndex,
int pEndIndex)
Returns a Collection of Roles from the Portal Repository.
|
void |
removeRoleFolder(java.lang.String pName)
removeRoleFolder searches the user directory repository for the
role with the name passed in.
|
void |
removeRoleFromCommunity(java.lang.String pCommunityId,
java.lang.String pUserType)
removeRoleFromCommunity removes the role from the community.
|
void |
removeUserFromCommunity(java.lang.String pProfileId,
java.lang.String pCommunityId,
java.lang.String pUserType)
Revokes a community membership level from a user.
|
void |
setRoleDescription(java.lang.String pRolePath,
java.lang.String pValue)
Sets the "description" field of a role.
|
void |
updateRoleFolderName(java.lang.String pOldName,
java.lang.String pNewName)
update all the roles which have name as pOldName to have a name of pNewName
|
addUserToOrganization, assignRolesToUser, assignRolesToUser, doStartService, getAllRolesForUser, getUserDirectory, removeAllRolesFromUser, removeRolesFromUser, removeRolesFromUser, removeUserFromOrganization, removeUserFromParentOrganization, setUserDirectory
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public PortalUserDirectoryTools()
public java.util.Collection getOrganizations(int pStartIndex, int pEndIndex)
java.lang.IllegalArgumentException
- endpoint indices out of order
(fromIndex > toIndex)public java.util.Collection getOrganizations()
public java.util.Collection getRoles(int pStartIndex, int pEndIndex)
public java.util.Collection getRoles()
public java.util.Collection getOrganizationItems()
public void addUserToCommunity(java.lang.String pProfileId, java.lang.String pCommunityId, java.lang.String pUserType)
public void removeUserFromCommunity(java.lang.String pProfileId, java.lang.String pCommunityId, java.lang.String pUserType)
public void removeRoleFromCommunity(java.lang.String pCommunityId, java.lang.String pUserType)
pCommunityId
- the community IdpUserType
- the type of user to remove (e.g. guest, member, leader)public void removeRoleFolder(java.lang.String pName) throws DirectoryModificationException
pName
- the name of the folder to deleteDirectoryModificationException
public void createCommunityRole(Community pCommunity, java.lang.String pRoleName) throws DirectoryModificationException
DirectoryModificationException
public void createGearRole(Gear pGear, java.lang.String pRoleName) throws DirectoryModificationException
DirectoryModificationException
public void createRole(java.lang.String pRolePath) throws DirectoryModificationException
DirectoryModificationException
public void setRoleDescription(java.lang.String pRolePath, java.lang.String pValue)
public void updateRoleFolderName(java.lang.String pOldName, java.lang.String pNewName) throws RepositoryException
RepositoryException