Class PerunPrincipal

java.lang.Object
cz.metacentrum.perun.core.api.PerunPrincipal

public class PerunPrincipal extends Object
Identification of the acting person.
Author:
Martin Kuba
  • Constructor Details

    • PerunPrincipal

      public PerunPrincipal(String actor, String extSourceName, String extSourceType)
      Creates a new instance for a given string.
      Parameters:
      actor - string identifying the user in Grouper
      Throws:
      InternalErrorException - actor is null
    • PerunPrincipal

      public PerunPrincipal(String actor, String extSourceName, String extSourceType, User user)
    • PerunPrincipal

      public PerunPrincipal(String actor, String extSourceName, String extSourceType, int extSourceLoa)
    • PerunPrincipal

      public PerunPrincipal(String actor, String extSourceName, String extSourceType, int extSourceLoa, Map<String,String> additionalInformations)
  • Method Details

    • getActor

      public String getActor()
      Returns actor string representation.
      Returns:
      string representing actor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getExtSourceName

      public String getExtSourceName()
    • setExtSourceName

      public void setExtSourceName(String extSourceName)
    • isAuthzInitialized

      public boolean isAuthzInitialized()
    • setAuthzInitialized

      public void setAuthzInitialized(boolean authzInitialized)
    • getUser

      public User getUser()
    • setUser

      public void setUser(User user)
    • getUserId

      public int getUserId()
    • getRoles

      public AuthzRoles getRoles()
    • setRoles

      public void setRoles(AuthzRoles authzRoles)
    • getAdditionalInformations

      public Map<String,String> getAdditionalInformations()
    • setAdditionalInformations

      public void setAdditionalInformations(Map<String,String> additionalInformations)
    • getExtSourceType

      public String getExtSourceType()
    • setExtSourceType

      public void setExtSourceType(String extSourceType)
    • getExtSourceLoa

      public int getExtSourceLoa()
    • setExtSourceLoa

      public void setExtSourceLoa(int extSourceLoa)
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object