| java.lang.Object com.flexive.shared.AbstractSelectableObjectWithName com.flexive.shared.security.UserGroup
UserGroup | public class UserGroup extends AbstractSelectableObjectWithName implements Serializable,ObjectWithColor(Code) | | A group of users
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Field Summary | |
final public static long | GROUP_EVERYONE Group in which every user is in (including USER_GUEST). | final public static long | GROUP_NULL | final public static long | GROUP_OWNER Group for special ACL permissions.
This group may not be assigned to roles. | final public static long | GROUP_UNDEFINED |
GROUP_EVERYONE | final public static long GROUP_EVERYONE(Code) | | Group in which every user is in (including USER_GUEST).
This group may not be assigned to users.
|
GROUP_NULL | final public static long GROUP_NULL(Code) | | Dummy group (Id if a null value cannot be applied)
|
GROUP_OWNER | final public static long GROUP_OWNER(Code) | | Group for special ACL permissions.
This group may not be assigned to roles. A ACLAssignment using this
group defines that its permissions are granted to the CREATOR of an object,
not to the users within the GROUP_OWNER.
|
GROUP_UNDEFINED | final public static long GROUP_UNDEFINED(Code) | | Undefined group
|
UserGroup | public UserGroup(long id, String name, long mandator, String color)(Code) | | Ctor
Parameters: id - id Parameters: name - name Parameters: mandator - mandator id Parameters: color - color |
UserGroup | public UserGroup(long id, long mandator, long autoMandator, boolean system, String name, String color)(Code) | | Ctor
Parameters: id - id Parameters: mandator - mandator id Parameters: autoMandator - mandator id for auto generated system groups only, else -1 Parameters: system - is this an auto generated system group? Parameters: name - name of the group Parameters: color - color |
getAutoMandator | public long getAutoMandator()(Code) | | Get the id of the mandator this group is maintained for if it is a system group, else -1
id of the mandator this group is maintained for if it is a system group, else -1 |
getColor | public String getColor()(Code) | | Getter for the displayed color
color |
getId | public long getId()(Code) | | Getter for the group id
group id |
getMandatorId | public long getMandatorId()(Code) | | Getter for the mandator id
mandator id |
getName | public String getName()(Code) | | Getter for the name
name |
isSystem | public boolean isSystem()(Code) | | Is this an auto generated system group?
auto generated system group? |
mayAccessGroup | public boolean mayAccessGroup(UserTicket ticket)(Code) | | Returns true if the caller may see the group and its roles and assignments.
Parameters: ticket - the caller true if the caller may see the group its roles and assignments |
setColor | public void setColor(String color)(Code) | | Setter for the color
Parameters: color - color |
setName | public void setName(String name)(Code) | | Setter for the name
Parameters: name - group name |
|
|