Class EmbeddedCrowdServiceAccount

java.lang.Object
com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdServiceAccount
All Implemented Interfaces:
com.atlassian.crowd.embedded.api.service.ServiceAccount, com.atlassian.user.Entity, com.atlassian.user.User, Serializable, Principal

public class EmbeddedCrowdServiceAccount extends Object implements com.atlassian.crowd.embedded.api.service.ServiceAccount, com.atlassian.user.User
An implementation of both the Atlassian-User User interface and the Crowd ServiceAccount interface, used to bridge the two APIs.

Where the contracts of the two APIs differ, like with equals(Object) behaviour, the Crowd API is followed.

See Also:
  • Constructor Details

    • EmbeddedCrowdServiceAccount

      public EmbeddedCrowdServiceAccount(com.atlassian.crowd.embedded.api.service.ServiceAccount serviceAccount)
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface com.atlassian.crowd.embedded.api.service.ServiceAccount
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface com.atlassian.crowd.embedded.api.service.ServiceAccount
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface com.atlassian.crowd.embedded.api.service.ServiceAccount
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface com.atlassian.crowd.embedded.api.service.ServiceAccount
    • getResourceRestrictions

      public Map<com.atlassian.crowd.embedded.api.service.ResourceType,Set<com.atlassian.crowd.embedded.api.service.Resource>> getResourceRestrictions()
      Specified by:
      getResourceRestrictions in interface com.atlassian.crowd.embedded.api.service.ServiceAccount
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface com.atlassian.user.User
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface com.atlassian.user.User
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface com.atlassian.user.User
    • isServiceAccount

      public boolean isServiceAccount()
      Specified by:
      isServiceAccount in interface com.atlassian.user.User
    • getName

      public String getName()
      Specified by:
      getName in interface com.atlassian.user.Entity
      Specified by:
      getName in interface Principal
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class Object