Class TargetInfoHandler<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation>
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.security.TargetInfoHandler<T>
- Type Parameters:
T- target information type
- Direct Known Subclasses:
AasInfoHandler,SubmodelInfoCreator
abstract class TargetInfoHandler<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation>
extends Object
BaSyX target information creator and handler.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tcreate(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule rule) Creates an instance.getType()Returns the type of information being handled.Returns the name of#getType().abstract TJoins two given target information instances.toPaths(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule rule) Turns a generic rule path to a BaSyx rule path.
-
Field Details
-
cls
-
-
Constructor Details
-
TargetInfoHandler
Creates an instance.- Parameters:
cls- the class being handled/created
-
-
Method Details
-
create
public abstract T create(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule rule) Creates an instance.- Parameters:
rule- the rule to create the instance for- Returns:
- the instance
-
getType
Returns the type of information being handled.- Returns:
- the type
-
join
Joins two given target information instances.- Parameters:
t1- the first target information (to join into)t2- the second target information (to join)- Returns:
- the joined instance, may be
t1if modifiable
-
getTypeName
Returns the name of#getType().- Returns:
- the name
-
toPaths
static final List<String> toPaths(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule rule) Turns a generic rule path to a BaSyx rule path.- Parameters:
rule- the rule, paths may be null- Returns:
- the paths
-