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
    Modifier and Type
    Field
    Description
    private Class<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract T
    create(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule rule)
    Creates an instance.
    Class<? extends T>
    Returns the type of information being handled.
    Returns the name of #getType().
    abstract T
    join(T t1, T t2)
    Joins two given target information instances.
    (package private) static final List<String>
    toPaths(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule rule)
    Turns a generic rule path to a BaSyx rule path.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cls

      private Class<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation> cls
  • Constructor Details

    • TargetInfoHandler

      TargetInfoHandler(Class<T> cls)
      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

      public Class<? extends T> getType()
      Returns the type of information being handled.
      Returns:
      the type
    • join

      public abstract T join(T t1, T t2)
      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 t1 if modifiable
    • getTypeName

      public String 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