Class SupportedPrincipals
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.SupportedPrincipals
-
@Entity public class SupportedPrincipals extends java.lang.Object
Class to persist all supported user principals with HIBERNATE.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SupportedPrincipals()
Default constructor forSupportedPrincipals
is necessary for PojoInstantiator of HIBERNATE.protected
SupportedPrincipals(java.lang.Class<? extends java.security.Principal> principal)
Constructor for SupportedPrincipals.protected
SupportedPrincipals(java.lang.String name)
Constructor for SupportedPrincipals.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
protected int
getId()
Getter for the fieldid
.protected java.lang.String
getName()
Getter for the fieldname
.int
hashCode()
protected void
setId(int id)
Setter for the fieldid
.protected void
setName(java.lang.String name)
Setter for the fieldname
.java.lang.String
toString()
-
-
-
Constructor Detail
-
SupportedPrincipals
protected SupportedPrincipals()
Default constructor forSupportedPrincipals
is necessary for PojoInstantiator of HIBERNATE.
-
SupportedPrincipals
protected SupportedPrincipals(java.lang.String name)
Constructor for SupportedPrincipals.- Parameters:
name
- aString
object.
-
SupportedPrincipals
protected SupportedPrincipals(java.lang.Class<? extends java.security.Principal> principal)
Constructor for SupportedPrincipals.- Parameters:
principal
- thePrincipal
to support
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
protected java.lang.String getName()
Getter for the fieldname
.- Returns:
- the name
-
setName
protected void setName(java.lang.String name)
Setter for the fieldname
.- Parameters:
name
- the name to set
-
-