Class EdalPermissionImplementation
- java.lang.Object
-
- java.security.Permission
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalPermission
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.EdalPermissionImplementation
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Guard
@Entity public class EdalPermissionImplementation extends EdalPermission
Implementation ofEdalPermission
for persist with HIBERNATE- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EdalPermissionImplementation()
Default constructor forEdalPermissionImplementation
is necessary for PojoInstantiator of HIBERNATE.protected
EdalPermissionImplementation(PrincipalImplementation principal, java.lang.String primaryDataEntityID, java.lang.Long version, GrantableMethods.EdalClasses actionClass, GrantableMethods.Methods actionMethod)
Constructor for EdalPermissionImplementation.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Checks if two EDALPermissions are equal.protected int
getId()
Getter for the fieldid
.protected PrincipalImplementation
getPrincipal()
Getter for the fieldprincipal
.int
hashCode()
Returns the hash code for thisEdalPermission
.protected void
setId(int id)
Setter for the fieldid
.protected EdalPermission
toEdalPermission()
Convert the privateEdalPermissionImplementation
into an publicEdalPermission
object.java.lang.String
toString()
Returns aString
Representation of anEdalPermission
.-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalPermission
getActionClass, getActionMethod, getActions, getPrimaryDataEntityID, getVersion, implies
-
-
-
-
Constructor Detail
-
EdalPermissionImplementation
protected EdalPermissionImplementation()
Default constructor forEdalPermissionImplementation
is necessary for PojoInstantiator of HIBERNATE.
-
EdalPermissionImplementation
protected EdalPermissionImplementation(PrincipalImplementation principal, java.lang.String primaryDataEntityID, java.lang.Long version, GrantableMethods.EdalClasses actionClass, GrantableMethods.Methods actionMethod)
Constructor for EdalPermissionImplementation.- Parameters:
principal
- aPrincipalImplementation
object.primaryDataEntityID
- aString
object.version
- aLong
object.actionClass
- aGrantableMethods.EdalClasses
object.actionMethod
- aGrantableMethods.Methods
object.
-
-
Method Detail
-
toEdalPermission
protected EdalPermission toEdalPermission()
Convert the privateEdalPermissionImplementation
into an publicEdalPermission
object.- Returns:
- EDALPermission
-
equals
public boolean equals(java.lang.Object obj)
Checks if two EDALPermissions are equal.- Overrides:
equals
in classEdalPermission
-
getId
protected int getId()
Getter for the fieldid
.Value for id is generated by HIBERNATE
- Returns:
- the id
-
getPrincipal
protected PrincipalImplementation getPrincipal()
Getter for the fieldprincipal
.- Returns:
- the principal
-
hashCode
public int hashCode()
Returns the hash code for thisEdalPermission
.- Overrides:
hashCode
in classEdalPermission
- See Also:
Permission.hashCode()
-
setId
protected void setId(int id)
Setter for the fieldid
.- Parameters:
id
- the id to set
-
toString
public java.lang.String toString()
Returns aString
Representation of anEdalPermission
.- Overrides:
toString
in classEdalPermission
- See Also:
Permission.toString()
-
-