Package org.bremersee.common.model
Class AccessControlList
- java.lang.Object
-
- org.bremersee.common.model.AccessControlList
-
- All Implemented Interfaces:
Serializable
@Validated public class AccessControlList extends Object implements Serializable
Specifies permissions and who is granted.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessControlList(String owner, List<AccessControlEntry> entries)
Instantiates a new access control list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AccessControlEntry>
getEntries()
Get entries.String
getOwner()
The owner is always granted and can only be changed by the owner.void
setEntries(List<AccessControlEntry> entries)
Sets entries.void
setOwner(String owner)
Sets owner.
-
-
-
Constructor Detail
-
AccessControlList
public AccessControlList(String owner, List<AccessControlEntry> entries)
Instantiates a new access control list.- Parameters:
owner
- the ownerentries
- the entries
-
-
Method Detail
-
getOwner
public String getOwner()
The owner is always granted and can only be changed by the owner.- Returns:
- owner owner
-
setOwner
public void setOwner(String owner)
Sets owner.- Parameters:
owner
- the owner
-
getEntries
public List<AccessControlEntry> getEntries()
Get entries.- Returns:
- entries entries
-
setEntries
public void setEntries(List<AccessControlEntry> entries)
Sets entries.- Parameters:
entries
- the entries
-
-