Package io.adminshell.aas.v3.model.impl
Class DefaultAccessControl
- java.lang.Object
-
- io.adminshell.aas.v3.model.impl.DefaultAccessControl
-
- All Implemented Interfaces:
AccessControl
public class DefaultAccessControl extends java.lang.Object implements AccessControl
Default implementation of package io.adminshell.aas.v3.model.AccessControl Access Control defines the local access control policy administration point. Access Control has the major task to define the access permission rules.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultAccessControl.BuilderThis builder class can be used to construct a DefaultAccessControl bean.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<AccessPermissionRule>accessPermissionRulesprotected ReferencedefaultEnvironmentAttributesprotected ReferencedefaultPermissionsprotected ReferencedefaultSubjectAttributesprotected ReferenceselectableEnvironmentAttributesprotected ReferenceselectablePermissionsprotected ReferenceselectableSubjectAttributes
-
Constructor Summary
Constructors Constructor Description DefaultAccessControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<AccessPermissionRule>getAccessPermissionRules()Access permission rules of the AAS describing the rights assigned to (already authenticated) subjects to access elements of the AAS.ReferencegetDefaultEnvironmentAttributes()Reference to a submodel defining default environment attributes, i.e. attributes that are not describing the asset itself.ReferencegetDefaultPermissions()Reference to a submodel defining the default permissions for the AAS.ReferencegetDefaultSubjectAttributes()Reference to a submodel defining the default subjects attributes for the AAS that can be used to describe access permission rules.ReferencegetSelectableEnvironmentAttributes()Reference to a submodel defining which environment attributes can be accessed via the permission rules.ReferencegetSelectablePermissions()Reference to a submodel defining which permissions can be assigned to the subjects.ReferencegetSelectableSubjectAttributes()Reference to a submodel defining the authenticated subjects that are configured for the AAS.inthashCode()voidsetAccessPermissionRules(java.util.List<AccessPermissionRule> accessPermissionRules)Access permission rules of the AAS describing the rights assigned to (already authenticated) subjects to access elements of the AAS.voidsetDefaultEnvironmentAttributes(Reference defaultEnvironmentAttributes)Reference to a submodel defining default environment attributes, i.e. attributes that are not describing the asset itself.voidsetDefaultPermissions(Reference defaultPermissions)Reference to a submodel defining the default permissions for the AAS.voidsetDefaultSubjectAttributes(Reference defaultSubjectAttributes)Reference to a submodel defining the default subjects attributes for the AAS that can be used to describe access permission rules.voidsetSelectableEnvironmentAttributes(Reference selectableEnvironmentAttributes)Reference to a submodel defining which environment attributes can be accessed via the permission rules.voidsetSelectablePermissions(Reference selectablePermissions)Reference to a submodel defining which permissions can be assigned to the subjects.voidsetSelectableSubjectAttributes(Reference selectableSubjectAttributes)Reference to a submodel defining the authenticated subjects that are configured for the AAS.
-
-
-
Field Detail
-
accessPermissionRules
protected java.util.List<AccessPermissionRule> accessPermissionRules
-
defaultEnvironmentAttributes
protected Reference defaultEnvironmentAttributes
-
defaultPermissions
protected Reference defaultPermissions
-
defaultSubjectAttributes
protected Reference defaultSubjectAttributes
-
selectableEnvironmentAttributes
protected Reference selectableEnvironmentAttributes
-
selectablePermissions
protected Reference selectablePermissions
-
selectableSubjectAttributes
protected Reference selectableSubjectAttributes
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getAccessPermissionRules
public java.util.List<AccessPermissionRule> getAccessPermissionRules()
Description copied from interface:AccessControlAccess permission rules of the AAS describing the rights assigned to (already authenticated) subjects to access elements of the AAS. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule- Specified by:
getAccessPermissionRulesin interfaceAccessControl- Returns:
- Returns the List of AccessPermissionRules for the property accessPermissionRules.
-
setAccessPermissionRules
public void setAccessPermissionRules(java.util.List<AccessPermissionRule> accessPermissionRules)
Description copied from interface:AccessControlAccess permission rules of the AAS describing the rights assigned to (already authenticated) subjects to access elements of the AAS. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule- Specified by:
setAccessPermissionRulesin interfaceAccessControl- Parameters:
accessPermissionRules- desired value for the property accessPermissionRules.
-
getSelectableSubjectAttributes
public Reference getSelectableSubjectAttributes()
Description copied from interface:AccessControlReference to a submodel defining the authenticated subjects that are configured for the AAS. They are selectable by the access permission rules to assign permissions to the subjects. Default: reference to the submodel referenced via defaultSubjectAttributes. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableSubjectAttributes- Specified by:
getSelectableSubjectAttributesin interfaceAccessControl- Returns:
- Returns the Reference for the property selectableSubjectAttributes.
-
setSelectableSubjectAttributes
public void setSelectableSubjectAttributes(Reference selectableSubjectAttributes)
Description copied from interface:AccessControlReference to a submodel defining the authenticated subjects that are configured for the AAS. They are selectable by the access permission rules to assign permissions to the subjects. Default: reference to the submodel referenced via defaultSubjectAttributes. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableSubjectAttributes- Specified by:
setSelectableSubjectAttributesin interfaceAccessControl- Parameters:
selectableSubjectAttributes- desired value for the property selectableSubjectAttributes.
-
getDefaultSubjectAttributes
public Reference getDefaultSubjectAttributes()
Description copied from interface:AccessControlReference to a submodel defining the default subjects attributes for the AAS that can be used to describe access permission rules. The submodel is of kind=Type. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes- Specified by:
getDefaultSubjectAttributesin interfaceAccessControl- Returns:
- Returns the Reference for the property defaultSubjectAttributes.
-
setDefaultSubjectAttributes
public void setDefaultSubjectAttributes(Reference defaultSubjectAttributes)
Description copied from interface:AccessControlReference to a submodel defining the default subjects attributes for the AAS that can be used to describe access permission rules. The submodel is of kind=Type. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes- Specified by:
setDefaultSubjectAttributesin interfaceAccessControl- Parameters:
defaultSubjectAttributes- desired value for the property defaultSubjectAttributes.
-
getSelectablePermissions
public Reference getSelectablePermissions()
Description copied from interface:AccessControlReference to a submodel defining which permissions can be assigned to the subjects. Default: reference to the submodel referenced via defaultPermissions More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions- Specified by:
getSelectablePermissionsin interfaceAccessControl- Returns:
- Returns the Reference for the property selectablePermissions.
-
setSelectablePermissions
public void setSelectablePermissions(Reference selectablePermissions)
Description copied from interface:AccessControlReference to a submodel defining which permissions can be assigned to the subjects. Default: reference to the submodel referenced via defaultPermissions More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions- Specified by:
setSelectablePermissionsin interfaceAccessControl- Parameters:
selectablePermissions- desired value for the property selectablePermissions.
-
getDefaultPermissions
public Reference getDefaultPermissions()
Description copied from interface:AccessControlReference to a submodel defining the default permissions for the AAS. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultPermissions- Specified by:
getDefaultPermissionsin interfaceAccessControl- Returns:
- Returns the Reference for the property defaultPermissions.
-
setDefaultPermissions
public void setDefaultPermissions(Reference defaultPermissions)
Description copied from interface:AccessControlReference to a submodel defining the default permissions for the AAS. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultPermissions- Specified by:
setDefaultPermissionsin interfaceAccessControl- Parameters:
defaultPermissions- desired value for the property defaultPermissions.
-
getSelectableEnvironmentAttributes
public Reference getSelectableEnvironmentAttributes()
Description copied from interface:AccessControlReference to a submodel defining which environment attributes can be accessed via the permission rules. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableEnvironmentAttributes- Specified by:
getSelectableEnvironmentAttributesin interfaceAccessControl- Returns:
- Returns the Reference for the property selectableEnvironmentAttributes.
-
setSelectableEnvironmentAttributes
public void setSelectableEnvironmentAttributes(Reference selectableEnvironmentAttributes)
Description copied from interface:AccessControlReference to a submodel defining which environment attributes can be accessed via the permission rules. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableEnvironmentAttributes- Specified by:
setSelectableEnvironmentAttributesin interfaceAccessControl- Parameters:
selectableEnvironmentAttributes- desired value for the property selectableEnvironmentAttributes.
-
getDefaultEnvironmentAttributes
public Reference getDefaultEnvironmentAttributes()
Description copied from interface:AccessControlReference to a submodel defining default environment attributes, i.e. attributes that are not describing the asset itself. The submodel is of kind=Type. At the same type the values of these environment attributes need to be accessible when evaluating the access permission rules. This is realized as a policy information point. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultEnvironmentAttributes- Specified by:
getDefaultEnvironmentAttributesin interfaceAccessControl- Returns:
- Returns the Reference for the property defaultEnvironmentAttributes.
-
setDefaultEnvironmentAttributes
public void setDefaultEnvironmentAttributes(Reference defaultEnvironmentAttributes)
Description copied from interface:AccessControlReference to a submodel defining default environment attributes, i.e. attributes that are not describing the asset itself. The submodel is of kind=Type. At the same type the values of these environment attributes need to be accessible when evaluating the access permission rules. This is realized as a policy information point. More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultEnvironmentAttributes- Specified by:
setDefaultEnvironmentAttributesin interfaceAccessControl- Parameters:
defaultEnvironmentAttributes- desired value for the property defaultEnvironmentAttributes.
-
-