Package io.adminshell.aas.v3.model.impl
Class DefaultPermission
- java.lang.Object
-
- io.adminshell.aas.v3.model.impl.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultPermission.BuilderThis builder class can be used to construct a DefaultPermission bean.
-
Field Summary
Fields Modifier and Type Field Description protected PermissionKindkindOfPermissionprotected Referencepermission
-
Constructor Summary
Constructors Constructor Description DefaultPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)PermissionKindgetKindOfPermission()Description of the kind of permission.ReferencegetPermission()Reference to a property that defines the semantics of the permission.inthashCode()voidsetKindOfPermission(PermissionKind kindOfPermission)Description of the kind of permission.voidsetPermission(Reference permission)Reference to a property that defines the semantics of the permission.
-
-
-
Field Detail
-
kindOfPermission
protected PermissionKind kindOfPermission
-
permission
protected Reference permission
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getKindOfPermission
public PermissionKind getKindOfPermission()
Description copied from interface:PermissionDescription 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:
getKindOfPermissionin interfacePermission- Returns:
- Returns the PermissionKind for the property kindOfPermission.
-
setKindOfPermission
public void setKindOfPermission(PermissionKind kindOfPermission)
Description copied from interface:PermissionDescription 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:
setKindOfPermissionin interfacePermission- Parameters:
kindOfPermission- desired value for the property kindOfPermission.
-
getPermission
public Reference getPermission()
Description copied from interface:PermissionReference 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:
getPermissionin interfacePermission- Returns:
- Returns the Reference for the property permission.
-
setPermission
public void setPermission(Reference permission)
Description copied from interface:PermissionReference 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:
setPermissionin interfacePermission- Parameters:
permission- desired value for the property permission.
-
-