|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.beans.admin.AdminController
public class AdminController
Constructor Summary | |
---|---|
AdminController(String sUserId)
|
Method Summary | |
---|---|
void |
activateUser(String userId)
Activate the given user |
String |
addComponentInst(ComponentInst componentInst)
Add the given component Instance |
String |
addComponentInst(ComponentInst componentInst,
String userId)
|
String |
addDomain(Domain theDomain)
Add a new domain |
String |
addGroup(Group group)
Add the given group |
String |
addProfileInst(ProfileInst profileInst)
Add the given Profile Instance |
String |
addProfileInst(ProfileInst profileInst,
String userId)
|
String |
addSpaceInst(SpaceInst spaceInst)
Add the given space Instance |
String |
addSpaceProfileInst(SpaceProfileInst spaceProfileInst,
String userId)
Add the given Space Profile Instance |
String |
addUser(UserDetail userDetail)
Add the given user |
void |
addUserInGroup(String sUserId,
String sGroupId)
Removes the given user from the given group |
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)
|
String |
authenticate(String sKey,
String sSessionId,
boolean isAppInMaintenance)
|
void |
blockUser(String userId)
Block the given user |
String |
copyAndPasteComponent(PasteDetail pasteDetail)
|
String |
copyAndPasteSpace(PasteDetail pasteDetail)
|
void |
deactivateUser(String userId)
Deactivate the given user |
String |
deleteComponentInst(String sComponentId,
boolean definitive)
Delete the component Instance corresponding to the given component id |
String |
deleteGroupById(String sGroupId)
Delete the given group |
String |
deleteGroupProfile(String groupId)
Delete the Group Profile |
String |
deleteProfileInst(String sProfileId)
Delete the Profile Instance corresponding to the given Profile id. |
String |
deleteProfileInst(String sProfileId,
String userId)
|
String |
deleteSpaceInstById(String sSpaceInstId,
boolean definitive)
Delete the space Instance corresponding to the given space id |
String |
deleteSpaceProfileInst(String sSpaceProfileId,
String userId)
Delete the Space Profile Instance corresponding to the given Space Profile id |
String |
deleteUser(String sUserId)
Delete the given user |
AdminGroupInst[] |
getAdminOrganization()
|
Map<String,WAComponent> |
getAllComponents()
Return all the components of silverpeas read in the xmlComponent directory |
Map<String,String> |
getAllComponentsNames()
Return all the components names available in webactiv |
Domain[] |
getAllDomains()
Get all domains declared in Silverpeas |
String[] |
getAllGroupIds()
Return all the groups Id available in webactiv |
String[] |
getAllGroupsIds()
Return all the groups ids available in webactiv |
String[] |
getAllProfilesNames(String sComponentName)
Return all the profiles names available for the given profile |
String[] |
getAllRootGroupIds()
|
String[] |
getAllRootSpaceIds()
Return all the spaces Id available in webactiv |
String[] |
getAllSpaceIds()
Return all the spaces Id available in webactiv |
String[] |
getAllSpaceIds(String userId)
Return all the spaces Id available for the given userId |
Map<String,SpaceTemplate> |
getAllSpaceTemplates()
|
String[] |
getAllSubGroupIds(String groupId)
|
String[] |
getAllSubGroupIdsRecursively(String groupId)
|
String[] |
getAllSubSpaceIds(String sDomainFatherId)
Return all the sub spaces Id available in webactiv given the fatherDomainId |
String[] |
getAllSubSpaceIds(String sDomainFatherId,
String userId)
Return all the sub spaces Id available for the given user and the given fatherDomainId |
String[] |
getAllUsersIds()
Return all the user ids available in webactiv |
UserDetail[] |
getAllUsersOfGroup(String groupId)
Get ALL the users that are in a group or his sub groups |
String[] |
getAvailCompoIds(String sClientSpaceId,
String sUserId)
Return the component ids available for the cuurent user Id in the given space id |
ComponentInst |
getComponentInst(String sComponentId)
Return the component Instance corresponding to the given component id |
ComponentInstLight |
getComponentInstLight(String sComponentId)
|
String |
getDAPIGeneralAdminId()
Return the general admin id |
String[] |
getDirectGroupsIdsOfUser(String userId)
|
Domain |
getDomain(String domainId)
Get a domain with given id |
long |
getDomainActions(String domainId)
Get a domain's possible actions |
String |
getGeneralSpaceId()
|
Group |
getGroupById(String sGroupId)
Return the admin group detail corresponding to the given id |
Group |
getGroupByNameInDomain(String sGroupName,
String sDomainFatherId)
Return the admin group detail corresponding to the given group Name |
String[] |
getGroupManageableSpaceIds(String sGroupId)
The spaces that can be managed by the given group |
String |
getGroupName(String sGroupId)
Return the group name corresponding to the given group Id |
String[] |
getGroupNames(String[] asGroupIds)
Return all the group names corresponding to the given group Ids |
GroupProfileInst |
getGroupProfile(String groupId)
Return the group profile |
List<SpaceInstLight> |
getPathToComponent(String componentId)
|
List<String> |
getPathToGroup(String groupId)
Return the groupIds from root to group |
List<SpaceInstLight> |
getPathToSpace(String spaceId,
boolean includeTarget)
|
String[] |
getProfileIds(String sUserId)
All the profiles to which the user belongs |
String[] |
getProfileIdsOfGroup(String sGroupId)
All the profiles to which the group belongs |
ProfileInst |
getProfileInst(String sProfileId)
Return the profile Instance corresponding to the given profile 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)
|
List<ComponentInstLight> |
getRemovedComponents()
|
List<SpaceInstLight> |
getRemovedSpaces()
|
String[] |
getRootGroupIdsOfDomain(String domainId)
Get ALL Group Ids for the domain's groups |
Group[] |
getRootGroupsOfDomain(String domainId)
Get ALL the domain's groups |
SpaceInst |
getSpaceInstById(String sSpaceId)
Return the space Instance corresponding to the given space id |
SpaceInst |
getSpaceInstFromTemplate(String templateName)
|
SpaceInstLight |
getSpaceInstLight(String sSpaceId)
|
String[] |
getSpaceNames(String[] asSpaceIds)
Return the the spaces name corresponding to the given space ids |
SpaceProfileInst |
getSpaceProfileInst(String sSpaceProfileId)
Return the space profile Instance corresponding to the given space profile id |
List<DomainProperty> |
getSpecificPropertiesToImportUsers(String domainId,
String language)
|
Map<String,SpaceAndChildren> |
getTreeView(String userId,
String spaceId)
|
UserLog[] |
getUserConnected()
|
UserDetail |
getUserDetail(String sId)
Return the admin user detail corresponding to the given id |
UserDetail[] |
getUserDetails(String[] asUserIds)
Return an array of UserDetail corresponding to the given user Id array |
UserFull |
getUserFull(String sUserId)
Return the UserFull of the user with the given Id |
UserFull |
getUserFull(String domainId,
String specificId)
|
String |
getUserIdByLoginAndDomain(String sLogin,
String sDomainId)
|
String[] |
getUserIdsOfDomain(String domainId)
Get ALL the userId of the domain |
String[] |
getUserManageableSpaceClientIds(String sUserId)
If user is Admin, return all space Ids |
String[] |
getUserManageableSpaceIds(String sUserId)
Return the space Instance corresponding to the given space id : FORMAT EX : 123 |
String[] |
getUserManageableSpaceRootIds(String sUserId)
Return the space Instance corresponding to the given space id |
String[] |
getUserManageableSubSpaceIds(String sUserId,
String sParentSpace)
Return the space Instance corresponding to the given space id |
int |
getUsersNumberOfDomain(String domainId)
Get number of the domain's users |
UserDetail[] |
getUsersOfDomain(String domainId)
Get ALL the domain's users |
void |
indexAllGroups()
|
void |
indexAllUsers()
|
void |
indexComponent(String componentId)
|
void |
indexGroups(String domainId)
|
void |
indexSpace(int spaceId)
|
void |
indexUsers(String domainId)
|
boolean |
isComponentAvailable(String componentId,
String userId)
|
boolean |
isDomainManagerUser(String userId,
String domainId)
|
boolean |
isGroupExist(String sName)
Return true if the group with the given name |
boolean |
isObjectAvailable(int objectId,
String objectType,
String componentId,
String userId)
|
boolean |
isSpaceAvailable(String userId,
String spaceId)
Indcates if a user can access the specified space. |
boolean |
isSpaceInstExist(String sClientSpaceId)
|
void |
moveComponentInst(String spaceId,
String componentId,
String idComponentBefore,
ComponentInst[] componentInsts)
Move the component Instance in the given space with the given componentId |
void |
moveSpace(String spaceId,
String fatherId)
Move space in the given space with the given fatherId |
void |
reloadAdminCache()
|
String |
removeDomain(String domainId)
Remove a domain |
void |
removeUserFromGroup(String sUserId,
String sGroupId)
Removes the given user from the given group |
void |
resetAllDBConnections(boolean isScheduled)
|
void |
restoreComponentFromBasket(String componentId)
|
void |
restoreSpaceFromBasket(String spaceId)
|
List<UserDetail> |
searchUsers(String domainId,
Map<String,String> query)
|
void |
startServer()
|
String |
synchronizeGroup(String groupId)
Synchronizes the users of the group represented by the given identifier. |
String |
synchronizeImportGroup(String domainId,
String groupName)
|
String |
synchronizeImportUser(String domainId,
String userLogin)
|
String |
synchronizeRemoveGroup(String groupId)
|
String |
synchronizeRemoveUser(String userId)
|
String |
synchronizeSilverpeasWithDomain(String domainId)
Synchronize users and groups between cache and domain's datastore |
String |
synchronizeUser(String userId)
|
void |
unblockUser(String userId)
Unblock the given user |
String |
updateComponentInst(ComponentInst componentInst)
Update the component Instance corresponding to the given space component with the given ComponentInst |
void |
updateComponentOrderNum(String sComponentId,
int orderNum)
|
String |
updateDomain(Domain theDomain)
update a domain |
String |
updateGroup(Group group)
Update the given group |
String |
updateGroupProfile(GroupProfileInst profile)
Update the Group Profile |
String |
updateProfileInst(ProfileInst profileInst)
Update the Profile Instance corresponding to the given space Profile with the given ProfileInst |
String |
updateProfileInst(ProfileInst profileInst,
String userId)
|
String |
updateSpaceInst(SpaceInst spaceInstNew)
Update the space Instance corresponding to the given space name wuth the given SpaceInst |
void |
updateSpaceOrderNum(String sSpaceId,
int orderNum)
|
String |
updateSpaceProfileInst(SpaceProfileInst spaceProfileInst,
String userId)
Update the Space Profile Instance corresponding to the given space Profile with the given SpaceProfileInst |
String |
updateSynchronizedUser(UserDetail userDetail)
Update the silverpeas specific infos of a synchronized user. |
String |
updateUser(UserDetail userDetail)
Update the given user |
String |
updateUserFull(UserFull userFull)
Update the given user |
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 |
Constructor Detail |
---|
public AdminController(String sUserId)
Method Detail |
---|
public void startServer() throws Exception
Exception
public String getGeneralSpaceId()
public boolean isSpaceInstExist(String sClientSpaceId)
public SpaceInst getSpaceInstById(String sSpaceId)
public SpaceInstLight getSpaceInstLight(String sSpaceId)
public Map<String,SpaceAndChildren> getTreeView(String userId, String spaceId)
public List<SpaceInstLight> getPathToComponent(String componentId)
public List<SpaceInstLight> getPathToSpace(String spaceId, boolean includeTarget)
public String[] getUserManageableSpaceRootIds(String sUserId)
public String[] getUserManageableSubSpaceIds(String sUserId, String sParentSpace)
public String[] getUserManageableSpaceIds(String sUserId)
public String[] getUserManageableSpaceClientIds(String sUserId)
public String addSpaceInst(SpaceInst spaceInst)
public String deleteSpaceInstById(String sSpaceInstId, boolean definitive)
public String updateSpaceInst(SpaceInst spaceInstNew)
public Map<String,SpaceTemplate> getAllSpaceTemplates()
public SpaceInst getSpaceInstFromTemplate(String templateName)
public String[] getAllRootSpaceIds()
public String[] getAllSpaceIds()
public String[] getAllSpaceIds(String userId)
public String[] getAllSubSpaceIds(String sDomainFatherId)
public String[] getAllSubSpaceIds(String sDomainFatherId, String userId)
public String[] getSpaceNames(String[] asSpaceIds)
public void updateSpaceOrderNum(String sSpaceId, int orderNum)
public void indexSpace(int spaceId)
public void moveSpace(String spaceId, String fatherId) throws AdminException
AdminException
public Map<String,String> getAllComponentsNames()
public Map<String,WAComponent> getAllComponents()
public ComponentInst getComponentInst(String sComponentId)
public ComponentInstLight getComponentInstLight(String sComponentId)
public String addComponentInst(ComponentInst componentInst) throws QuotaException
QuotaException
public String addComponentInst(ComponentInst componentInst, String userId) throws QuotaException
componentInst
- The component instance to add.userId
- The id of the user who becomes the instance's creator.
QuotaException
public String deleteComponentInst(String sComponentId, boolean definitive)
public String updateComponentInst(ComponentInst componentInst)
public void moveComponentInst(String spaceId, String componentId, String idComponentBefore, ComponentInst[] componentInsts) throws AdminException
AdminException
public String[] getAvailCompoIds(String sClientSpaceId, String sUserId)
public boolean isComponentAvailable(String componentId, String userId)
public boolean isSpaceAvailable(String userId, String spaceId)
userId
- the user id.spaceId
- the space id.
public void updateComponentOrderNum(String sComponentId, int orderNum)
public void indexComponent(String componentId)
public List<SpaceInstLight> getRemovedSpaces()
public List<ComponentInstLight> getRemovedComponents()
public void restoreSpaceFromBasket(String spaceId)
public void restoreComponentFromBasket(String componentId)
public String[] getAllProfilesNames(String sComponentName)
public ProfileInst getProfileInst(String sProfileId)
public List<ProfileInst> getProfilesByObject(String objectId, String objectType, String componentId)
public String[] getProfilesByObjectAndUserId(int objectId, String objectType, String componentId, String userId)
public boolean isObjectAvailable(int objectId, String objectType, String componentId, String userId)
public String addProfileInst(ProfileInst profileInst)
public String addProfileInst(ProfileInst profileInst, String userId)
public String deleteProfileInst(String sProfileId)
sProfileId
-
public String deleteProfileInst(String sProfileId, String userId)
public String updateProfileInst(ProfileInst profileInst)
public String updateProfileInst(ProfileInst profileInst, String userId)
public String getProfileLabelfromName(String sComponentName, String sProfileName, String lang)
public String[] getProfileIds(String sUserId)
public String[] getProfileIdsOfGroup(String sGroupId)
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 String[] getDirectGroupsIdsOfUser(String userId)
public String addDomain(Domain theDomain)
public String updateDomain(Domain theDomain)
public String removeDomain(String domainId)
public Domain getDomain(String domainId)
public long getDomainActions(String domainId)
public Group[] getRootGroupsOfDomain(String domainId)
public String[] getRootGroupIdsOfDomain(String domainId)
public UserDetail[] getAllUsersOfGroup(String groupId)
public UserDetail[] getUsersOfDomain(String domainId)
public String[] getUserIdsOfDomain(String domainId)
public int getUsersNumberOfDomain(String domainId)
public Domain[] getAllDomains()
public SpaceProfileInst getSpaceProfileInst(String sSpaceProfileId)
public String addSpaceProfileInst(SpaceProfileInst spaceProfileInst, String userId)
public String deleteSpaceProfileInst(String sSpaceProfileId, String userId)
public String updateSpaceProfileInst(SpaceProfileInst spaceProfileInst, String userId)
public String[] getAllGroupsIds()
public String[] getAllRootGroupIds()
public String[] getAllSubGroupIds(String groupId)
public String[] getAllSubGroupIdsRecursively(String groupId)
public String[] getGroupNames(String[] asGroupIds)
public String getGroupName(String sGroupId)
public String[] getAllUsersIds()
public String[] getGroupManageableSpaceIds(String sGroupId)
public GroupProfileInst getGroupProfile(String groupId)
public String deleteGroupProfile(String groupId)
public String updateGroupProfile(GroupProfileInst profile)
public String getDAPIGeneralAdminId()
public UserDetail getUserDetail(String sId)
public UserFull getUserFull(String sUserId)
public UserFull getUserFull(String domainId, String specificId)
public String getUserIdByLoginAndDomain(String sLogin, String sDomainId)
public UserDetail[] getUserDetails(String[] asUserIds)
public String addUser(UserDetail userDetail)
public void userAcceptsTermsOfService(String userId)
public void blockUser(String userId)
public void unblockUser(String userId)
public void deactivateUser(String userId)
public void activateUser(String userId)
public String deleteUser(String sUserId)
public String updateUser(UserDetail userDetail)
public String updateSynchronizedUser(UserDetail userDetail)
public String updateUserFull(UserFull userFull) throws AdminException
AdminException
public String authenticate(String sKey, String sSessionId, boolean isAppInMaintenance)
public void indexUsers(String domainId)
public void indexAllUsers()
public String[] getAllGroupIds()
public boolean isGroupExist(String sName)
public Group getGroupById(String sGroupId)
public List<String> getPathToGroup(String groupId)
public Group getGroupByNameInDomain(String sGroupName, String sDomainFatherId)
public String addGroup(Group group)
public String deleteGroupById(String sGroupId)
public String updateGroup(Group group)
public AdminGroupInst[] getAdminOrganization()
public void indexGroups(String domainId)
public void indexAllGroups()
public UserLog[] getUserConnected()
public String synchronizeSilverpeasWithDomain(String domainId)
domainId
- Id of domain to synchronize
public String synchronizeUser(String userId)
public String synchronizeImportUser(String domainId, String userLogin)
public List<DomainProperty> getSpecificPropertiesToImportUsers(String domainId, String language)
public List<UserDetail> searchUsers(String domainId, Map<String,String> query)
public String synchronizeRemoveUser(String userId)
public String synchronizeGroup(String groupId)
groupId
- the identifier of the group to process.
PrefixedNotationExpressionEngine
(it can be used dor bundles for example)public String synchronizeImportGroup(String domainId, String groupName)
public String synchronizeRemoveGroup(String groupId)
public void resetAllDBConnections(boolean isScheduled)
public void removeUserFromGroup(String sUserId, String sGroupId)
public void addUserInGroup(String sUserId, String sGroupId)
public void reloadAdminCache()
public String copyAndPasteComponent(PasteDetail pasteDetail) throws AdminException, QuotaException
AdminException
QuotaException
public String copyAndPasteSpace(PasteDetail pasteDetail) throws AdminException, QuotaException
AdminException
QuotaException
public boolean isDomainManagerUser(String userId, String domainId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |