Class EdalPermission
- java.lang.Object
-
- java.security.Permission
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.security.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 anEdalPermission
. Consists of PrimaryDataEntity ID, PrimaryDataEntitiy Version, ActionClass, ActionMethod (defined for a Principal (principalType/principalName pair).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EdalPermission()
Constructor forEdalPermission
.EdalPermission(java.lang.String primaryDataEntityID, java.lang.Long version, java.lang.Class<? extends PrimaryDataEntity> actionClass, java.lang.reflect.Method actionMethod)
Constructor forEdalPermission
with specified parameter.
-
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 fieldactionClass
.java.lang.reflect.Method
getActionMethod()
Getter for the fieldactionMethod
.java.lang.String
getActions()
java.lang.String
getPrimaryDataEntityID()
Getter for the fieldprimaryDataEntityID
.java.lang.Long
getVersion()
Getter for the fieldversion
.int
hashCode()
Returns the hash code for thisEdalPermission
.boolean
implies(java.security.Permission permission)
Check if the permission is implied by this object.java.lang.String
toString()
Returns aString
Representation of anEdalPermission
.
-
-
-
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 forEdalPermission
with specified parameter.- Parameters:
primaryDataEntityID
- aString
object.version
- aLong
object.actionClass
- aClass
object.actionMethod
- aMethod
object.
-
EdalPermission
public EdalPermission()
Constructor forEdalPermission
.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Checks if two EDALPermissions are equal.- Specified by:
equals
in classjava.security.Permission
-
getPrimaryDataEntityID
public java.lang.String getPrimaryDataEntityID()
Getter for the fieldprimaryDataEntityID
.- Returns:
- the primaryDataEntityID.
-
getActionClass
public java.lang.Class<? extends PrimaryDataEntity> getActionClass()
Getter for the fieldactionClass
.- Returns:
- the actionClass.
-
getVersion
public java.lang.Long getVersion()
Getter for the fieldversion
.- Returns:
- the version.
-
getActionMethod
public java.lang.reflect.Method getActionMethod()
Getter for the fieldactionMethod
.- Returns:
- the actionMethod
-
getActions
public java.lang.String getActions()
- Specified by:
getActions
in classjava.security.Permission
-
hashCode
public int hashCode()
Returns the hash code for thisEdalPermission
.- Specified by:
hashCode
in classjava.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 classjava.security.Permission
-
toString
public java.lang.String toString()
Returns aString
Representation of anEdalPermission
.- Overrides:
toString
in classjava.security.Permission
- See Also:
Permission.toString()
-
-