Class DefaultPermission

  • All Implemented Interfaces:
    Permission

    public class DefaultPermission
    extends java.lang.Object
    implements Permission
    Default implementation of package io.adminshell.aas.v3.model.Permission Description of a single permission.
    • Constructor Detail

      • DefaultPermission

        public DefaultPermission()
    • 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
      • getKindOfPermission

        public PermissionKind getKindOfPermission()
        Description copied from interface: Permission
        Description of the kind of permission. Possible kind of permission also include the denial of the permission. More information under https://admin-shell.io/aas/3/0/RC01/Permission/kindOfPermission
        Specified by:
        getKindOfPermission in interface Permission
        Returns:
        Returns the PermissionKind for the property kindOfPermission.
      • setKindOfPermission

        public void setKindOfPermission​(PermissionKind kindOfPermission)
        Description copied from interface: Permission
        Description of the kind of permission. Possible kind of permission also include the denial of the permission. More information under https://admin-shell.io/aas/3/0/RC01/Permission/kindOfPermission
        Specified by:
        setKindOfPermission in interface Permission
        Parameters:
        kindOfPermission - desired value for the property kindOfPermission.
      • getPermission

        public Reference getPermission()
        Description copied from interface: Permission
        Reference to a property that defines the semantics of the permission. Constraint AASs-010: The property referenced in Permission/permission shall have the category 'CONSTANT'. Constraint AASs-011: The property referenced in Permission/permission shall be part of the submodel that is referenced within the 'selectablePermissions' attribute of 'AccessControl'. More information under https://admin-shell.io/aas/3/0/RC01/Permission/permission
        Specified by:
        getPermission in interface Permission
        Returns:
        Returns the Reference for the property permission.
      • setPermission

        public void setPermission​(Reference permission)
        Description copied from interface: Permission
        Reference to a property that defines the semantics of the permission. Constraint AASs-010: The property referenced in Permission/permission shall have the category 'CONSTANT'. Constraint AASs-011: The property referenced in Permission/permission shall be part of the submodel that is referenced within the 'selectablePermissions' attribute of 'AccessControl'. More information under https://admin-shell.io/aas/3/0/RC01/Permission/permission
        Specified by:
        setPermission in interface Permission
        Parameters:
        permission - desired value for the property permission.