com.stratelia.webactiv.beans.admin
Class OrganizationController

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

@Named(value="organizationController")
public class OrganizationController
extends Object
implements OrganisationController

This objet is used by all the admin jsp such as SpaceManagement, UserManagement, etc... It provides access functions to query and modify the domains as well as the company organization It should be used only by a client that has the administrator rights. The OrganizationController extends AdminReference that maintains a static references to an Admin instance. During the initialization of the Admin instance, some computations require services published by the underlying IoC container. So, an instance of OrganizationController is created by the IoC container and published under the name 'organizationController' so that the initialization of the static Admin instance can be performed correctly within the execution context of IoC container.

See Also:
Serialized Form

Constructor Summary
OrganizationController()
          Constructor declaration
 
Method Summary
 String[] getAdministratorUserIds(String fromUserId)
          Return all administrators ids
 String[] getAllComponentIds(String sSpaceId)
          Return all the components Id available in webactiv given a space id (driver format)
 String[] getAllComponentIdsRecur(String sSpaceId)
          Return all the components Id recursively available in webactiv given a space id (driver format)
 String[] getAllComponentIdsRecur(String sSpaceId, String sUserId, String sComponentRootName, boolean inCurrentSpace, boolean inAllSpaces)
          Return all the components Id recursively in (Space+subspaces, or only subspaces or all 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 names available in webactiv
 Domain[] getAllDomains()
          Get all domains
 String[] getAllGroupIdsOfUser(String userId)
           
 Group[] getAllGroups()
          Return all the groups of silverpeas
 String[] getAllowedComponentIds(String userId)
           
 String[] getAllowedSubSpaceIds(String userId, String spaceFatherId)
           
 Group[] getAllRootGroups()
          Return all root groups of silverpeas or null if an error occured when getting the root groups.
 Group[] getAllRootGroupsInDomain(String domainId)
          Gets all the user groups that belong to the specified domain.
 String[] getAllRootSpaceIds()
          Return all the root spaceIds
 String[] getAllRootSpaceIds(String sUserId)
          Return all the root spaceIds available for the user sUserId
 String[] getAllSpaceIds()
          Return all the spaces Id available in silverpeas
 String[] getAllSpaceIds(String sUserId)
           
 Group[] getAllSubGroups(String parentGroupId)
          For use in userPanel : return the direct sub-groups
 String[] getAllSubSpaceIds(String sSpaceId)
          Return all the subSpaces Id available in silverpeas given a space id (driver 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)
          Returns the total number of distinct users recursively contained in the specified group
 UserDetail[] getAllUsers()
          Return all the users of Silverpeas
 UserDetail[] getAllUsers(String componentId)
          Return all the users allowed to acces the given component
 UserDetail[] getAllUsers(String sPrefixTableName, String sComponentName)
           
 List<UserDetail> getAllUsersFromNewestToOldest()
          Return all the users of Silverpeas
 String[] getAllUsersIds()
          Return all the users of Silverpeas
 UserDetail[] getAllUsersInDomain(String domainId)
          Gets all the users that belong to the specified domain.
 UserDetail[] getAllUsersOfGroup(String groupId)
          Get ALL the users that are in a group or his sub groups
 String[] getAvailCompoIds(String sUserId)
          Return the component ids available for the current user Id
 String[] getAvailCompoIds(String sClientSpaceId, String sUserId)
          Return the component ids available for the current user Id in the given space id
 String[] getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId)
          Return the component ids available for the cuurent user Id in the given space id
 List<ComponentInstLight> getAvailComponentInstLights(String userId, String componentName)
          gets the available component for a given user
 String[] getAvailDriverCompoIds(String sClientSpaceId, String sUserId)
          Return the driver component ids available for the cuurent user Id in the given space id
 CompoSpace[] getCompoForUser(String sUserId, String sCompoName)
          Return the tuples (space id, compo id) allowed for the given user and given component name
 String[] getCompoId(String sCompoName)
          Return the compo id for the given component name
 String[] getComponentIdsForUser(String sUserId, String sCompoName)
           
 ComponentInst getComponentInst(String sComponentId)
          Return the component Instance corresponding to the given component id
 ComponentInstLight getComponentInstLight(String sComponentId)
          Return the component Instance Light corresponding to the given component id
 String getComponentParameterValue(String sComponentId, String parameterName)
           
 String[] getDirectGroupIdsOfUser(String userId)
           
 Domain getDomain(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()
          Method declaration
 Group getGroup(String sGroupId)
          Return the Group of the group with the given Id
 Group[] getGroups(String[] groupsId)
          Return all groups specified by the groupsIds
 List<String> getPathToGroup(String groupId)
          Get path to Group
 SpaceInstLight getRootSpace(String spaceId)
           
 List<SpaceInstLight> getRootSpacesContainingComponent(String userId, String componentName)
           
 List<String> getSearchableComponentsByCriteria(ComponentSearchCriteria criteria)
          Gets the identifier of the component instances that are both searchable and that satisfy the specified criteria.
 SpaceInst getSpaceInstById(String sSpaceId)
          Return the space Instance corresponding to the given space id
 SpaceInstLight getSpaceInstLightById(String spaceId)
          Return the space light corresponding to the given space id
 String[] getSpaceNames(String[] asSpaceIds)
          Return the the spaces name corresponding to the given space ids.
 List<SpaceInst> getSpacePath(String spaceId)
           
 List<SpaceInst> getSpacePathToComponent(String componentId)
           
 List<SpaceInstLight> getSpaceTreeview(String userId)
           
 List<SpaceInstLight> getSubSpacesContainingComponent(String spaceId, String userId, String componentName)
           
 int getUserDBId(String sUserId)
          Return the database id of the user with the given ldap Id
 UserDetail getUserDetail(String sUserId)
          Return the UserDetail of the user with the given ldap Id
 String getUserDetailByDBId(int id)
          Return the ldapId of the user with the given db Id
 UserDetail[] getUserDetails(String[] asUserIds)
          Return an array of UserDetail corresponding to the given user Id array
 UserFull getUserFull(String sUserId)
          Return the UserDetail of the user with the given ldap Id
 String[] getUserManageableSpaceIds(String sUserId)
          Return all the spaces Id manageable by given user in Silverpeas
 Map<Integer,List<String>> getUserObjectProfiles(String userId, String componentId, ObjectType objectType)
           
 ProfileInst getUserProfile(String profileId)
           
 String[] getUserProfiles(String userId, String componentId)
           
 String[] getUserProfiles(String userId, String componentId, int objectId, ObjectType objectType)
           
 List<ProfileInst> getUserProfiles(String componentId, String objectId, String objectType)
           
 UserDetail[] getUsers(String sPrefixTableName, String sComponentName, String sProfile)
          Return all the users with the given profile allowed to access the given component of the given space
 String[] getUsersIdsByRoleNames(String componentId, List<String> profileNames)
          Return userIds according to a list of profile names
 String[] getUsersIdsByRoleNames(String componentId, String objectId, ObjectType objectType, List<String> profileNames)
           
 List<UserDetail> getUsersOfDomains(List<String> domainIds)
           
 List<UserDetail> getUsersOfDomainsFromNewestToOldest(List<String> domainIds)
           
 boolean isAdminTool(String toolId)
          Is the specified tool belongs to the administration component?
 boolean isAnonymousAccessActivated()
          Is the anonymous access is activated for the running Silverpeas?
 boolean isComponentAvailable(String componentId, String userId)
          Is the specified component instance available among the components instances accessibles by the specified user?
 boolean isComponentExist(String componentId)
           
 boolean isComponentManageable(String componentId, String userId)
           
 boolean isObjectAvailable(int objectId, ObjectType objectType, String componentId, String userId)
           
 boolean isSpaceAvailable(String spaceId, String userId)
           
 boolean isToolAvailable(String toolId)
          Is the specified tool is available in Silverpeas?
 void reloadAdminCache()
           
 Group[] searchGroups(Group modelGroup, boolean isAnd)
          Return an array of Group corresponding to the founded groups
 ListSlice<Group> searchGroups(GroupsSearchCriteria criteria)
          Searches the groups that match the specified criteria.
 String[] searchGroupsIds(boolean isRootGroup, String componentId, String[] profileId, Group modelGroup)
           
 UserDetail[] searchUsers(UserDetail modelUser, boolean isAnd)
          Return an array of UserDetail corresponding to the founded users
 ListSlice<UserDetail> searchUsers(UserDetailsSearchCriteria criteria)
          Searches the users that match the specified criteria.
 String[] searchUsersIds(String groupId, String componentId, String[] profileId, UserDetail filterUser)
          Return all the users of Silverpeas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationController

public OrganizationController()
Constructor declaration

Method Detail

getAllSpaceIds

public String[] getAllSpaceIds()
Description copied from interface: OrganisationController
Return all the spaces Id available in silverpeas

Specified by:
getAllSpaceIds in interface OrganisationController
Returns:

getAllSubSpaceIds

public String[] getAllSubSpaceIds(String sSpaceId)
Description copied from interface: OrganisationController
Return all the subSpaces Id available in silverpeas given a space id (driver format)

Specified by:
getAllSubSpaceIds in interface OrganisationController
Returns:

getSpaceNames

public String[] getSpaceNames(String[] asSpaceIds)
Description copied from interface: OrganisationController
Return the the spaces name corresponding to the given space ids.

Specified by:
getSpaceNames in interface OrganisationController
Returns:

getSpaceInstLightById

public SpaceInstLight getSpaceInstLightById(String spaceId)
Description copied from interface: OrganisationController
Return the space light corresponding to the given space id

Specified by:
getSpaceInstLightById in interface OrganisationController
Returns:

getGeneralSpaceId

public String getGeneralSpaceId()
Description copied from interface: OrganisationController
Method declaration

Specified by:
getGeneralSpaceId in interface OrganisationController
Returns:
See Also:

getSpaceInstById

public SpaceInst getSpaceInstById(String sSpaceId)
Description copied from interface: OrganisationController
Return the space Instance corresponding to the given space id

Specified by:
getSpaceInstById in interface OrganisationController

getAvailCompoIds

public String[] getAvailCompoIds(String sClientSpaceId,
                                 String sUserId)
Description copied from interface: OrganisationController
Return the component ids available for the current user Id in the given space id

Specified by:
getAvailCompoIds in interface OrganisationController

getAvailCompoIds

public String[] getAvailCompoIds(String sUserId)
Description copied from interface: OrganisationController
Return the component ids available for the current user Id

Specified by:
getAvailCompoIds in interface OrganisationController

getAvailCompoIdsAtRoot

public String[] getAvailCompoIdsAtRoot(String sClientSpaceId,
                                       String sUserId)
Description copied from interface: OrganisationController
Return the component ids available for the cuurent user Id in the given space id

Specified by:
getAvailCompoIdsAtRoot in interface OrganisationController

getAllComponents

public Map<String,WAComponent> getAllComponents()
Description copied from interface: OrganisationController
Return all the components of silverpeas read in the xmlComponent directory

Specified by:
getAllComponents in interface OrganisationController

getAllComponentsNames

public Map<String,String> getAllComponentsNames()
Description copied from interface: OrganisationController
Return all the components names available in webactiv

Specified by:
getAllComponentsNames in interface OrganisationController

getAvailDriverCompoIds

public String[] getAvailDriverCompoIds(String sClientSpaceId,
                                       String sUserId)
Description copied from interface: OrganisationController
Return the driver component ids available for the cuurent user Id in the given space id

Specified by:
getAvailDriverCompoIds in interface OrganisationController

getCompoForUser

public CompoSpace[] getCompoForUser(String sUserId,
                                    String sCompoName)
Description copied from interface: OrganisationController
Return the tuples (space id, compo id) allowed for the given user and given component name

Specified by:
getCompoForUser in interface OrganisationController
Returns:

getAvailComponentInstLights

public List<ComponentInstLight> getAvailComponentInstLights(String userId,
                                                            String componentName)
Description copied from interface: OrganisationController
gets the available component for a given user

Specified by:
getAvailComponentInstLights in interface OrganisationController
Parameters:
userId - user identifier used to get component
componentName - type of component to retrieve ( for example : kmelia, forums, blog)
Returns:
a list of ComponentInstLight object

getComponentIdsForUser

public String[] getComponentIdsForUser(String sUserId,
                                       String sCompoName)
Specified by:
getComponentIdsForUser in interface OrganisationController

getCompoId

public String[] getCompoId(String sCompoName)
Description copied from interface: OrganisationController
Return the compo id for the given component name

Specified by:
getCompoId in interface OrganisationController
Returns:

getComponentParameterValue

public String getComponentParameterValue(String sComponentId,
                                         String parameterName)
Specified by:
getComponentParameterValue in interface OrganisationController

getComponentInst

public ComponentInst getComponentInst(String sComponentId)
Description copied from interface: OrganisationController
Return the component Instance corresponding to the given component id

Specified by:
getComponentInst in interface OrganisationController

getSpacePath

public List<SpaceInst> getSpacePath(String spaceId)
Specified by:
getSpacePath in interface OrganisationController
Parameters:
spaceId - - id of the space or subSpace
Returns:
a List of SpaceInst ordered from root to subSpace

getSpacePathToComponent

public List<SpaceInst> getSpacePathToComponent(String componentId)
Specified by:
getSpacePathToComponent in interface OrganisationController

getComponentInstLight

public ComponentInstLight getComponentInstLight(String sComponentId)
Description copied from interface: OrganisationController
Return the component Instance Light corresponding to the given component id

Specified by:
getComponentInstLight in interface OrganisationController

getUserDBId

public int getUserDBId(String sUserId)
Description copied from interface: OrganisationController
Return the database id of the user with the given ldap Id

Specified by:
getUserDBId in interface OrganisationController

getUserDetailByDBId

public String getUserDetailByDBId(int id)
Description copied from interface: OrganisationController
Return the ldapId of the user with the given db Id

Specified by:
getUserDetailByDBId in interface OrganisationController

getUserFull

public UserFull getUserFull(String sUserId)
Description copied from interface: OrganisationController
Return the UserDetail of the user with the given ldap Id

Specified by:
getUserFull in interface OrganisationController

getUserDetail

public UserDetail getUserDetail(String sUserId)
Description copied from interface: OrganisationController
Return the UserDetail of the user with the given ldap Id

Specified by:
getUserDetail in interface OrganisationController

getUserDetails

public UserDetail[] getUserDetails(String[] asUserIds)
Description copied from interface: OrganisationController
Return an array of UserDetail corresponding to the given user Id array

Specified by:
getUserDetails in interface OrganisationController

getAllUsers

public UserDetail[] getAllUsers(String sPrefixTableName,
                                String sComponentName)
Specified by:
getAllUsers in interface OrganisationController

getAllUsers

public UserDetail[] getAllUsers(String componentId)
Description copied from interface: OrganisationController
Return all the users allowed to acces the given component

Specified by:
getAllUsers in interface OrganisationController

getAllUsersInDomain

public UserDetail[] getAllUsersInDomain(String domainId)
Description copied from interface: OrganisationController
Gets all the users that belong to the specified domain.

Specified by:
getAllUsersInDomain in interface OrganisationController
Parameters:
domainId - the unique identifier of the domain.
Returns:
an array of UserDetail objects or null if no such domain exists.

getUsersOfDomains

public List<UserDetail> getUsersOfDomains(List<String> domainIds)
Specified by:
getUsersOfDomains in interface OrganisationController

getUsersOfDomainsFromNewestToOldest

public List<UserDetail> getUsersOfDomainsFromNewestToOldest(List<String> domainIds)
Specified by:
getUsersOfDomainsFromNewestToOldest in interface OrganisationController

searchUsers

public ListSlice<UserDetail> searchUsers(UserDetailsSearchCriteria criteria)
Description copied from interface: OrganisationController
Searches the users that match the specified criteria.

Specified by:
searchUsers in interface OrganisationController
Parameters:
criteria - the criteria in searching of user details.
Returns:
a slice of the list of user details matching the criteria or an empty list of no ones are found.

getAllRootGroupsInDomain

public Group[] getAllRootGroupsInDomain(String domainId)
Description copied from interface: OrganisationController
Gets all the user groups that belong to the specified domain.

Specified by:
getAllRootGroupsInDomain in interface OrganisationController
Parameters:
domainId - the unique identifier of the domain.
Returns:
an array of Group objects or null if no such domain exists.

getFiltredDirectUsers

public UserDetail[] getFiltredDirectUsers(String sGroupId,
                                          String sUserLastNameFilter)
Description copied from interface: OrganisationController
For use in userPanel : return the users that are direct child of a given group

Specified by:
getFiltredDirectUsers in interface OrganisationController

searchUsers

public UserDetail[] searchUsers(UserDetail modelUser,
                                boolean isAnd)
Description copied from interface: OrganisationController
Return an array of UserDetail corresponding to the founded users

Specified by:
searchUsers in interface OrganisationController

searchGroups

public ListSlice<Group> searchGroups(GroupsSearchCriteria criteria)
Description copied from interface: OrganisationController
Searches the groups that match the specified criteria.

Specified by:
searchGroups in interface OrganisationController
Parameters:
criteria - the criteria in searching of user groups.
Returns:
a slice of the list of user groups matching the criteria or an empty list of no ones are found.

searchGroups

public Group[] searchGroups(Group modelGroup,
                            boolean isAnd)
Description copied from interface: OrganisationController
Return an array of Group corresponding to the founded groups

Specified by:
searchGroups in interface OrganisationController

getAllSubUsersNumber

public int getAllSubUsersNumber(String sGroupId)
Description copied from interface: OrganisationController
Returns the total number of distinct users recursively contained in the specified group

Specified by:
getAllSubUsersNumber in interface OrganisationController

getAllSubGroups

public Group[] getAllSubGroups(String parentGroupId)
Description copied from interface: OrganisationController
For use in userPanel : return the direct sub-groups

Specified by:
getAllSubGroups in interface OrganisationController

getAllUsers

public UserDetail[] getAllUsers()
Description copied from interface: OrganisationController
Return all the users of Silverpeas

Specified by:
getAllUsers in interface OrganisationController

getAllUsersFromNewestToOldest

public List<UserDetail> getAllUsersFromNewestToOldest()
Return all the users of Silverpeas

Specified by:
getAllUsersFromNewestToOldest in interface OrganisationController

getUsers

public UserDetail[] getUsers(String sPrefixTableName,
                             String sComponentName,
                             String sProfile)
Description copied from interface: OrganisationController
Return all the users with the given profile allowed to access the given component of the given space

Specified by:
getUsers in interface OrganisationController

getUserProfiles

public String[] getUserProfiles(String userId,
                                String componentId)
Specified by:
getUserProfiles in interface OrganisationController

getUserProfiles

public String[] getUserProfiles(String userId,
                                String componentId,
                                int objectId,
                                ObjectType objectType)
Specified by:
getUserProfiles in interface OrganisationController

getUserObjectProfiles

public Map<Integer,List<String>> getUserObjectProfiles(String userId,
                                                       String componentId,
                                                       ObjectType objectType)
Specified by:
getUserObjectProfiles in interface OrganisationController

getUserProfiles

public List<ProfileInst> getUserProfiles(String componentId,
                                         String objectId,
                                         String objectType)
Specified by:
getUserProfiles in interface OrganisationController

getUserProfile

public ProfileInst getUserProfile(String profileId)
Specified by:
getUserProfile in interface OrganisationController

getAdministratorUserIds

public String[] getAdministratorUserIds(String fromUserId)
Description copied from interface: OrganisationController
Return all administrators ids

Specified by:
getAdministratorUserIds in interface OrganisationController

getGroup

public Group getGroup(String sGroupId)
Description copied from interface: OrganisationController
Return the Group of the group with the given Id

Specified by:
getGroup in interface OrganisationController

getGroups

public Group[] getGroups(String[] groupsId)
Description copied from interface: OrganisationController
Return all groups specified by the groupsIds

Specified by:
getGroups in interface OrganisationController

getAllGroups

public Group[] getAllGroups()
Description copied from interface: OrganisationController
Return all the groups of silverpeas

Specified by:
getAllGroups in interface OrganisationController

getAllRootGroups

public Group[] getAllRootGroups()
Description copied from interface: OrganisationController
Return all root groups of silverpeas or null if an error occured when getting the root groups.

Specified by:
getAllRootGroups in interface OrganisationController

getAllUsersOfGroup

public UserDetail[] getAllUsersOfGroup(String groupId)
Description copied from interface: OrganisationController
Get ALL the users that are in a group or his sub groups

Specified by:
getAllUsersOfGroup in interface OrganisationController

getPathToGroup

public List<String> getPathToGroup(String groupId)
Description copied from interface: OrganisationController
Get path to Group

Specified by:
getPathToGroup in interface OrganisationController

getAllSpaceIds

public String[] getAllSpaceIds(String sUserId)
Specified by:
getAllSpaceIds in interface OrganisationController

getUserManageableSpaceIds

public String[] getUserManageableSpaceIds(String sUserId)
Description copied from interface: OrganisationController
Return all the spaces Id manageable by given user in Silverpeas

Specified by:
getUserManageableSpaceIds in interface OrganisationController

getAllRootSpaceIds

public String[] getAllRootSpaceIds()
Description copied from interface: OrganisationController
Return all the root spaceIds

Specified by:
getAllRootSpaceIds in interface OrganisationController

getAllRootSpaceIds

public String[] getAllRootSpaceIds(String sUserId)
Description copied from interface: OrganisationController
Return all the root spaceIds available for the user sUserId

Specified by:
getAllRootSpaceIds in interface OrganisationController

getAllSubSpaceIds

public String[] getAllSubSpaceIds(String sSpaceId,
                                  String sUserId)
Description copied from interface: OrganisationController
Return all the subSpaces Id available in webactiv given a space id (driver format)

Specified by:
getAllSubSpaceIds in interface OrganisationController

getAllComponentIds

public String[] getAllComponentIds(String sSpaceId)
Description copied from interface: OrganisationController
Return all the components Id available in webactiv given a space id (driver format)

Specified by:
getAllComponentIds in interface OrganisationController

getAllComponentIdsRecur

public String[] getAllComponentIdsRecur(String sSpaceId)
Description copied from interface: OrganisationController
Return all the components Id recursively available in webactiv given a space id (driver format)

Specified by:
getAllComponentIdsRecur in interface OrganisationController

getAllComponentIdsRecur

public String[] getAllComponentIdsRecur(String sSpaceId,
                                        String sUserId,
                                        String sComponentRootName,
                                        boolean inCurrentSpace,
                                        boolean inAllSpaces)
Description copied from interface: OrganisationController
Return all the components Id recursively in (Space+subspaces, or only subspaces or all silverpeas) available in silverpeas given a userId and a componentNameRoot

Specified by:
getAllComponentIdsRecur in interface OrganisationController
Returns:
Array of componentsIds

getRootSpacesContainingComponent

public List<SpaceInstLight> getRootSpacesContainingComponent(String userId,
                                                             String componentName)
Specified by:
getRootSpacesContainingComponent in interface OrganisationController

getSubSpacesContainingComponent

public List<SpaceInstLight> getSubSpacesContainingComponent(String spaceId,
                                                            String userId,
                                                            String componentName)
Specified by:
getSubSpacesContainingComponent in interface OrganisationController

isAdminTool

public boolean isAdminTool(String toolId)
Is the specified tool belongs to the administration component?

The administration component (or administrative console) forms a particular component made up of several tools, each of them providing an administrative feature. Each tool in the administration component have the same identifier that refers in fact the administration console.

Specified by:
isAdminTool in interface OrganisationController
Parameters:
toolId - the unique identifier of the tool.
Returns:
true if the tool belongs to the administration component.

isToolAvailable

public boolean isToolAvailable(String toolId)
Is the specified tool is available in Silverpeas?

A tool in Silverpeas is a singleton component that is dedicated to a given user. Each tool is identified by a unique identifier and it is unique to each user.

Specified by:
isToolAvailable in interface OrganisationController
Parameters:
toolId - the unique identifier of a tool.
Returns:
true if the tool is available, false otherwise.

isComponentAvailable

public boolean isComponentAvailable(String componentId,
                                    String userId)
Is the specified component instance available among the components instances accessibles by the specified user?

A component is an application in Silverpeas to perform some tasks and to manage some resources. Each component in Silverpeas can be instanciated several times, each of them corresponding then to a running application in Silverpeas and it is uniquely identified from others instances by a given identifier.

Specified by:
isComponentAvailable in interface OrganisationController
Parameters:
componentId - the unique identifier of a component instance.
userId - the unique identifier of a user.
Returns:
true if the component instance is available, false otherwise.

isComponentExist

public boolean isComponentExist(String componentId)
Specified by:
isComponentExist in interface OrganisationController

isComponentManageable

public boolean isComponentManageable(String componentId,
                                     String userId)
Specified by:
isComponentManageable in interface OrganisationController

isSpaceAvailable

public boolean isSpaceAvailable(String spaceId,
                                String userId)
Specified by:
isSpaceAvailable in interface OrganisationController

isObjectAvailable

public boolean isObjectAvailable(int objectId,
                                 ObjectType objectType,
                                 String componentId,
                                 String userId)
Specified by:
isObjectAvailable in interface OrganisationController

getSpaceTreeview

public List<SpaceInstLight> getSpaceTreeview(String userId)
Specified by:
getSpaceTreeview in interface OrganisationController

getAllowedSubSpaceIds

public String[] getAllowedSubSpaceIds(String userId,
                                      String spaceFatherId)
Specified by:
getAllowedSubSpaceIds in interface OrganisationController

getRootSpace

public SpaceInstLight getRootSpace(String spaceId)
Specified by:
getRootSpace in interface OrganisationController

getAllUsersIds

public String[] getAllUsersIds()
Description copied from interface: OrganisationController
Return all the users of Silverpeas

Specified by:
getAllUsersIds in interface OrganisationController

searchUsersIds

public String[] searchUsersIds(String groupId,
                               String componentId,
                               String[] profileId,
                               UserDetail filterUser)
Description copied from interface: OrganisationController
Return all the users of Silverpeas

Specified by:
searchUsersIds in interface OrganisationController
Returns:

getUsersIdsByRoleNames

public String[] getUsersIdsByRoleNames(String componentId,
                                       List<String> profileNames)
Description copied from interface: OrganisationController
Return userIds according to a list of profile names

Specified by:
getUsersIdsByRoleNames in interface OrganisationController
Parameters:
componentId - the instance id
profileNames - the list which contains the profile names
Returns:
a string array of user id

getUsersIdsByRoleNames

public String[] getUsersIdsByRoleNames(String componentId,
                                       String objectId,
                                       ObjectType objectType,
                                       List<String> profileNames)
Specified by:
getUsersIdsByRoleNames in interface OrganisationController

searchGroupsIds

public String[] searchGroupsIds(boolean isRootGroup,
                                String componentId,
                                String[] profileId,
                                Group modelGroup)
Specified by:
searchGroupsIds in interface OrganisationController

getDomain

public Domain getDomain(String domainId)
Description copied from interface: OrganisationController
Get a domain with given id

Specified by:
getDomain in interface OrganisationController
Returns:

getAllDomains

public Domain[] getAllDomains()
Description copied from interface: OrganisationController
Get all domains

Specified by:
getAllDomains in interface OrganisationController
Returns:

getDirectGroupIdsOfUser

public String[] getDirectGroupIdsOfUser(String userId)
Specified by:
getDirectGroupIdsOfUser in interface OrganisationController

getAllGroupIdsOfUser

public String[] getAllGroupIdsOfUser(String userId)
Specified by:
getAllGroupIdsOfUser in interface OrganisationController

reloadAdminCache

public void reloadAdminCache()
Specified by:
reloadAdminCache in interface OrganisationController

isAnonymousAccessActivated

public boolean isAnonymousAccessActivated()
Description copied from interface: OrganisationController
Is the anonymous access is activated for the running Silverpeas? When the anonymous access is activated, then a specific user for anonymous access should be set; all anonym accesses to the running Silverpeas are done with this user profile.

Specified by:
isAnonymousAccessActivated in interface OrganisationController
Returns:
true if the anonym access is activated, false otherwise.

getAllowedComponentIds

public String[] getAllowedComponentIds(String userId)
Specified by:
getAllowedComponentIds in interface OrganisationController

getSearchableComponentsByCriteria

public List<String> getSearchableComponentsByCriteria(ComponentSearchCriteria criteria)
Description copied from interface: OrganisationController
Gets the identifier of the component instances that are both searchable and that satisfy the specified criteria.

Specified by:
getSearchableComponentsByCriteria in interface OrganisationController
Parameters:
criteria - the criteria on the component instances to get.
Returns:
a list of component instance identifiers.


Copyright © 2016 Silverpeas. All Rights Reserved.