Package io.adminshell.aas.v3.model.impl
Class DefaultPermissionsPerObject
- java.lang.Object
-
- io.adminshell.aas.v3.model.impl.DefaultPermissionsPerObject
-
- All Implemented Interfaces:
PermissionsPerObject
public class DefaultPermissionsPerObject extends java.lang.Object implements PermissionsPerObject
Default implementation of package io.adminshell.aas.v3.model.PermissionsPerObject Table that defines access permissions for a specified object. The object is any referable element in the AAS. Additionally object attributes can be defined that further specify the kind of object the permissions apply to.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultPermissionsPerObject.BuilderThis builder class can be used to construct a DefaultPermissionsPerObject bean.
-
Field Summary
Fields Modifier and Type Field Description protected Referableobjectprotected java.util.List<Permission>permissionsprotected ObjectAttributestargetObjectAttributes
-
Constructor Summary
Constructors Constructor Description DefaultPermissionsPerObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ReferablegetObject()Element to which permission shall be assigned.java.util.List<Permission>getPermissions()Permissions assigned to the object.ObjectAttributesgetTargetObjectAttributes()Target object attributes that need to be fulfilled so that the access permissions apply to the accessing subject.inthashCode()voidsetObject(Referable object)Element to which permission shall be assigned.voidsetPermissions(java.util.List<Permission> permissions)Permissions assigned to the object.voidsetTargetObjectAttributes(ObjectAttributes targetObjectAttributes)Target object attributes that need to be fulfilled so that the access permissions apply to the accessing subject.
-
-
-
Field Detail
-
object
protected Referable object
-
permissions
protected java.util.List<Permission> permissions
-
targetObjectAttributes
protected ObjectAttributes targetObjectAttributes
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getObject
public Referable getObject()
Description copied from interface:PermissionsPerObjectElement to which permission shall be assigned. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/object- Specified by:
getObjectin interfacePermissionsPerObject- Returns:
- Returns the Referable for the property object.
-
setObject
public void setObject(Referable object)
Description copied from interface:PermissionsPerObjectElement to which permission shall be assigned. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/object- Specified by:
setObjectin interfacePermissionsPerObject- Parameters:
object- desired value for the property object.
-
getPermissions
public java.util.List<Permission> getPermissions()
Description copied from interface:PermissionsPerObjectPermissions assigned to the object. The permissions hold for all subjects as specified in the access permission rule. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/permission- Specified by:
getPermissionsin interfacePermissionsPerObject- Returns:
- Returns the List of Permissions for the property permissions.
-
setPermissions
public void setPermissions(java.util.List<Permission> permissions)
Description copied from interface:PermissionsPerObjectPermissions assigned to the object. The permissions hold for all subjects as specified in the access permission rule. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/permission- Specified by:
setPermissionsin interfacePermissionsPerObject- Parameters:
permissions- desired value for the property permissions.
-
getTargetObjectAttributes
public ObjectAttributes getTargetObjectAttributes()
Description copied from interface:PermissionsPerObjectTarget object attributes that need to be fulfilled so that the access permissions apply to the accessing subject. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/targetObjectAttributes- Specified by:
getTargetObjectAttributesin interfacePermissionsPerObject- Returns:
- Returns the ObjectAttributes for the property targetObjectAttributes.
-
setTargetObjectAttributes
public void setTargetObjectAttributes(ObjectAttributes targetObjectAttributes)
Description copied from interface:PermissionsPerObjectTarget object attributes that need to be fulfilled so that the access permissions apply to the accessing subject. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/targetObjectAttributes- Specified by:
setTargetObjectAttributesin interfacePermissionsPerObject- Parameters:
targetObjectAttributes- desired value for the property targetObjectAttributes.
-
-