Class PrincipalImplementation
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PrincipalImplementation
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Principal
@Entity public class PrincipalImplementation extends java.lang.Object implements java.security.Principal, java.io.SerializableClass to persist user principals with HIBERNATE.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrincipalImplementation()Default constructor forPrincipalImplementationis necessary for PojoInstantiator of HIBERNATE.protectedPrincipalImplementation(java.lang.String name, java.lang.String type)Constructor for PrincipalImplementation.
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)protected intgetId()Getter for the fieldid.java.lang.StringgetName()Getter for the fieldname.protected java.util.Set<EdalPermissionImplementation>getPermissions()Getter for the fieldpermissions.java.lang.StringgetType()Getter for the fieldtype.inthashCode()protected voidsetId(int id)Setter for the fieldid.protected voidsetName(java.lang.String name)Setter for the fieldname.protected voidsetPermissions(java.util.Set<EdalPermissionImplementation> permissions)Setter for the fieldpermissions.protected voidsetType(java.lang.String type)Setter for the fieldtype.java.security.PrincipaltoPrincipal()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PrincipalImplementation
protected PrincipalImplementation()
Default constructor forPrincipalImplementationis necessary for PojoInstantiator of HIBERNATE.
-
PrincipalImplementation
protected PrincipalImplementation(java.lang.String name, java.lang.String type)Constructor for PrincipalImplementation.- Parameters:
name- aStringobject.type- aStringobject.
-
-
Method Detail
-
getId
protected int getId()
Getter for the fieldid.- Returns:
- the id
-
setId
protected void setId(int id)
Setter for the fieldid.- Parameters:
id- the id to set
-
getName
public java.lang.String getName()
Getter for the fieldname.- Specified by:
getNamein interfacejava.security.Principal- Returns:
- the name
-
setName
protected void setName(java.lang.String name)
Setter for the fieldname.- Parameters:
name- the name to set
-
getType
public java.lang.String getType()
Getter for the fieldtype.- Returns:
- the type
-
setType
protected void setType(java.lang.String type)
Setter for the fieldtype.- Parameters:
type- the type to set
-
setPermissions
protected void setPermissions(java.util.Set<EdalPermissionImplementation> permissions)
Setter for the fieldpermissions.- Parameters:
permissions- the permissions to set
-
getPermissions
protected java.util.Set<EdalPermissionImplementation> getPermissions()
Getter for the fieldpermissions.- Returns:
- the permissions
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object
-
toPrincipal
public java.security.Principal toPrincipal() throws EdalException- Throws:
EdalException
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
-