com.stratelia.webactiv.beans.admin
Class AdminController

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.AdminController
All Implemented Interfaces:
Serializable

public class AdminController
extends Object
implements Serializable

See Also:
Serialized Form

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

AdminController

public AdminController(String sUserId)
Method Detail

startServer

public void startServer()
                 throws Exception
Throws:
Exception

getGeneralSpaceId

public String getGeneralSpaceId()

isSpaceInstExist

public boolean isSpaceInstExist(String sClientSpaceId)

getSpaceInstById

public SpaceInst getSpaceInstById(String sSpaceId)
Return the space Instance corresponding to the given space id


getSpaceInstLight

public SpaceInstLight getSpaceInstLight(String sSpaceId)

getTreeView

public Map<String,SpaceAndChildren> getTreeView(String userId,
                                                String spaceId)

getPathToComponent

public List<SpaceInstLight> getPathToComponent(String componentId)

getPathToSpace

public List<SpaceInstLight> getPathToSpace(String spaceId,
                                           boolean includeTarget)

getUserManageableSpaceRootIds

public String[] getUserManageableSpaceRootIds(String sUserId)
Return the space Instance corresponding to the given space id


getUserManageableSubSpaceIds

public String[] getUserManageableSubSpaceIds(String sUserId,
                                             String sParentSpace)
Return the space Instance corresponding to the given space id


getUserManageableSpaceIds

public String[] getUserManageableSpaceIds(String sUserId)
Return the space Instance corresponding to the given space id : FORMAT EX : 123


getUserManageableSpaceClientIds

public String[] getUserManageableSpaceClientIds(String sUserId)
If user is Admin, return all space Ids


addSpaceInst

public String addSpaceInst(SpaceInst spaceInst)
Add the given space Instance


deleteSpaceInstById

public String deleteSpaceInstById(String sSpaceInstId,
                                  boolean definitive)
Delete the space Instance corresponding to the given space id


updateSpaceInst

public String updateSpaceInst(SpaceInst spaceInstNew)
Update the space Instance corresponding to the given space name wuth the given SpaceInst


getAllSpaceTemplates

public Map<String,SpaceTemplate> getAllSpaceTemplates()

getSpaceInstFromTemplate

public SpaceInst getSpaceInstFromTemplate(String templateName)

getAllRootSpaceIds

public String[] getAllRootSpaceIds()
Return all the spaces Id available in webactiv


getAllSpaceIds

public String[] getAllSpaceIds()
Return all the spaces Id available in webactiv


getAllSpaceIds

public String[] getAllSpaceIds(String userId)
Return all the spaces Id available for the given userId


getAllSubSpaceIds

public String[] getAllSubSpaceIds(String sDomainFatherId)
Return all the sub spaces Id available in webactiv given the fatherDomainId


getAllSubSpaceIds

public String[] getAllSubSpaceIds(String sDomainFatherId,
                                  String userId)
Return all the sub spaces Id available for the given user and the given fatherDomainId


getSpaceNames

public String[] getSpaceNames(String[] asSpaceIds)
Return the the spaces name corresponding to the given space ids


updateSpaceOrderNum

public void updateSpaceOrderNum(String sSpaceId,
                                int orderNum)

indexSpace

public void indexSpace(int spaceId)

moveSpace

public void moveSpace(String spaceId,
                      String fatherId)
               throws AdminException
Move space in the given space with the given fatherId

Throws:
AdminException

getAllComponentsNames

public Map<String,String> getAllComponentsNames()
Return all the components names available in webactiv


getAllComponents

public Map<String,WAComponent> getAllComponents()
Return all the components of silverpeas read in the xmlComponent directory


getComponentInst

public ComponentInst getComponentInst(String sComponentId)
Return the component Instance corresponding to the given component id


getComponentInstLight

public ComponentInstLight getComponentInstLight(String sComponentId)

addComponentInst

public String addComponentInst(ComponentInst componentInst)
                        throws QuotaException
Add the given component Instance

Throws:
QuotaException

addComponentInst

public String addComponentInst(ComponentInst componentInst,
                               String userId)
                        throws QuotaException
Parameters:
componentInst - The component instance to add.
userId - The id of the user who becomes the instance's creator.
Returns:
The id of the new component instance.
Throws:
QuotaException

deleteComponentInst

public String deleteComponentInst(String sComponentId,
                                  boolean definitive)
Delete the component Instance corresponding to the given component id


updateComponentInst

public String updateComponentInst(ComponentInst componentInst)
Update the component Instance corresponding to the given space component with the given ComponentInst


moveComponentInst

public void moveComponentInst(String spaceId,
                              String componentId,
                              String idComponentBefore,
                              ComponentInst[] componentInsts)
                       throws AdminException
Move the component Instance in the given space with the given componentId

Throws:
AdminException

getAvailCompoIds

public String[] getAvailCompoIds(String sClientSpaceId,
                                 String sUserId)
Return the component ids available for the cuurent user Id in the given space id


isComponentAvailable

public boolean isComponentAvailable(String componentId,
                                    String userId)

isSpaceAvailable

public boolean isSpaceAvailable(String userId,
                                String spaceId)
Indcates if a user can access the specified space.

Parameters:
userId - the user id.
spaceId - the space id.
Returns:
true if the space is accessible - false otherwise.

updateComponentOrderNum

public void updateComponentOrderNum(String sComponentId,
                                    int orderNum)

indexComponent

public void indexComponent(String componentId)

getRemovedSpaces

public List<SpaceInstLight> getRemovedSpaces()

getRemovedComponents

public List<ComponentInstLight> getRemovedComponents()

restoreSpaceFromBasket

public void restoreSpaceFromBasket(String spaceId)

restoreComponentFromBasket

public void restoreComponentFromBasket(String componentId)

getAllProfilesNames

public String[] getAllProfilesNames(String sComponentName)
Return all the profiles names available for the given profile


getProfileInst

public ProfileInst getProfileInst(String sProfileId)
Return the profile Instance corresponding to the given profile id


getProfilesByObject

public List<ProfileInst> getProfilesByObject(String objectId,
                                             String objectType,
                                             String componentId)

getProfilesByObjectAndUserId

public String[] getProfilesByObjectAndUserId(int objectId,
                                             String objectType,
                                             String componentId,
                                             String userId)

isObjectAvailable

public boolean isObjectAvailable(int objectId,
                                 String objectType,
                                 String componentId,
                                 String userId)

addProfileInst

public String addProfileInst(ProfileInst profileInst)
Add the given Profile Instance


addProfileInst

public String addProfileInst(ProfileInst profileInst,
                             String userId)

deleteProfileInst

public String deleteProfileInst(String sProfileId)
Delete the Profile Instance corresponding to the given Profile id.

Parameters:
sProfileId -
Returns:

deleteProfileInst

public String deleteProfileInst(String sProfileId,
                                String userId)

updateProfileInst

public String updateProfileInst(ProfileInst profileInst)
Update the Profile Instance corresponding to the given space Profile with the given ProfileInst


updateProfileInst

public String updateProfileInst(ProfileInst profileInst,
                                String userId)

getProfileLabelfromName

public String getProfileLabelfromName(String sComponentName,
                                      String sProfileName,
                                      String lang)
Get the profile label from its name


getProfileIds

public String[] getProfileIds(String sUserId)
All the profiles to which the user belongs

Returns:
an array of profile IDs

getProfileIdsOfGroup

public String[] getProfileIdsOfGroup(String sGroupId)
All the profiles to which the group belongs

Returns:
an array of profile IDs

assignRightsFromUserToUser

public void assignRightsFromUserToUser(RightAssignationContext.MODE operationMode,
                                       String sourceUserId,
                                       String targetUserId,
                                       boolean nodeAssignRights,
                                       String authorId)
                                throws AdminException
Throws:
AdminException

assignRightsFromUserToGroup

public void assignRightsFromUserToGroup(RightAssignationContext.MODE operationMode,
                                        String sourceUserId,
                                        String targetGroupId,
                                        boolean nodeAssignRights,
                                        String authorId)
                                 throws AdminException
Throws:
AdminException

assignRightsFromGroupToUser

public void assignRightsFromGroupToUser(RightAssignationContext.MODE operationMode,
                                        String sourceGroupId,
                                        String targetUserId,
                                        boolean nodeAssignRights,
                                        String authorId)
                                 throws AdminException
Throws:
AdminException

assignRightsFromGroupToGroup

public void assignRightsFromGroupToGroup(RightAssignationContext.MODE operationMode,
                                         String sourceGroupId,
                                         String targetGroupId,
                                         boolean nodeAssignRights,
                                         String authorId)
                                  throws AdminException
Throws:
AdminException

getDirectGroupsIdsOfUser

public String[] getDirectGroupsIdsOfUser(String userId)

addDomain

public String addDomain(Domain theDomain)
Add a new domain


updateDomain

public String updateDomain(Domain theDomain)
update a domain


removeDomain

public String removeDomain(String domainId)
Remove a domain


getDomain

public Domain getDomain(String domainId)
Get a domain with given id


getDomainActions

public long getDomainActions(String domainId)
Get a domain's possible actions


getRootGroupsOfDomain

public Group[] getRootGroupsOfDomain(String domainId)
Get ALL the domain's groups


getRootGroupIdsOfDomain

public String[] getRootGroupIdsOfDomain(String domainId)
Get ALL Group Ids for the domain's groups


getAllUsersOfGroup

public UserDetail[] getAllUsersOfGroup(String groupId)
Get ALL the users that are in a group or his sub groups


getUsersOfDomain

public UserDetail[] getUsersOfDomain(String domainId)
Get ALL the domain's users


getUserIdsOfDomain

public String[] getUserIdsOfDomain(String domainId)
Get ALL the userId of the domain


getUsersNumberOfDomain

public int getUsersNumberOfDomain(String domainId)
Get number of the domain's users


getAllDomains

public Domain[] getAllDomains()
Get all domains declared in Silverpeas


getSpaceProfileInst

public SpaceProfileInst getSpaceProfileInst(String sSpaceProfileId)
Return the space profile Instance corresponding to the given space profile id


addSpaceProfileInst

public String addSpaceProfileInst(SpaceProfileInst spaceProfileInst,
                                  String userId)
Add the given Space Profile Instance


deleteSpaceProfileInst

public String deleteSpaceProfileInst(String sSpaceProfileId,
                                     String userId)
Delete the Space Profile Instance corresponding to the given Space Profile id


updateSpaceProfileInst

public String updateSpaceProfileInst(SpaceProfileInst spaceProfileInst,
                                     String userId)
Update the Space Profile Instance corresponding to the given space Profile with the given SpaceProfileInst


getAllGroupsIds

public String[] getAllGroupsIds()
Return all the groups ids available in webactiv


getAllRootGroupIds

public String[] getAllRootGroupIds()
Returns:
all the root groups ids available

getAllSubGroupIds

public String[] getAllSubGroupIds(String groupId)
Returns:
all the direct subgroups ids of a given group

getAllSubGroupIdsRecursively

public String[] getAllSubGroupIdsRecursively(String groupId)
Returns:
all subgroups ids of a given group

getGroupNames

public String[] getGroupNames(String[] asGroupIds)
Return all the group names corresponding to the given group Ids


getGroupName

public String getGroupName(String sGroupId)
Return the group name corresponding to the given group Id


getAllUsersIds

public String[] getAllUsersIds()
Return all the user ids available in webactiv


getGroupManageableSpaceIds

public String[] getGroupManageableSpaceIds(String sGroupId)
The spaces that can be managed by the given group

Returns:
the array of space IDs

getGroupProfile

public GroupProfileInst getGroupProfile(String groupId)
Return the group profile


deleteGroupProfile

public String deleteGroupProfile(String groupId)
Delete the Group Profile


updateGroupProfile

public String updateGroupProfile(GroupProfileInst profile)
Update the Group Profile


getDAPIGeneralAdminId

public String getDAPIGeneralAdminId()
Return the general admin id


getUserDetail

public UserDetail getUserDetail(String sId)
Return the admin user detail corresponding to the given id


getUserFull

public UserFull getUserFull(String sUserId)
Return the UserFull of the user with the given Id


getUserFull

public UserFull getUserFull(String domainId,
                            String specificId)

getUserIdByLoginAndDomain

public String getUserIdByLoginAndDomain(String sLogin,
                                        String sDomainId)

getUserDetails

public UserDetail[] getUserDetails(String[] asUserIds)
Return an array of UserDetail corresponding to the given user Id array


addUser

public String addUser(UserDetail userDetail)
Add the given user


userAcceptsTermsOfService

public void userAcceptsTermsOfService(String userId)
Updates the acceptance date of a user from its id.


blockUser

public void blockUser(String userId)
Block the given user


unblockUser

public void unblockUser(String userId)
Unblock the given user


deactivateUser

public void deactivateUser(String userId)
Deactivate the given user


activateUser

public void activateUser(String userId)
Activate the given user


deleteUser

public String deleteUser(String sUserId)
Delete the given user


updateUser

public String updateUser(UserDetail userDetail)
Update the given user


updateSynchronizedUser

public String updateSynchronizedUser(UserDetail userDetail)
Update the silverpeas specific infos of a synchronized user. For the moment : same as updateUser


updateUserFull

public String updateUserFull(UserFull userFull)
                      throws AdminException
Update the given user

Throws:
AdminException

authenticate

public String authenticate(String sKey,
                           String sSessionId,
                           boolean isAppInMaintenance)

indexUsers

public void indexUsers(String domainId)

indexAllUsers

public void indexAllUsers()

getAllGroupIds

public String[] getAllGroupIds()
Return all the groups Id available in webactiv


isGroupExist

public boolean isGroupExist(String sName)
Return true if the group with the given name


getGroupById

public Group getGroupById(String sGroupId)
Return the admin group detail corresponding to the given id


getPathToGroup

public List<String> getPathToGroup(String groupId)
Return the groupIds from root to group


getGroupByNameInDomain

public Group getGroupByNameInDomain(String sGroupName,
                                    String sDomainFatherId)
Return the admin group detail corresponding to the given group Name


addGroup

public String addGroup(Group group)
Add the given group


deleteGroupById

public String deleteGroupById(String sGroupId)
Delete the given group


updateGroup

public String updateGroup(Group group)
Update the given group


getAdminOrganization

public AdminGroupInst[] getAdminOrganization()

indexGroups

public void indexGroups(String domainId)

indexAllGroups

public void indexAllGroups()

getUserConnected

public UserLog[] getUserConnected()

synchronizeSilverpeasWithDomain

public String synchronizeSilverpeasWithDomain(String domainId)
Synchronize users and groups between cache and domain's datastore

Parameters:
domainId - Id of domain to synchronize
Returns:
String to show as the report of synchronization

synchronizeUser

public String synchronizeUser(String userId)

synchronizeImportUser

public String synchronizeImportUser(String domainId,
                                    String userLogin)

getSpecificPropertiesToImportUsers

public List<DomainProperty> getSpecificPropertiesToImportUsers(String domainId,
                                                               String language)

searchUsers

public List<UserDetail> searchUsers(String domainId,
                                    Map<String,String> query)

synchronizeRemoveUser

public String synchronizeRemoveUser(String userId)

synchronizeGroup

public String synchronizeGroup(String groupId)
Synchronizes the users of the group represented by the given identifier.
Two types of synchronization are possible: It is no guarantee that this treatment behavior is right if it is called out of the two previous cases.

Parameters:
groupId - the identifier of the group to process.
Returns:
  • in case of success, the identifier of the group (a number)
  • in case of error about the synchronization rule expression syntax, the key of the error from PrefixedNotationExpressionEngine (it can be used dor bundles for example)
  • an empty value otherwise

synchronizeImportGroup

public String synchronizeImportGroup(String domainId,
                                     String groupName)

synchronizeRemoveGroup

public String synchronizeRemoveGroup(String groupId)

resetAllDBConnections

public void resetAllDBConnections(boolean isScheduled)

removeUserFromGroup

public void removeUserFromGroup(String sUserId,
                                String sGroupId)
Removes the given user from the given group


addUserInGroup

public void addUserInGroup(String sUserId,
                           String sGroupId)
Removes the given user from the given group


reloadAdminCache

public void reloadAdminCache()

copyAndPasteComponent

public String copyAndPasteComponent(PasteDetail pasteDetail)
                             throws AdminException,
                                    QuotaException
Throws:
AdminException
QuotaException

copyAndPasteSpace

public String copyAndPasteSpace(PasteDetail pasteDetail)
                         throws AdminException,
                                QuotaException
Throws:
AdminException
QuotaException

isDomainManagerUser

public boolean isDomainManagerUser(String userId,
                                   String domainId)


Copyright © 2016 Silverpeas. All Rights Reserved.