Class 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 for SupportedPrincipals 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 field id.
      protected java.lang.String getName()
      Getter for the field name.
      int hashCode()  
      protected void setId​(int id)
      Setter for the field id.
      protected void setName​(java.lang.String name)
      Setter for the field name.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SupportedPrincipals

        protected SupportedPrincipals()
        Default constructor for SupportedPrincipals is necessary for PojoInstantiator of HIBERNATE.
      • SupportedPrincipals

        protected SupportedPrincipals​(java.lang.String name)
        Constructor for SupportedPrincipals.
        Parameters:
        name - a String object.
      • SupportedPrincipals

        protected SupportedPrincipals​(java.lang.Class<? extends java.security.Principal> principal)
        Constructor for SupportedPrincipals.
        Parameters:
        principal - the Principal to support
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getId

        protected int getId()
        Getter for the field id.
        Returns:
        the id
      • setId

        protected void setId​(int id)
        Setter for the field id.
        Parameters:
        id - the id to set
      • getName

        protected java.lang.String getName()
        Getter for the field name.
        Returns:
        the name
      • setName

        protected void setName​(java.lang.String name)
        Setter for the field name.
        Parameters:
        name - the name to set