Class OrganizationalPerson
java.lang.Object
org.silverpeas.components.organizationchart.model.OrganizationalPerson
- All Implemented Interfaces:
Comparable<OrganizationalPerson>
-
Constructor Summary
ConstructorsConstructorDescriptionOrganizationalPerson(int id, int parentId, String name, String fonction, String service, String silverpeasAccount) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(OrganizationalPerson other) Compares this person with the specified one by their respective name.booleanintgetId()getName()intinthashCode()booleanbooleanbooleanvoidvoidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetSilverpeasAccount(String silverpeasAccount) voidsetVisibleCategory(PersonCategory visibleCategory) voidsetVisibleCenterRole(OrganizationalRole visibleCenterRole) voidsetVisibleLeftRole(OrganizationalRole visibleLeftRole) voidsetVisibleOnCenter(boolean visibleOnCenter) voidsetVisibleOnLeft(boolean visibleOnLeft) voidsetVisibleOnRight(boolean visibleOnRight) voidsetVisibleRightRole(OrganizationalRole visibleRightRole) toString()
-
Constructor Details
-
OrganizationalPerson
-
-
Method Details
-
toString
-
getService
-
getId
public int getId() -
getParentId
public int getParentId() -
getName
-
getFonction
-
setDetail
-
getDetail
-
isVisibleOnCenter
public boolean isVisibleOnCenter() -
setVisibleOnCenter
public void setVisibleOnCenter(boolean visibleOnCenter) -
isVisibleOnRight
public boolean isVisibleOnRight() -
setVisibleOnRight
public void setVisibleOnRight(boolean visibleOnRight) -
isVisibleOnLeft
public boolean isVisibleOnLeft() -
setVisibleOnLeft
public void setVisibleOnLeft(boolean visibleOnLeft) -
getVisibleCategory
-
setVisibleCategory
-
getVisibleCenterRole
-
setVisibleCenterRole
-
getVisibleRightRole
-
setVisibleRightRole
-
getVisibleLeftRole
-
setVisibleLeftRole
-
setSilverpeasAccount
-
getSilverpeasAccount
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
compareTo
Compares this person with the specified one by their respective name. So, as the name cannot be unique, the method breaks the property(x.compareTo(y)==0) == (x.equals(y))- Specified by:
compareToin interfaceComparable<OrganizationalPerson>- Parameters:
other- the other person.- Returns:
- the comparing between their last names or, if the last names are equal, between their first names.
-
equals
-
hashCode
public int hashCode()
-