Class Organisation

java.lang.Object
com.persequor.extension.user.Organisation

public class Organisation extends Object
  • Constructor Details

  • Method Details

    • isPartOf

      public boolean isPartOf(Organisation organisation)
    • getId

      public String getId()
    • getName

      public String getName()
    • getPath

      public List<String> getPath()
      Get the hierarchy path of the organisation in the form of an ordered list of organisation IDs e.g. [..., grandparentOrgId, parentOrgId, thisOrgId]
      Returns:
      ordered list of organisation IDs representing the hierarchy path of this organisation
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object