@Entity
public class PrincipalImplementation
extends java.lang.Object
implements java.security.Principal, java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
PrincipalImplementation()
Default constructor for
PrincipalImplementation is necessary for
PojoInstantiator of HIBERNATE. |
protected |
PrincipalImplementation(java.lang.String name,
java.lang.String type)
Constructor for PrincipalImplementation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
protected int |
getId()
Getter for the field
id. |
java.lang.String |
getName()
Getter for the field
name. |
protected java.util.Set<EdalPermissionImplementation> |
getPermissions()
Getter for the field
permissions. |
java.lang.String |
getType()
Getter for the field
type. |
int |
hashCode() |
protected void |
setId(int id)
Setter for the field
id. |
protected void |
setName(java.lang.String name)
Setter for the field
name. |
protected void |
setPermissions(java.util.Set<EdalPermissionImplementation> permissions)
Setter for the field
permissions. |
protected void |
setType(java.lang.String type)
Setter for the field
type. |
java.security.Principal |
toPrincipal() |
java.lang.String |
toString() |
protected PrincipalImplementation()
PrincipalImplementation is necessary for
PojoInstantiator of HIBERNATE.protected PrincipalImplementation(java.lang.String name,
java.lang.String type)
name - a String object.type - a String object.protected int getId()
id.protected void setId(int id)
id.id - the id to setpublic java.lang.String getName()
name.getName in interface java.security.Principalprotected void setName(java.lang.String name)
name.name - the name to setpublic java.lang.String getType()
type.protected void setType(java.lang.String type)
type.type - the type to setprotected void setPermissions(java.util.Set<EdalPermissionImplementation> permissions)
permissions.permissions - the permissions to setprotected java.util.Set<EdalPermissionImplementation> getPermissions()
permissions.public int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.security.Principalequals in class java.lang.Objectpublic java.security.Principal toPrincipal()
throws EdalException
EdalExceptionpublic java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Object