Class EdalPermission

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Guard
    Direct Known Subclasses:
    EdalPermissionImplementation

    public class EdalPermission
    extends java.security.Permission
    implements java.io.Serializable
    Definition of an EdalPermission. Consists of PrimaryDataEntity ID, PrimaryDataEntitiy Version, ActionClass, ActionMethod (defined for a Principal (principalType/principalName pair).
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Checks if two EDALPermissions are equal.
      java.lang.Class<? extends PrimaryDataEntity> getActionClass()
      Getter for the field actionClass.
      java.lang.reflect.Method getActionMethod()
      Getter for the field actionMethod.
      java.lang.String getActions()
      java.lang.String getPrimaryDataEntityID()
      Getter for the field primaryDataEntityID.
      java.lang.Long getVersion()
      Getter for the field version.
      int hashCode()
      Returns the hash code for this EdalPermission.
      boolean implies​(java.security.Permission permission)
      Check if the permission is implied by this object.
      java.lang.String toString()
      Returns a String Representation of an EdalPermission.
      • Methods inherited from class java.security.Permission

        checkGuard, getName, newPermissionCollection
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EdalPermission

        public EdalPermission​(java.lang.String primaryDataEntityID,
                              java.lang.Long version,
                              java.lang.Class<? extends PrimaryDataEntity> actionClass,
                              java.lang.reflect.Method actionMethod)
        Constructor for EdalPermission with specified parameter.
        Parameters:
        primaryDataEntityID - a String object.
        version - a Long object.
        actionClass - a Class object.
        actionMethod - a Method object.
      • EdalPermission

        public EdalPermission()
        Constructor for EdalPermission.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Checks if two EDALPermissions are equal.
        Specified by:
        equals in class java.security.Permission
      • getPrimaryDataEntityID

        public java.lang.String getPrimaryDataEntityID()
        Getter for the field primaryDataEntityID.
        Returns:
        the primaryDataEntityID.
      • getActionClass

        public java.lang.Class<? extends PrimaryDataEntity> getActionClass()
        Getter for the field actionClass.
        Returns:
        the actionClass.
      • getVersion

        public java.lang.Long getVersion()
        Getter for the field version.
        Returns:
        the version.
      • getActionMethod

        public java.lang.reflect.Method getActionMethod()
        Getter for the field actionMethod.
        Returns:
        the actionMethod
      • getActions

        public java.lang.String getActions()
        Specified by:
        getActions in class java.security.Permission
      • hashCode

        public int hashCode()
        Returns the hash code for this EdalPermission.
        Specified by:
        hashCode in class java.security.Permission
        See Also:
        Permission.hashCode()
      • implies

        public boolean implies​(java.security.Permission permission)
        Check if the permission is implied by this object.
        Specified by:
        implies in class java.security.Permission
      • toString

        public java.lang.String toString()
        Returns a String Representation of an EdalPermission.
        Overrides:
        toString in class java.security.Permission
        See Also:
        Permission.toString()