com.stratelia.silverpeas.selection
Class SelectionUsersGroups

java.lang.Object
  extended by com.stratelia.silverpeas.selection.SelectionUsersGroups
All Implemented Interfaces:
SelectionExtraParams

public class SelectionUsersGroups
extends Object
implements SelectionExtraParams


Field Summary
static int GROUP
           
static int USER
           
 
Constructor Summary
SelectionUsersGroups()
           
 
Method Summary
 void addProfileId(String profileId)
          Deprecated. Use instead either both the setObjectId() and setProfileNames() methods to set the roles for a given object in the component instance or the setProfileNames() method to set the roles for the whole component instance.
 void addProfileIds(List<String> profileIds)
          Deprecated. Use instead either both the setObjectId() and setProfileNames() methods to set the roles for a given object in the component instance or the setProfileNames() method to set the roles for the whole component instance.
 String getComponentId()
           
static String[] getDistinctUserIds(String[] selectedUsers, String[] selectedGroups)
           
 String getDomainId()
           
static String[] getGroupIds(Group[] groups)
           
static Group[] getGroups(String[] groupIds)
           
 String getJoinedProfileNames()
           
 String getObjectId()
          Gets the identifier of the object in the component instance for which the users must have enough right to access.
 String getParameter(String name)
           
 String[] getProfileIds()
          Deprecated. 
 List<String> getProfileNames()
           
static UserDetail[] getUserDetails(String[] userIds)
           
static String[] getUserIds(UserDetail[] users)
           
 void setComponentId(String componentId)
           
 void setDomainId(String domainId)
           
 void setObjectId(String objectId)
          Sets the object in the component instance for which the users must have enough right to access.
 void setProfileIds(List<String> profileIds)
          Deprecated. Use instead either both the setObjectId() and setProfileNames() methods to set the roles for a given object in the component instance or the setProfileNames() method to set the roles for the whole component instance.
 void setProfileNames(List<String> profileNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

public static final int USER
See Also:
Constant Field Values

GROUP

public static final int GROUP
See Also:
Constant Field Values
Constructor Detail

SelectionUsersGroups

public SelectionUsersGroups()
Method Detail

getProfileIds

@Deprecated
public String[] getProfileIds()
Deprecated. 


getJoinedProfileNames

public String getJoinedProfileNames()

getProfileNames

public List<String> getProfileNames()

setProfileNames

public void setProfileNames(List<String> profileNames)

setProfileIds

@Deprecated
public void setProfileIds(List<String> profileIds)
Deprecated. Use instead either both the setObjectId() and setProfileNames() methods to set the roles for a given object in the component instance or the setProfileNames() method to set the roles for the whole component instance.

Sets the identifier of the roles the users must play.

Parameters:
profileIds - the unique identifier of the user roles.

addProfileId

@Deprecated
public void addProfileId(String profileId)
Deprecated. Use instead either both the setObjectId() and setProfileNames() methods to set the roles for a given object in the component instance or the setProfileNames() method to set the roles for the whole component instance.

Add the identifier of the role the users must play.

Parameters:
profileId - the unique identifier of a user role.

addProfileIds

@Deprecated
public void addProfileIds(List<String> profileIds)
Deprecated. Use instead either both the setObjectId() and setProfileNames() methods to set the roles for a given object in the component instance or the setProfileNames() method to set the roles for the whole component instance.

Adds the identifiers of the roles the users must play.

Parameters:
profileIds - the user role identifiers.

getObjectId

public String getObjectId()
Gets the identifier of the object in the component instance for which the users must have enough right to access.

Returns:
the unique identifier of the object, made up of its type followed by its identifier.

setObjectId

public void setObjectId(String objectId)
Sets the object in the component instance for which the users must have enough right to access.

Parameters:
objectId - the unique identifier of the object in Silverpeas. It must be made up of its type followed by its identifier.

getComponentId

public String getComponentId()

setComponentId

public void setComponentId(String componentId)

getDomainId

public String getDomainId()

setDomainId

public void setDomainId(String domainId)

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface SelectionExtraParams

getDistinctUserIds

public static String[] getDistinctUserIds(String[] selectedUsers,
                                          String[] selectedGroups)

getUserDetails

public static UserDetail[] getUserDetails(String[] userIds)

getGroups

public static Group[] getGroups(String[] groupIds)

getUserIds

public static String[] getUserIds(UserDetail[] users)

getGroupIds

public static String[] getGroupIds(Group[] groups)


Copyright © 2016 Silverpeas. All Rights Reserved.