Class AccessControlGroup
- java.lang.Object
-
- com.devonfw.module.security.common.api.accesscontrol.AccessControl
-
- com.devonfw.module.security.common.api.accesscontrol.AccessControlGroup
-
- All Implemented Interfaces:
Serializable
public class AccessControlGroup extends AccessControl
AAccessControlGrouprepresents a collection ofpermissions. A security administrator assigns auserto agroupto grant him thepermissionsof thatgroup.
Please note that a role is a special form of agroupthat also represents a strategic function. Therefore not everygroupis a role. Often a user can only have one role or can only act under one role at a time. Unfortunately these terms are often mixed up what is causing confusion.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessControlGroup()The constructor.AccessControlGroup(String id)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<AccessControlGroup>getInherits()List<AccessControlPermission>getPermissions()StringgetType()inthashCode()voidsetInherits(List<AccessControlGroup> inherits)voidsetPermissions(List<AccessControlPermission> permissions)voidsetType(String type)-
Methods inherited from class com.devonfw.module.security.common.api.accesscontrol.AccessControl
getId, setId, toString
-
-
-
-
Method Detail
-
getType
public String getType()
- Returns:
- the type of this group. E.g. "role", "department", "use-case-group", etc. You can use this for your own purpose.
-
setType
public void setType(String type)
- Parameters:
type- the type to set
-
getInherits
public List<AccessControlGroup> getInherits()
- Returns:
- inherits
-
setInherits
public void setInherits(List<AccessControlGroup> inherits)
- Parameters:
inherits- the inherits to set
-
getPermissions
public List<AccessControlPermission> getPermissions()
- Returns:
- the
ListofAccessControlPermissions.
-
setPermissions
public void setPermissions(List<AccessControlPermission> permissions)
- Parameters:
permissions- the newpermissions.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAccessControl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAccessControl
-
-