|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.beans.admin.OrganizationController
@Named(value="organizationController") public class OrganizationController
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.
| 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 |
|---|
public OrganizationController()
| Method Detail |
|---|
public String[] getAllSpaceIds()
OrganisationController
getAllSpaceIds in interface OrganisationControllerpublic String[] getAllSubSpaceIds(String sSpaceId)
OrganisationController
getAllSubSpaceIds in interface OrganisationControllerpublic String[] getSpaceNames(String[] asSpaceIds)
OrganisationController
getSpaceNames in interface OrganisationControllerpublic SpaceInstLight getSpaceInstLightById(String spaceId)
OrganisationController
getSpaceInstLightById in interface OrganisationControllerpublic String getGeneralSpaceId()
OrganisationController
getGeneralSpaceId in interface OrganisationControllerpublic SpaceInst getSpaceInstById(String sSpaceId)
OrganisationController
getSpaceInstById in interface OrganisationController
public String[] getAvailCompoIds(String sClientSpaceId,
String sUserId)
OrganisationController
getAvailCompoIds in interface OrganisationControllerpublic String[] getAvailCompoIds(String sUserId)
OrganisationController
getAvailCompoIds in interface OrganisationController
public String[] getAvailCompoIdsAtRoot(String sClientSpaceId,
String sUserId)
OrganisationController
getAvailCompoIdsAtRoot in interface OrganisationControllerpublic Map<String,WAComponent> getAllComponents()
OrganisationController
getAllComponents in interface OrganisationControllerpublic Map<String,String> getAllComponentsNames()
OrganisationController
getAllComponentsNames in interface OrganisationController
public String[] getAvailDriverCompoIds(String sClientSpaceId,
String sUserId)
OrganisationController
getAvailDriverCompoIds in interface OrganisationController
public CompoSpace[] getCompoForUser(String sUserId,
String sCompoName)
OrganisationController
getCompoForUser in interface OrganisationController
public List<ComponentInstLight> getAvailComponentInstLights(String userId,
String componentName)
OrganisationController
getAvailComponentInstLights in interface OrganisationControlleruserId - user identifier used to get componentcomponentName - type of component to retrieve ( for example : kmelia, forums, blog)
public String[] getComponentIdsForUser(String sUserId,
String sCompoName)
getComponentIdsForUser in interface OrganisationControllerpublic String[] getCompoId(String sCompoName)
OrganisationController
getCompoId in interface OrganisationController
public String getComponentParameterValue(String sComponentId,
String parameterName)
getComponentParameterValue in interface OrganisationControllerpublic ComponentInst getComponentInst(String sComponentId)
OrganisationController
getComponentInst in interface OrganisationControllerpublic List<SpaceInst> getSpacePath(String spaceId)
getSpacePath in interface OrganisationControllerspaceId - - id of the space or subSpace
public List<SpaceInst> getSpacePathToComponent(String componentId)
getSpacePathToComponent in interface OrganisationControllerpublic ComponentInstLight getComponentInstLight(String sComponentId)
OrganisationController
getComponentInstLight in interface OrganisationControllerpublic int getUserDBId(String sUserId)
OrganisationController
getUserDBId in interface OrganisationControllerpublic String getUserDetailByDBId(int id)
OrganisationController
getUserDetailByDBId in interface OrganisationControllerpublic UserFull getUserFull(String sUserId)
OrganisationController
getUserFull in interface OrganisationControllerpublic UserDetail getUserDetail(String sUserId)
OrganisationController
getUserDetail in interface OrganisationControllerpublic UserDetail[] getUserDetails(String[] asUserIds)
OrganisationController
getUserDetails in interface OrganisationController
public UserDetail[] getAllUsers(String sPrefixTableName,
String sComponentName)
getAllUsers in interface OrganisationControllerpublic UserDetail[] getAllUsers(String componentId)
OrganisationController
getAllUsers in interface OrganisationControllerpublic UserDetail[] getAllUsersInDomain(String domainId)
OrganisationController
getAllUsersInDomain in interface OrganisationControllerdomainId - the unique identifier of the domain.
public List<UserDetail> getUsersOfDomains(List<String> domainIds)
getUsersOfDomains in interface OrganisationControllerpublic List<UserDetail> getUsersOfDomainsFromNewestToOldest(List<String> domainIds)
getUsersOfDomainsFromNewestToOldest in interface OrganisationControllerpublic ListSlice<UserDetail> searchUsers(UserDetailsSearchCriteria criteria)
OrganisationController
searchUsers in interface OrganisationControllercriteria - the criteria in searching of user details.
public Group[] getAllRootGroupsInDomain(String domainId)
OrganisationController
getAllRootGroupsInDomain in interface OrganisationControllerdomainId - the unique identifier of the domain.
public UserDetail[] getFiltredDirectUsers(String sGroupId,
String sUserLastNameFilter)
OrganisationController
getFiltredDirectUsers in interface OrganisationController
public UserDetail[] searchUsers(UserDetail modelUser,
boolean isAnd)
OrganisationController
searchUsers in interface OrganisationControllerpublic ListSlice<Group> searchGroups(GroupsSearchCriteria criteria)
OrganisationController
searchGroups in interface OrganisationControllercriteria - the criteria in searching of user groups.
public Group[] searchGroups(Group modelGroup,
boolean isAnd)
OrganisationController
searchGroups in interface OrganisationControllerpublic int getAllSubUsersNumber(String sGroupId)
OrganisationController
getAllSubUsersNumber in interface OrganisationControllerpublic Group[] getAllSubGroups(String parentGroupId)
OrganisationController
getAllSubGroups in interface OrganisationControllerpublic UserDetail[] getAllUsers()
OrganisationController
getAllUsers in interface OrganisationControllerpublic List<UserDetail> getAllUsersFromNewestToOldest()
getAllUsersFromNewestToOldest in interface OrganisationController
public UserDetail[] getUsers(String sPrefixTableName,
String sComponentName,
String sProfile)
OrganisationController
getUsers in interface OrganisationController
public String[] getUserProfiles(String userId,
String componentId)
getUserProfiles in interface OrganisationController
public String[] getUserProfiles(String userId,
String componentId,
int objectId,
ObjectType objectType)
getUserProfiles in interface OrganisationController
public Map<Integer,List<String>> getUserObjectProfiles(String userId,
String componentId,
ObjectType objectType)
getUserObjectProfiles in interface OrganisationController
public List<ProfileInst> getUserProfiles(String componentId,
String objectId,
String objectType)
getUserProfiles in interface OrganisationControllerpublic ProfileInst getUserProfile(String profileId)
getUserProfile in interface OrganisationControllerpublic String[] getAdministratorUserIds(String fromUserId)
OrganisationController
getAdministratorUserIds in interface OrganisationControllerpublic Group getGroup(String sGroupId)
OrganisationController
getGroup in interface OrganisationControllerpublic Group[] getGroups(String[] groupsId)
OrganisationController
getGroups in interface OrganisationControllerpublic Group[] getAllGroups()
OrganisationController
getAllGroups in interface OrganisationControllerpublic Group[] getAllRootGroups()
OrganisationController
getAllRootGroups in interface OrganisationControllerpublic UserDetail[] getAllUsersOfGroup(String groupId)
OrganisationController
getAllUsersOfGroup in interface OrganisationControllerpublic List<String> getPathToGroup(String groupId)
OrganisationController
getPathToGroup in interface OrganisationControllerpublic String[] getAllSpaceIds(String sUserId)
getAllSpaceIds in interface OrganisationControllerpublic String[] getUserManageableSpaceIds(String sUserId)
OrganisationController
getUserManageableSpaceIds in interface OrganisationControllerpublic String[] getAllRootSpaceIds()
OrganisationController
getAllRootSpaceIds in interface OrganisationControllerpublic String[] getAllRootSpaceIds(String sUserId)
OrganisationController
getAllRootSpaceIds in interface OrganisationController
public String[] getAllSubSpaceIds(String sSpaceId,
String sUserId)
OrganisationController
getAllSubSpaceIds in interface OrganisationControllerpublic String[] getAllComponentIds(String sSpaceId)
OrganisationController
getAllComponentIds in interface OrganisationControllerpublic String[] getAllComponentIdsRecur(String sSpaceId)
OrganisationController
getAllComponentIdsRecur in interface OrganisationController
public String[] getAllComponentIdsRecur(String sSpaceId,
String sUserId,
String sComponentRootName,
boolean inCurrentSpace,
boolean inAllSpaces)
OrganisationController
getAllComponentIdsRecur in interface OrganisationController
public List<SpaceInstLight> getRootSpacesContainingComponent(String userId,
String componentName)
getRootSpacesContainingComponent in interface OrganisationController
public List<SpaceInstLight> getSubSpacesContainingComponent(String spaceId,
String userId,
String componentName)
getSubSpacesContainingComponent in interface OrganisationControllerpublic boolean isAdminTool(String toolId)
isAdminTool in interface OrganisationControllertoolId - the unique identifier of the tool.
public boolean isToolAvailable(String toolId)
isToolAvailable in interface OrganisationControllertoolId - the unique identifier of a tool.
public boolean isComponentAvailable(String componentId,
String userId)
isComponentAvailable in interface OrganisationControllercomponentId - the unique identifier of a component instance.userId - the unique identifier of a user.
public boolean isComponentExist(String componentId)
isComponentExist in interface OrganisationController
public boolean isComponentManageable(String componentId,
String userId)
isComponentManageable in interface OrganisationController
public boolean isSpaceAvailable(String spaceId,
String userId)
isSpaceAvailable in interface OrganisationController
public boolean isObjectAvailable(int objectId,
ObjectType objectType,
String componentId,
String userId)
isObjectAvailable in interface OrganisationControllerpublic List<SpaceInstLight> getSpaceTreeview(String userId)
getSpaceTreeview in interface OrganisationController
public String[] getAllowedSubSpaceIds(String userId,
String spaceFatherId)
getAllowedSubSpaceIds in interface OrganisationControllerpublic SpaceInstLight getRootSpace(String spaceId)
getRootSpace in interface OrganisationControllerpublic String[] getAllUsersIds()
OrganisationController
getAllUsersIds in interface OrganisationController
public String[] searchUsersIds(String groupId,
String componentId,
String[] profileId,
UserDetail filterUser)
OrganisationController
searchUsersIds in interface OrganisationController
public String[] getUsersIdsByRoleNames(String componentId,
List<String> profileNames)
OrganisationController
getUsersIdsByRoleNames in interface OrganisationControllercomponentId - the instance idprofileNames - the list which contains the profile names
public String[] getUsersIdsByRoleNames(String componentId,
String objectId,
ObjectType objectType,
List<String> profileNames)
getUsersIdsByRoleNames in interface OrganisationController
public String[] searchGroupsIds(boolean isRootGroup,
String componentId,
String[] profileId,
Group modelGroup)
searchGroupsIds in interface OrganisationControllerpublic Domain getDomain(String domainId)
OrganisationController
getDomain in interface OrganisationControllerpublic Domain[] getAllDomains()
OrganisationController
getAllDomains in interface OrganisationControllerpublic String[] getDirectGroupIdsOfUser(String userId)
getDirectGroupIdsOfUser in interface OrganisationControllerpublic String[] getAllGroupIdsOfUser(String userId)
getAllGroupIdsOfUser in interface OrganisationControllerpublic void reloadAdminCache()
reloadAdminCache in interface OrganisationControllerpublic boolean isAnonymousAccessActivated()
OrganisationController
isAnonymousAccessActivated in interface OrganisationControllerpublic String[] getAllowedComponentIds(String userId)
getAllowedComponentIds in interface OrganisationControllerpublic List<String> getSearchableComponentsByCriteria(ComponentSearchCriteria criteria)
OrganisationController
getSearchableComponentsByCriteria in interface OrganisationControllercriteria - the criteria on the component instances to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||