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
AAccessControlGroup
represents a collection ofpermissions
. A security administrator assigns auser
to agroup
to grant him thepermissions
of thatgroup
.
Please note that a role is a special form of agroup
that also represents a strategic function. Therefore not everygroup
is 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 boolean
equals(Object obj)
List<AccessControlGroup>
getInherits()
List<AccessControlPermission>
getPermissions()
String
getType()
int
hashCode()
void
setInherits(List<AccessControlGroup> inherits)
void
setPermissions(List<AccessControlPermission> permissions)
void
setType(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
List
ofAccessControlPermission
s.
-
setPermissions
public void setPermissions(List<AccessControlPermission> permissions)
- Parameters:
permissions
- the newpermissions
.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAccessControl
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAccessControl
-
-