|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.beans.admin.Admin
public class Admin
The class Admin is the main class of the Administrator.
The role of the administrator is to
create and maintain spaces.
Field Summary | |
---|---|
static String |
ADMIN_COMPONENT_ID
|
static String |
basketSuffix
|
static String |
SPACE_KEY_PREFIX
|
Method Summary | |
---|---|
void |
activateUser(String userId)
Activate the user represented by the given identifier. |
String |
addComponentInst(String sUserId,
ComponentInst componentInst)
|
String |
addComponentInst(String userId,
ComponentInst componentInst,
boolean startNewTransaction)
Add the given component instance in Silverpeas. |
String |
addDomain(Domain theDomain)
Create a new domain |
String |
addGroup(Group group)
Add the given group in Silverpeas. |
String |
addGroup(Group group,
boolean onlyInSilverpeas)
Add the given group in Silverpeas. |
String |
addGroupProfileInst(GroupProfileInst spaceProfileInst)
|
String |
addGroupProfileInst(GroupProfileInst groupProfileInst,
boolean startNewTransaction)
Add the space profile instance from Silverpeas |
String |
addProfileInst(ProfileInst profileInst)
|
String |
addProfileInst(ProfileInst profileInst,
String userId)
|
String |
addSpaceInst(String userId,
SpaceInst spaceInst)
add a space instance in database |
String |
addSpaceProfileInst(SpaceProfileInst spaceProfile,
String userId)
|
String |
addUser(UserDetail userDetail)
Add the given user in Silverpeas and specific domain. |
String |
addUser(UserDetail userDetail,
boolean addOnlyInSilverpeas)
Add the given user in Silverpeas and specific domain |
void |
addUserInGroup(String sUserId,
String sGroupId)
|
void |
assignRightsFromGroupToGroup(RightAssignationContext.MODE operationMode,
String sourceGroupId,
String targetGroupId,
boolean nodeAssignRights,
String authorId)
|
void |
assignRightsFromGroupToUser(RightAssignationContext.MODE operationMode,
String sourceGroupId,
String targetUserId,
boolean nodeAssignRights,
String authorId)
|
void |
assignRightsFromUserToGroup(RightAssignationContext.MODE operationMode,
String sourceUserId,
String targetGroupId,
boolean nodeAssignRights,
String authorId)
|
void |
assignRightsFromUserToUser(RightAssignationContext.MODE operationMode,
String sourceUserId,
String targetUserId,
boolean nodeAssignRights,
String authorId)
|
void |
blockUser(String userId)
Blocks the user represented by the given identifier. |
String |
copyAndPasteComponent(PasteDetail pasteDetail)
|
String |
copyAndPasteSpace(PasteDetail pasteDetail)
|
void |
createComponentIndex(ComponentInstLight componentInst)
Create the index for the specified component. |
void |
createComponentIndex(String componentId)
Create the index for the specified component. |
void |
createSpaceIndex(int spaceId)
|
void |
createSpaceIndex(SpaceInstLight spaceInst)
|
void |
deactivateUser(String userId)
Deactivates the user represented by the given identifier. |
String |
deleteComponentInst(String userId,
String componentId,
boolean definitive)
Delete the specified component. |
String |
deleteGroupById(String sGroupId)
Delete the group with the given Id The delete is apply recursively to the sub-groups. |
String |
deleteGroupById(String sGroupId,
boolean onlyInSilverpeas)
Delete the group with the given Id The delete is apply recursively to the sub-groups. |
String |
deleteGroupProfileInst(String groupId)
|
String |
deleteGroupProfileInst(String groupId,
boolean startNewTransaction)
Delete the given space profile from Silverpeas |
String |
deleteProfileInst(String sProfileId,
String userId)
|
void |
deleteSpaceIndex(SpaceInst spaceInst)
|
String |
deleteSpaceInstById(String userId,
String spaceId,
boolean definitive)
Delete the given space The delete is apply recursively to the sub-spaces |
String |
deleteSpaceInstById(String userId,
String spaceId,
boolean startNewTransaction,
boolean definitive)
Delete the given space if it's not the general space The delete is apply recursively to the sub-spaces |
String |
deleteSpaceProfileInst(String sSpaceProfileId,
String userId)
|
String |
deleteUser(String sUserId)
Delete the given user from silverpeas and specific domain |
String |
deleteUser(String sUserId,
boolean onlyInSilverpeas)
Delete the given user from silverpeas and specific domain |
String |
getAdministratorEmail()
Get administrator Email |
String[] |
getAdministratorUserIds(String fromUserId)
Get the Ids of the administrators |
AdminGroupInst[] |
getAdminOrganization()
Get Silverpeas organization |
String[] |
getAllComponentIds(String sSpaceId)
Return all the components Id in the subspaces available in webactiv given a space id |
String[] |
getAllComponentIdsRecur(String sSpaceId)
Return all the componentIds recursively in the subspaces available in webactiv given a space id |
String[] |
getAllComponentIdsRecur(String sSpaceId,
String sUserId,
String componentNameRoot,
boolean inCurrentSpace,
boolean inAllSpaces)
Return all the components Id recursively in (Space+subspaces, or only subspaces or in Silverpeas) available in silverpeas given a userId and a componentNameRoot |
Map<String,WAComponent> |
getAllComponents()
Return all the components of silverpeas read in the xmlComponent directory. |
Map<String,String> |
getAllComponentsNames()
Return all the components name available in Silverpeas. |
List<String> |
getAllDomainIdsForLogin(String login)
Get all domain ids for the specified login. |
Domain[] |
getAllDomains()
Get all domains |
String[] |
getAllGroupIds()
Get the all the groups ids available in Silverpeas. |
String[] |
getAllowedSubSpaceIds(String userId,
String spaceFatherId)
|
String[] |
getAllProfilesNames(String sComponentName)
Get all the profiles name available for the given component. |
String[] |
getAllRootGroupIds()
Gets the set of Ids denoting the groups without any parent. |
Group[] |
getAllRootGroups()
Gets all root user groups in Silverpeas. |
String[] |
getAllRootSpaceIds()
Return all the root spaces Ids available in Silverpeas. |
String[] |
getAllRootSpaceIds(String sUserId)
Return all the root spaces Id available in webactiv |
String[] |
getAllSpaceIds()
Return the all the spaces Ids available in Silverpeas. |
String[] |
getAllSpaceIds(String sUserId)
|
Map<String,SpaceTemplate> |
getAllSpaceTemplates()
|
String[] |
getAllSubGroupIds(String groupId)
Gets the set of Ids denoting the direct subgroups of a given group |
String[] |
getAllSubGroupIdsRecursively(String groupId)
|
Group[] |
getAllSubGroups(String parentGroupId)
For use in userPanel : return the direct sub-groups |
String[] |
getAllSubSpaceIds(String domainFatherId)
Get all the subspaces Ids available in Silverpeas given a domainFatherId (client id format) |
String[] |
getAllSubSpaceIds(String sSpaceId,
String sUserId)
Return all the subSpaces Id available in webactiv given a space id (driver format) |
int |
getAllSubUsersNumber(String sGroupId)
For use in userPanel : return the total number of users recursively contained in a group |
List<UserDetail> |
getAllUsers()
Get all users (except delete ones) from all domains. |
List<UserDetail> |
getAllUsersFromNewestToOldest()
Get all users (except delete ones) from all domains. |
String[] |
getAllUsersIds()
Get all the users Ids available in Silverpeas |
UserDetail[] |
getAllUsersOfGroup(String groupId)
|
String[] |
getAvailCompoIds(String userId)
Get the component ids allowed for the given user Id. |
String[] |
getAvailCompoIds(String sClientSpaceId,
String sUserId)
Get the component ids allowed for the given user Id in the given space |
String[] |
getAvailCompoIdsAtRoot(String sClientSpaceId,
String sUserId)
Get ids of components allowed to user in given space (not in subspaces) |
List<String> |
getAvailCompoIdsAtRoot(String sClientSpaceId,
String sUserId,
String componentNameRoot)
Get the componentIds allowed for the given user Id in the given space and the componentNameRoot |
List<ComponentInstLight> |
getAvailCompoInSpace(String userId,
String spaceId)
Get components of a given space (and subspaces) available to a user. |
List<ComponentInstLight> |
getAvailComponentInstLights(String userId,
String componentName)
gets the available component for a given user |
String[] |
getAvailDriverCompoIds(String sClientSpaceId,
String sUserId)
Get the driver component ids allowed for the given user Id in the given space |
String |
getClientSpaceId(String sDriverSpaceId)
Converts driver space id to client space id |
String[] |
getClientSpaceIds(String[] asDriverSpaceIds)
Converts driver space ids to client space ids |
CompoSpace[] |
getCompoForUser(String sUserId,
String sComponentName)
Get the tuples (space id, compo id) allowed for the given user and given component name |
String[] |
getCompoId(String sComponentName)
Return the compo id for the given component name |
String[] |
getComponentIdsByNameAndUserId(String sUserId,
String sComponentName)
|
ComponentInst |
getComponentInst(String sClientComponentId)
Return the component Inst corresponding to the given ID |
ComponentInstLight |
getComponentInstLight(String componentId)
Return the component Inst Light corresponding to the given ID |
List<Parameter> |
getComponentParameters(String componentId)
Get the parameters for the given component. |
String |
getComponentParameterValue(String componentId,
String parameterName)
Return the value of the parameter for the given component and the given name of parameter |
String[] |
getCurrentProfiles(String sUserId,
ComponentInst componentInst)
Get the profile names of the given user for the given component |
String[] |
getCurrentProfiles(String sUserId,
String componentId)
Get the profile names of the given user for the given component |
String |
getDAPIGeneralAdminId()
Get the administrator email |
String[] |
getDirectGroupsIdsOfUser(String userId)
|
Domain |
getDomain(String domainId)
Get a domain with given id |
long |
getDomainActions(String domainId)
Get a domain with given id |
UserDetail[] |
getFiltredDirectUsers(String sGroupId,
String sUserLastNameFilter)
For use in userPanel : return the users that are direct child of a given group |
String |
getGeneralSpaceId()
Get Enterprise space id. |
Group |
getGroup(String groupId)
Get group information with the given id |
Group |
getGroupByNameInDomain(String groupName,
String domainFatherId)
Get group information with the given group name. |
String[] |
getGroupManageableSpaceIds(String sGroupId)
Get the spaces ids manageable by given group Id |
String |
getGroupName(String sGroupId)
Get the group name corresponding to the given group id. |
String[] |
getGroupNames(String[] groupIds)
Get the group names corresponding to the given group ids. |
GroupProfileInst |
getGroupProfileInst(String groupId)
Get the group profile instance corresponding to the given ID |
Group[] |
getGroups(String[] asGroupId)
Get groups information with the given ids. |
String |
getNextDomainId()
Create a new domain |
List<SpaceInstLight> |
getPathToComponent(String componentId)
Retrieve spaces from root to component |
List<String> |
getPathToGroup(String groupId)
|
List<SpaceInstLight> |
getPathToSpace(String spaceId,
boolean includeTarget)
Retrieve spaces from root to space identified by spaceId |
SpaceInst |
getPersonalSpace(String userId)
|
String[] |
getProfileIds(String sUserId)
Get all the profiles Id for the given user |
String[] |
getProfileIdsOfGroup(String sGroupId)
Get all the profiles Id for the given group |
ProfileInst |
getProfileInst(String sProfileId)
Get the profile instance corresponding to the given id |
String |
getProfileLabelfromName(String sComponentName,
String sProfileName,
String lang)
Get the profile label from its name. |
List<ProfileInst> |
getProfilesByObject(String objectId,
String objectType,
String componentId)
|
String[] |
getProfilesByObjectAndUserId(int objectId,
String objectType,
String componentId,
String userId)
|
Map<Integer,List<String>> |
getProfilesByObjectTypeAndUserId(String objectType,
String componentId,
String userId)
|
List<ComponentInstLight> |
getRemovedComponents()
Returns all components which has been removed but not definitely deleted. |
List<SpaceInstLight> |
getRemovedSpaces()
Returns all spaces which has been removed but not definitely deleted. |
String |
getRequestRouter(String sComponentName)
|
String[] |
getRootGroupIdsOfDomain(String domainId)
|
Group[] |
getRootGroupsOfDomain(String domainId)
|
SpaceInstLight |
getRootSpace(String spaceId)
Return the higher space according to a subspace (N level compliant) |
List<SpaceInstLight> |
getRootSpacesContainingComponent(String userId,
String componentName)
This method returns all root spaces which contains at least one allowed component of type componentName in this space or subspaces. |
SpaceInst |
getSpaceInstById(String spaceId)
Get the space instance with the given space id. |
SpaceInst |
getSpaceInstFromTemplate(String templateName)
|
SpaceInstLight |
getSpaceInstLightById(String sClientSpaceId)
Get the space instance light (only spaceid, fatherId and name) with the given space id |
String[] |
getSpaceNames(String[] asClientSpaceIds)
Return the the spaces name corresponding to the given space ids |
SpaceProfileInst |
getSpaceProfileInst(String spaceProfileId)
Get the space profile instance corresponding to the given ID |
List<DomainProperty> |
getSpecificPropertiesToImportUsers(String domainId,
String language)
|
List<SpaceInstLight> |
getSubSpaces(String spaceId)
|
List<SpaceInstLight> |
getSubSpacesContainingComponent(String spaceId,
String userId,
String componentName)
This method returns all sub spaces which contains at least one allowed component of type componentName in this space or subspaces. |
List<SpaceInstLight> |
getSubSpacesOfUser(String userId,
String spaceId)
Get subspaces of a given space available to a user. |
Group[] |
getSynchronizedGroups()
|
Map<String,SpaceAndChildren> |
getTreeView(String userId,
String spaceId)
|
UserLog[] |
getUserConnected()
Get the list of connected users |
UserDetail |
getUserDetail(String sUserId)
Get the user detail corresponding to the given user Id |
UserDetail[] |
getUserDetails(String[] userIds)
Get the user details corresponding to the given user Ids. |
UserFull |
getUserFull(String sUserId)
Get the user corresponding to the given user Id (only infos in cache table) |
UserFull |
getUserFull(String domainId,
String specificId)
|
String |
getUserIdByAuthenticationKey(String authenticationKey)
|
String |
getUserIdByLoginAndDomain(String sLogin,
String sDomainId)
Get the user Id corresponding to Domain/Login |
String[] |
getUserIdsOfDomain(String domainId)
|
List<String> |
getUserManageableGroupIds(String sUserId)
|
String[] |
getUserManageableSpaceIds(String sUserId)
Get the spaces ids manageable by given user Id |
String[] |
getUserManageableSpaceRootIds(String sUserId)
Get the spaces roots ids manageable by given user Id |
String[] |
getUserManageableSubSpaceIds(String sUserId,
String sParentSpaceId)
Get the sub space ids manageable by given user Id in given space |
String[] |
getUserRootSpaceIds(String sUserId)
Get the root spaces ids allowed for the given user Id |
UserDetail[] |
getUsers(boolean bAllProfiles,
String sProfile,
String sClientSpaceId,
String sClientComponentId)
if bAllProfiles = true, return all the user details for the given space and given component if bAllProfiles = false, return the user details only for the given profile for the given space and given component |
int |
getUsersNumberOfDomain(String domainId)
this method gets number user in domain. |
UserDetail[] |
getUsersOfDomain(String domainId)
|
List<UserDetail> |
getUsersOfDomains(List<String> domainIds)
Get all users (except delete ones) from specified domains. |
List<UserDetail> |
getUsersOfDomainsFromNewestToOldest(List<String> domainIds)
Get all users (except delete ones) from specified domains. |
String[] |
getUserSpaceIds(String sUserId)
Get the spaces ids allowed for the given user Id |
List<SpaceInstLight> |
getUserSpaceTreeview(String userId)
Get all spaces available to a user. |
String[] |
getUserSubSpaceIds(String sUserId,
String spaceId)
|
String |
identify(String sKey,
String sSessionId,
boolean isAppInMaintenance)
Get the user id for the given login password |
String |
identify(String sKey,
String sSessionId,
boolean isAppInMaintenance,
boolean removeKey)
Get the user id for the given login password |
void |
indexAllGroups()
|
void |
indexAllUsers()
|
void |
indexGroups(String domainId)
|
void |
indexUsers(String domainId)
|
protected void |
internalSynchronizeGroup(DomainDriver synchroDomain,
Group latestGroup,
boolean recurs)
|
boolean |
isAnAdminTool(String toolId)
Is the specified tool belongs to the administration component? |
boolean |
isComponentAvailable(String componentId,
String userId)
Is the specified component instance available among the components instances accessibles by the specified user? |
boolean |
isComponentManageable(String componentId,
String userId)
|
boolean |
isDomainManagerUser(String userId,
String domainId)
|
boolean |
isEmailExisting(String email)
Checks if an existing user already have the given email |
boolean |
isGroupExist(String groupName)
Tests if group exists in Silverpeas. |
boolean |
isObjectAvailable(String componentId,
int objectId,
String objectType,
String userId)
|
boolean |
isSpaceAvailable(String userId,
String spaceId)
This method permit to know if given space is allowed to given user. |
boolean |
isSpaceInstExist(String spaceId)
Tests if a space with given space id exists. |
void |
migrateUser(UserDetail userDetail,
String targetDomainId)
|
void |
moveComponentInst(String spaceId,
String componentId,
String idComponentBefore,
ComponentInst[] componentInsts)
Move the given component in Silverpeas. |
void |
moveSpace(String spaceId,
String fatherId)
|
void |
reloadCache()
|
String |
removeDomain(String domainId)
Remove a domain |
void |
removeUserFromGroup(String sUserId,
String sGroupId)
|
void |
resetAllDBConnections(boolean isScheduled)
|
void |
restoreComponentFromBasket(String componentId)
|
void |
restoreSpaceFromBasket(String spaceId)
|
Group[] |
searchGroups(Group modelGroup,
boolean isAnd)
|
ListSlice<Group> |
searchGroups(GroupsSearchCriteria searchCriteria)
|
String[] |
searchGroupsIds(boolean isRootGroup,
String componentId,
String[] profileId,
Group modelGroup)
|
UserDetail[] |
searchUsers(String domainId,
Map<String,String> query)
|
UserDetail[] |
searchUsers(UserDetail modelUser,
boolean isAnd)
|
ListSlice<UserDetail> |
searchUsers(UserDetailsSearchCriteria searchCriteria)
|
String[] |
searchUsersIds(String sGroupId,
String componentId,
String[] profileIds,
UserDetail modelUser)
|
void |
setComponentPlace(String componentId,
String idComponentBefore,
ComponentInst[] m_BrothersComponents)
|
void |
setSpaceProfilesToComponent(ComponentInst component,
SpaceInst space)
|
void |
setSpaceProfilesToComponent(ComponentInst component,
SpaceInst space,
boolean startNewTransaction)
Set space profile to a component. |
protected void |
setSpaceProfilesToSubSpace(SpaceInst subSpace,
SpaceInst space,
boolean persist,
boolean startNewTransaction)
|
void |
startServer()
|
String |
synchronizeGroup(String groupId,
boolean recurs)
|
void |
synchronizeGroupByRule(String groupId,
boolean scheduledMode)
|
String |
synchronizeImportGroup(String domainId,
String groupKey,
String askedParentId,
boolean recurs,
boolean isIdKey)
|
String |
synchronizeImportUser(String domainId,
String specificId,
boolean recurs)
Synchronize Users and groups between cache and domain's datastore |
String |
synchronizeImportUserByLogin(String domainId,
String userLogin,
boolean recurs)
Synchronize Users and groups between cache and domain's datastore |
String |
synchronizeRemoveGroup(String groupId)
|
String |
synchronizeRemoveUser(String userId)
Synchronize Users and groups between cache and domain's datastore. |
String |
synchronizeSilverpeasWithDomain(String sDomainId)
|
String |
synchronizeSilverpeasWithDomain(String sDomainId,
boolean threaded)
Synchronize Users and groups between cache and domain's datastore |
String |
synchronizeUser(String userId,
boolean recurs)
Synchronize Users and groups between cache and domain's datastore |
void |
unblockUser(String userId)
Unblock the user represented by the given identifier. |
String |
updateComponentInst(ComponentInst component)
Update the given component in Silverpeas. |
void |
updateComponentOrderNum(String componentId,
int orderNum)
|
String |
updateDomain(Domain domain)
Update a domain |
String |
updateGroup(Group group)
Update the given group in Silverpeas and specific. |
String |
updateGroup(Group group,
boolean onlyInSilverpeas)
Update the given group in Silverpeas and specific |
String |
updateGroupProfileInst(GroupProfileInst groupProfileInstNew)
Update the given space profile in Silverpeas |
String |
updateProfileInst(ProfileInst profileInstNew)
|
String |
updateProfileInst(ProfileInst profileInstNew,
String userId)
|
String |
updateSpaceInst(SpaceInst spaceInstNew)
Updates the space (with the given name) with the given space Updates only the node |
void |
updateSpaceOrderNum(String spaceId,
int orderNum)
|
String |
updateSpaceProfileInst(SpaceProfileInst newSpaceProfile,
String userId)
|
String |
updateSpaceProfileInst(SpaceProfileInst newSpaceProfile,
String userId,
boolean startNewTransaction)
|
String |
updateUser(UserDetail user)
Update the given user (ONLY IN SILVERPEAS) |
String |
updateUserFull(UserFull user)
Update the given user in Silverpeas and specific domain |
void |
userAcceptsTermsOfService(String userId)
Updates the acceptance date of a user from its id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ADMIN_COMPONENT_ID
public static final String SPACE_KEY_PREFIX
public static final String basketSuffix
Method Detail |
---|
public void reloadCache()
public void startServer()
public String getGeneralSpaceId()
public void createSpaceIndex(int spaceId)
public void createSpaceIndex(SpaceInstLight spaceInst)
public void deleteSpaceIndex(SpaceInst spaceInst)
public String addSpaceInst(String userId, SpaceInst spaceInst) throws AdminException
userId
- Id of user who add the spacespaceInst
- SpaceInst object containing information about the space to be created
AdminException
public String deleteSpaceInstById(String userId, String spaceId, boolean definitive) throws AdminException
userId
- Id of user who deletes the spacespaceId
- Id of the space to be deleteddefinitive
-
AdminException
public String deleteSpaceInstById(String userId, String spaceId, boolean startNewTransaction, boolean definitive) throws AdminException
userId
- Id of user who deletes the spacespaceId
- Id of the space to be deletedstartNewTransaction
- Flag : must be true at first call to initialize transaction, then
false for recurrents callsdefinitive
-
AdminException
public void restoreSpaceFromBasket(String spaceId) throws AdminException
spaceId
-
AdminException
public SpaceInst getSpaceInstById(String spaceId) throws AdminException
spaceId
- client space id
AdminException
public SpaceInst getPersonalSpace(String userId) throws AdminException
userId
-
AdminException
public String[] getAllSubSpaceIds(String domainFatherId) throws AdminException
domainFatherId
- Id of the father space
AdminException
public String updateSpaceInst(SpaceInst spaceInstNew) throws AdminException
spaceInstNew
- SpaceInst object containing new information for space to be updated
AdminException
public void updateSpaceOrderNum(String spaceId, int orderNum) throws AdminException
spaceId
- orderNum
-
AdminException
public boolean isSpaceInstExist(String spaceId) throws AdminException
spaceId
- if of space to be tested
AdminException
public String[] getAllRootSpaceIds() throws AdminException
AdminException
public List<SpaceInstLight> getPathToComponent(String componentId) throws AdminException
componentId
- the target component
AdminException
public List<SpaceInstLight> getPathToSpace(String spaceId, boolean includeTarget) throws AdminException
spaceId
- the target spaceincludeTarget
-
AdminException
public String[] getAllSpaceIds() throws AdminException
AdminException
public List<SpaceInstLight> getRemovedSpaces() throws AdminException
AdminException
public List<ComponentInstLight> getRemovedComponents() throws AdminException
AdminException
public String[] getSpaceNames(String[] asClientSpaceIds) throws AdminException
asClientSpaceIds
-
AdminException
public Map<String,SpaceTemplate> getAllSpaceTemplates()
public SpaceInst getSpaceInstFromTemplate(String templateName)
public Map<String,String> getAllComponentsNames()
AdminException
public Map<String,WAComponent> getAllComponents()
public ComponentInst getComponentInst(String sClientComponentId) throws AdminException
sClientComponentId
-
AdminException
public ComponentInstLight getComponentInstLight(String componentId) throws AdminException
componentId
-
AdminException
public List<Parameter> getComponentParameters(String componentId)
componentId
-
public String getComponentParameterValue(String componentId, String parameterName)
componentId
- parameterName
-
public void restoreComponentFromBasket(String componentId) throws AdminException
AdminException
public void createComponentIndex(String componentId)
componentId
- public void createComponentIndex(ComponentInstLight componentInst)
componentInst
- public String addComponentInst(String sUserId, ComponentInst componentInst) throws AdminException, QuotaException
AdminException
QuotaException
public String addComponentInst(String userId, ComponentInst componentInst, boolean startNewTransaction) throws AdminException, QuotaException
userId
- componentInst
- startNewTransaction
-
AdminException
QuotaException
public String deleteComponentInst(String userId, String componentId, boolean definitive) throws AdminException
userId
- componentId
- definitive
-
AdminException
public void updateComponentOrderNum(String componentId, int orderNum) throws AdminException
componentId
- orderNum
-
AdminException
public String updateComponentInst(ComponentInst component) throws AdminException
component
-
AdminException
protected void setSpaceProfilesToSubSpace(SpaceInst subSpace, SpaceInst space, boolean persist, boolean startNewTransaction) throws AdminException
AdminException
public void setSpaceProfilesToComponent(ComponentInst component, SpaceInst space) throws AdminException
AdminException
public void setSpaceProfilesToComponent(ComponentInst component, SpaceInst space, boolean startNewTransaction) throws AdminException
component
- the object to set profilesspace
- the object to get profiles
AdminException
public void moveSpace(String spaceId, String fatherId) throws AdminException
AdminException
public void moveComponentInst(String spaceId, String componentId, String idComponentBefore, ComponentInst[] componentInsts) throws AdminException
spaceId
- componentId
- idComponentBefore
- componentInsts
-
AdminException
public void setComponentPlace(String componentId, String idComponentBefore, ComponentInst[] m_BrothersComponents) throws AdminException
AdminException
public String getRequestRouter(String sComponentName)
public String[] getAllProfilesNames(String sComponentName)
sComponentName
-
AdminException
public String getProfileLabelfromName(String sComponentName, String sProfileName, String lang)
sComponentName
- sProfileName
-
AdminException
public ProfileInst getProfileInst(String sProfileId) throws AdminException
sProfileId
-
AdminException
public List<ProfileInst> getProfilesByObject(String objectId, String objectType, String componentId) throws AdminException
AdminException
public String[] getProfilesByObjectAndUserId(int objectId, String objectType, String componentId, String userId) throws AdminException
AdminException
public Map<Integer,List<String>> getProfilesByObjectTypeAndUserId(String objectType, String componentId, String userId) throws AdminException
AdminException
public boolean isObjectAvailable(String componentId, int objectId, String objectType, String userId) throws AdminException
AdminException
public String addProfileInst(ProfileInst profileInst) throws AdminException
AdminException
public String addProfileInst(ProfileInst profileInst, String userId) throws AdminException
AdminException
public String deleteProfileInst(String sProfileId, String userId) throws AdminException
AdminException
public String updateProfileInst(ProfileInst profileInstNew) throws AdminException
AdminException
public String updateProfileInst(ProfileInst profileInstNew, String userId) throws AdminException
AdminException
public SpaceProfileInst getSpaceProfileInst(String spaceProfileId) throws AdminException
spaceProfileId
-
AdminException
public String addSpaceProfileInst(SpaceProfileInst spaceProfile, String userId) throws AdminException
AdminException
public String deleteSpaceProfileInst(String sSpaceProfileId, String userId) throws AdminException
AdminException
public String updateSpaceProfileInst(SpaceProfileInst newSpaceProfile, String userId) throws AdminException
AdminException
public String updateSpaceProfileInst(SpaceProfileInst newSpaceProfile, String userId, boolean startNewTransaction) throws AdminException
AdminException
public String[] getGroupNames(String[] groupIds) throws AdminException
groupIds
-
AdminException
public String getGroupName(String sGroupId) throws AdminException
sGroupId
-
AdminException
public String[] getAllGroupIds() throws AdminException
AdminException
public boolean isGroupExist(String groupName) throws AdminException
groupName
-
AdminException
public Group getGroup(String groupId) throws AdminException
groupId
-
AdminException
public List<String> getPathToGroup(String groupId) throws AdminException
AdminException
public Group getGroupByNameInDomain(String groupName, String domainFatherId) throws AdminException
groupName
- domainFatherId
-
AdminException
public Group[] getGroups(String[] asGroupId) throws AdminException
asGroupId
-
AdminException
public String addGroup(Group group) throws AdminException
group
-
AdminException
public String addGroup(Group group, boolean onlyInSilverpeas) throws AdminException
group
- onlyInSilverpeas
-
AdminException
public String deleteGroupById(String sGroupId) throws AdminException
sGroupId
-
AdminException
public String deleteGroupById(String sGroupId, boolean onlyInSilverpeas) throws AdminException
sGroupId
- onlyInSilverpeas
-
AdminException
public String updateGroup(Group group) throws AdminException
group
-
AdminException
public String updateGroup(Group group, boolean onlyInSilverpeas) throws AdminException
group
- onlyInSilverpeas
-
AdminException
public void removeUserFromGroup(String sUserId, String sGroupId) throws AdminException
AdminException
public void addUserInGroup(String sUserId, String sGroupId) throws AdminException
AdminException
public AdminGroupInst[] getAdminOrganization() throws AdminException
AdminException
public String[] getAllSubGroupIds(String groupId) throws AdminException
groupId
- The ID of the parent group
String
.
AdminException
public String[] getAllSubGroupIdsRecursively(String groupId) throws AdminException
AdminException
public String[] getAllRootGroupIds() throws AdminException
String
.
AdminException
public Group[] getAllRootGroups() throws AdminException
AdminException
- if an error occurs whil getting the
root user groups.public GroupProfileInst getGroupProfileInst(String groupId) throws AdminException
AdminException
public String addGroupProfileInst(GroupProfileInst spaceProfileInst) throws AdminException
AdminException
public String addGroupProfileInst(GroupProfileInst groupProfileInst, boolean startNewTransaction) throws AdminException
AdminException
public String deleteGroupProfileInst(String groupId) throws AdminException
AdminException
public String deleteGroupProfileInst(String groupId, boolean startNewTransaction) throws AdminException
AdminException
public String updateGroupProfileInst(GroupProfileInst groupProfileInstNew) throws AdminException
AdminException
public void indexAllGroups() throws AdminException
AdminException
public void indexGroups(String domainId) throws AdminException
domainId
-
AdminException
public String[] getAllUsersIds() throws AdminException
AdminException
public UserDetail getUserDetail(String sUserId) throws AdminException
sUserId
- the user id.
AdminException
public UserDetail[] getUserDetails(String[] userIds)
userIds
-
AdminException
public List<UserDetail> getAllUsers() throws AdminException
AdminException
public List<UserDetail> getAllUsersFromNewestToOldest() throws AdminException
AdminException
public boolean isEmailExisting(String email) throws AdminException
email
- email to check
AdminException
public String getUserIdByLoginAndDomain(String sLogin, String sDomainId) throws AdminException
sLogin
- sDomainId
-
AdminException
public String getUserIdByAuthenticationKey(String authenticationKey) throws Exception
authenticationKey
- The authentication key.
Exception
public UserFull getUserFull(String sUserId) throws AdminException
sUserId
-
AdminException
public UserFull getUserFull(String domainId, String specificId) throws Exception
Exception
public String addUser(UserDetail userDetail) throws AdminException
userDetail
-
AdminException
public String addUser(UserDetail userDetail, boolean addOnlyInSilverpeas) throws AdminException
userDetail
- user to addaddOnlyInSilverpeas
- true if user must not be added in distant datasource (used by
synchronization tools)
AdminException
public void migrateUser(UserDetail userDetail, String targetDomainId) throws AdminException
AdminException
public void blockUser(String userId) throws AdminException
userId
-
AdminException
public void unblockUser(String userId) throws AdminException
userId
-
AdminException
public void deactivateUser(String userId) throws AdminException
userId
-
AdminException
public void activateUser(String userId) throws AdminException
userId
-
AdminException
public void userAcceptsTermsOfService(String userId) throws AdminException
userId
-
AdminException
public String deleteUser(String sUserId) throws AdminException
AdminException
public String deleteUser(String sUserId, boolean onlyInSilverpeas) throws AdminException
AdminException
public String updateUser(UserDetail user) throws AdminException
AdminException
public String updateUserFull(UserFull user) throws AdminException
AdminException
public String getClientSpaceId(String sDriverSpaceId)
public String[] getClientSpaceIds(String[] asDriverSpaceIds) throws Exception
Exception
public String getNextDomainId() throws AdminException
AdminException
public String addDomain(Domain theDomain) throws AdminException
AdminException
public String updateDomain(Domain domain) throws AdminException
AdminException
public String removeDomain(String domainId) throws AdminException
AdminException
public Domain[] getAllDomains() throws AdminException
AdminException
public List<String> getAllDomainIdsForLogin(String login) throws AdminException
AdminException
public Domain getDomain(String domainId) throws AdminException
AdminException
public long getDomainActions(String domainId) throws AdminException
AdminException
public Group[] getRootGroupsOfDomain(String domainId) throws AdminException
AdminException
public Group[] getSynchronizedGroups() throws AdminException
AdminException
public String[] getRootGroupIdsOfDomain(String domainId) throws AdminException
AdminException
public UserDetail[] getAllUsersOfGroup(String groupId) throws AdminException
AdminException
public UserDetail[] getUsersOfDomain(String domainId) throws AdminException
AdminException
public List<UserDetail> getUsersOfDomains(List<String> domainIds) throws AdminException
AdminException
public List<UserDetail> getUsersOfDomainsFromNewestToOldest(List<String> domainIds) throws AdminException
AdminException
public String[] getUserIdsOfDomain(String domainId) throws AdminException
AdminException
public String identify(String sKey, String sSessionId, boolean isAppInMaintenance) throws AdminException
AdminException
public String identify(String sKey, String sSessionId, boolean isAppInMaintenance, boolean removeKey) throws AdminException
AdminException
public String[] getDirectGroupsIdsOfUser(String userId) throws AdminException
AdminException
public UserDetail[] searchUsers(UserDetail modelUser, boolean isAnd) throws AdminException
AdminException
public Group[] searchGroups(Group modelGroup, boolean isAnd) throws AdminException
AdminException
public String[] getUserSpaceIds(String sUserId) throws AdminException
AdminException
public String[] getUserRootSpaceIds(String sUserId) throws AdminException
AdminException
public String[] getUserSubSpaceIds(String sUserId, String spaceId) throws AdminException
AdminException
public boolean isSpaceAvailable(String userId, String spaceId) throws AdminException
userId
- spaceId
-
AdminException
public List<SpaceInstLight> getSubSpacesOfUser(String userId, String spaceId) throws AdminException
userId
- spaceId
-
AdminException
public List<SpaceInstLight> getSubSpaces(String spaceId) throws AdminException
AdminException
public List<ComponentInstLight> getAvailCompoInSpace(String userId, String spaceId) throws AdminException
userId
- spaceId
-
AdminException
public Map<String,SpaceAndChildren> getTreeView(String userId, String spaceId) throws AdminException
AdminException
public List<SpaceInstLight> getUserSpaceTreeview(String userId) throws Exception
userId
-
Exception
public String[] getAllowedSubSpaceIds(String userId, String spaceFatherId) throws AdminException
AdminException
public SpaceInstLight getSpaceInstLightById(String sClientSpaceId) throws AdminException
sClientSpaceId
- client space id (as WAxx)
AdminException
public SpaceInstLight getRootSpace(String spaceId) throws AdminException
spaceId
- the subspace id
AdminException
public String[] getGroupManageableSpaceIds(String sGroupId) throws AdminException
AdminException
public String[] getUserManageableSpaceIds(String sUserId) throws AdminException
AdminException
public String[] getUserManageableSpaceRootIds(String sUserId) throws AdminException
AdminException
public String[] getUserManageableSubSpaceIds(String sUserId, String sParentSpaceId) throws AdminException
AdminException
public List<String> getUserManageableGroupIds(String sUserId) throws AdminException
AdminException
public String[] getAvailCompoIds(String sClientSpaceId, String sUserId) throws AdminException
AdminException
public boolean isAnAdminTool(String toolId)
toolId
- the unique identifier of the tool.
public boolean isComponentAvailable(String componentId, String userId) throws AdminException
componentId
- the unique identifier of a component instance.userId
- the unique identifier of a user.
AdminException
public boolean isComponentManageable(String componentId, String userId) throws AdminException
AdminException
public String[] getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId) throws AdminException
AdminException
public List<String> getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId, String componentNameRoot) throws AdminException
sClientSpaceId
- sUserId
- componentNameRoot
-
AdminException
public String[] getAvailCompoIds(String userId) throws AdminException
userId
-
AdminException
public String[] getAvailDriverCompoIds(String sClientSpaceId, String sUserId) throws AdminException
AdminException
public String[] getComponentIdsByNameAndUserId(String sUserId, String sComponentName) throws AdminException
AdminException
public List<ComponentInstLight> getAvailComponentInstLights(String userId, String componentName) throws AdminException
userId
- user identifier used to get componentcomponentName
- type of component to retrieve ( for example : kmelia, forums, blog)
AdminException
public List<SpaceInstLight> getRootSpacesContainingComponent(String userId, String componentName) throws AdminException
userId
- componentName
- the component type (kmelia, gallery...)
AdminException
public List<SpaceInstLight> getSubSpacesContainingComponent(String spaceId, String userId, String componentName) throws AdminException
userId
- componentName
- the component type (kmelia, gallery...)
AdminException
public CompoSpace[] getCompoForUser(String sUserId, String sComponentName) throws AdminException
AdminException
public String[] getCompoId(String sComponentName) throws AdminException
AdminException
public String[] getProfileIds(String sUserId) throws AdminException
AdminException
public String[] getProfileIdsOfGroup(String sGroupId) throws AdminException
AdminException
public String[] getCurrentProfiles(String sUserId, ComponentInst componentInst)
public String[] getCurrentProfiles(String sUserId, String componentId) throws AdminException
AdminException
public UserDetail[] getUsers(boolean bAllProfiles, String sProfile, String sClientSpaceId, String sClientComponentId) throws AdminException
AdminException
public Group[] getAllSubGroups(String parentGroupId) throws AdminException
AdminException
public UserDetail[] getFiltredDirectUsers(String sGroupId, String sUserLastNameFilter) throws AdminException
AdminException
public int getAllSubUsersNumber(String sGroupId) throws AdminException
AdminException
public int getUsersNumberOfDomain(String domainId) throws AdminException
AdminException
public String[] getAdministratorUserIds(String fromUserId) throws AdminException
AdminException
public String getAdministratorEmail()
public String getDAPIGeneralAdminId()
public UserLog[] getUserConnected()
public String[] getAllSpaceIds(String sUserId) throws Exception
Exception
public String[] getAllRootSpaceIds(String sUserId) throws Exception
Exception
public String[] getAllSubSpaceIds(String sSpaceId, String sUserId) throws Exception
Exception
public String[] getAllComponentIds(String sSpaceId) throws Exception
Exception
public String[] getAllComponentIdsRecur(String sSpaceId) throws Exception
Exception
public String[] getAllComponentIdsRecur(String sSpaceId, String sUserId, String componentNameRoot, boolean inCurrentSpace, boolean inAllSpaces) throws Exception
sSpaceId
- sUserId
- componentNameRoot
- inCurrentSpace
- inAllSpaces
-
Exception
public void synchronizeGroupByRule(String groupId, boolean scheduledMode) throws AdminException
AdminException
public String synchronizeGroup(String groupId, boolean recurs) throws Exception
Exception
public String synchronizeImportGroup(String domainId, String groupKey, String askedParentId, boolean recurs, boolean isIdKey) throws Exception
Exception
public String synchronizeRemoveGroup(String groupId) throws Exception
Exception
protected void internalSynchronizeGroup(DomainDriver synchroDomain, Group latestGroup, boolean recurs) throws Exception
Exception
public String synchronizeUser(String userId, boolean recurs) throws Exception
Exception
public String synchronizeImportUserByLogin(String domainId, String userLogin, boolean recurs) throws Exception
Exception
public String synchronizeImportUser(String domainId, String specificId, boolean recurs) throws Exception
Exception
public List<DomainProperty> getSpecificPropertiesToImportUsers(String domainId, String language) throws Exception
Exception
public UserDetail[] searchUsers(String domainId, Map<String,String> query) throws Exception
Exception
public String synchronizeRemoveUser(String userId) throws Exception
userId
-
Exception
public String synchronizeSilverpeasWithDomain(String sDomainId) throws Exception
Exception
public String synchronizeSilverpeasWithDomain(String sDomainId, boolean threaded) throws AdminException
AdminException
public String[] searchUsersIds(String sGroupId, String componentId, String[] profileIds, UserDetail modelUser) throws AdminException
AdminException
public ListSlice<UserDetail> searchUsers(UserDetailsSearchCriteria searchCriteria) throws AdminException
AdminException
public ListSlice<Group> searchGroups(GroupsSearchCriteria searchCriteria) throws AdminException
AdminException
public String[] searchGroupsIds(boolean isRootGroup, String componentId, String[] profileId, Group modelGroup) throws AdminException
AdminException
public void resetAllDBConnections(boolean isScheduled) throws AdminException
AdminException
public void indexAllUsers() throws AdminException
AdminException
public void indexUsers(String domainId) throws AdminException
AdminException
public String copyAndPasteComponent(PasteDetail pasteDetail) throws AdminException, QuotaException
AdminException
QuotaException
public String copyAndPasteSpace(PasteDetail pasteDetail) throws AdminException, QuotaException
AdminException
QuotaException
public void assignRightsFromUserToUser(RightAssignationContext.MODE operationMode, String sourceUserId, String targetUserId, boolean nodeAssignRights, String authorId) throws AdminException
AdminException
public void assignRightsFromUserToGroup(RightAssignationContext.MODE operationMode, String sourceUserId, String targetGroupId, boolean nodeAssignRights, String authorId) throws AdminException
AdminException
public void assignRightsFromGroupToUser(RightAssignationContext.MODE operationMode, String sourceGroupId, String targetUserId, boolean nodeAssignRights, String authorId) throws AdminException
AdminException
public void assignRightsFromGroupToGroup(RightAssignationContext.MODE operationMode, String sourceGroupId, String targetGroupId, boolean nodeAssignRights, String authorId) throws AdminException
AdminException
public boolean isDomainManagerUser(String userId, String domainId)
userId
- the user identifierdomainId
- the domain identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |