Class 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.
    • Constructor Detail

      • DefaultPermissionsPerObject

        public DefaultPermissionsPerObject()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getObject

        public Referable getObject()
        Description copied from interface: PermissionsPerObject
        Element to which permission shall be assigned. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/object
        Specified by:
        getObject in interface PermissionsPerObject
        Returns:
        Returns the Referable for the property object.
      • setObject

        public void setObject​(Referable object)
        Description copied from interface: PermissionsPerObject
        Element to which permission shall be assigned. More information under https://admin-shell.io/aas/3/0/RC01/PermissionsPerObject/object
        Specified by:
        setObject in interface PermissionsPerObject
        Parameters:
        object - desired value for the property object.
      • getPermissions

        public java.util.List<Permission> getPermissions()
        Description copied from interface: PermissionsPerObject
        Permissions 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:
        getPermissions in interface PermissionsPerObject
        Returns:
        Returns the List of Permissions for the property permissions.
      • setPermissions

        public void setPermissions​(java.util.List<Permission> permissions)
        Description copied from interface: PermissionsPerObject
        Permissions 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:
        setPermissions in interface PermissionsPerObject
        Parameters:
        permissions - desired value for the property permissions.
      • getTargetObjectAttributes

        public ObjectAttributes getTargetObjectAttributes()
        Description copied from interface: PermissionsPerObject
        Target 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:
        getTargetObjectAttributes in interface PermissionsPerObject
        Returns:
        Returns the ObjectAttributes for the property targetObjectAttributes.
      • setTargetObjectAttributes

        public void setTargetObjectAttributes​(ObjectAttributes targetObjectAttributes)
        Description copied from interface: PermissionsPerObject
        Target 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:
        setTargetObjectAttributes in interface PermissionsPerObject
        Parameters:
        targetObjectAttributes - desired value for the property targetObjectAttributes.