java.lang.Comparable<DefaultWorkitem>, IValidator, IDataRow, IWorkitem, IWorkitemRendererpublic class Person extends DefaultWorkitem implements IWorkitemRenderer, IValidator, IDataRow
| Constructor | Description |
|---|---|
Person() |
Instantiates a new person.
|
Person(IDataitem dataitem) |
Instantiates a new person.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
calcFractions() |
Calc fractions.
|
java.lang.String |
getAvatar() |
Gets the avatar.
|
double |
getAverageAllokation(org.dmfs.rfc5545.recur.Freq freq) |
Gets the average allokation.
|
ContactDataitem |
getContact(java.lang.String organisationIdentifier) |
Gets the contact.
|
java.util.List<ContactDataitem> |
getContacts() |
Gets the contacts.
|
java.util.Map<java.lang.String,java.lang.String> |
getData() |
Gets the data.
|
PersonDataitem |
getDataitem() |
Gets the dataitem.
|
java.util.Map<Parameter,java.lang.Object> |
getDataRow() |
Gets the data row.
|
java.lang.String |
getDataValue(java.lang.String dataKey) |
Gets the data value.
|
java.lang.String |
getFamilyname() |
Gets the familyname.
|
java.lang.String |
getFirstname() |
Gets the firstname of a person.
|
ContactDataitem |
getFirstPrivateContact() |
Gets the first private contact.
|
java.lang.String |
getFullname() |
Gets the fullname of a person.
|
double |
getFullTimeEquivalent() |
Gets the full time equivalent.
|
java.lang.String |
getNames() |
Gets the names.
|
java.util.Map<java.lang.String,java.util.List<Timeslice>> |
getOrganisationalTimeslices(org.dmfs.rfc5545.recur.Freq freq,
boolean optimize) |
Gets the organisational timeslices.
|
double |
getOrganisationalWorkload() |
Gets the organisational workload of the person.
|
java.lang.String |
getReadableOrganisationalAllocAndWorkload() |
Gets the readable organisational alloc and workload.
|
java.lang.String |
getReadableTeamAllocAndWorkload() |
Gets the readable team alloc and workload.
|
java.util.List<IWorkitem> |
getReferencedItems() |
Gets the referenced items.
|
java.lang.String |
getSecondname() |
Gets the secondname of a person.
|
double |
getTeamFraction() |
Gets the team fraction.
|
java.util.Map<java.lang.String,java.util.List<Timeslice>> |
getTeamTimeslices(org.dmfs.rfc5545.recur.Freq freq) |
Gets the team timeslices.
|
double |
getTeamWorkload() |
Gets the team workload of a person.
|
java.util.Map<java.lang.String,java.util.List<Timeslice>> |
getTimeslices(org.dmfs.rfc5545.recur.Freq freq) |
Gets the timeslices.
|
boolean |
hasContactData() |
Checks for contact data.
|
org.jsoup.nodes.Element |
render(ISynchronizer synchronizer) |
Render method.
|
void |
setAvatar(java.lang.String avatar) |
Sets the image-filename of the avatar from a person.
|
void |
setContacts(java.util.List<ContactDataitem> contacts) |
Sets the contacts.
|
void |
setContacts(PairTableParserElement contactTables) |
Sets the contacts.
|
void |
setData(PairTableParserElement contactTables) |
Sets the data.
|
void |
setFullname(java.lang.String name) |
Sets the fullname of a person.
|
void |
setFullTimeEquivalent(double fte) |
Sets the full time equivalent.
|
void |
setFullTimeEquivalent(java.lang.String fte) |
Sets the full time equivalent of a person in percent. 100% mean 40h/week.
|
void |
setTeamFraction(double fte) |
Sets the team fraction.
|
void |
setTeamFraction(java.lang.String tf) |
Sets the team fraction.
|
boolean |
takesRole(java.lang.String roleIdentifier) |
Checks if person takes a specific role defined by roleIdentifier.
|
java.lang.String |
toString() |
|
java.util.List<ValidationMessage> |
validate() |
Validation method.
|
compareTo, containsId, equals, getCreated, getId, getId, getModified, getStatus, getTitle, getType, getUpdateable, getVersion, hashCode, isSpecialized, removeId, removeId, setCreated, setCreated, setId, setId, setIds, setModified, setModified, setStatus, setTitle, setUpdateable, setVersionpublic Person()
public Person(IDataitem dataitem)
dataitem - the dataitem of the person of class
PersonDataitempublic java.lang.String getFamilyname()
public java.lang.String getNames()
public java.lang.String getAvatar()
public void setAvatar(java.lang.String avatar)
avatar - the new filename for the avatarpublic void setTeamFraction(double fte)
fte - the new team fractionpublic java.util.List<IWorkitem> getReferencedItems()
IWorkitemgetReferencedItems in interface IWorkitemgetReferencedItems in class DefaultWorkitempublic double getOrganisationalWorkload()
public double getTeamWorkload()
public double getTeamFraction()
public void setTeamFraction(java.lang.String tf)
tf - the new team fractionpublic void setFullTimeEquivalent(java.lang.String fte)
fte - the new full time equivalentpublic void setFullTimeEquivalent(double fte)
fte - the new full time equivalentpublic double getFullTimeEquivalent()
public java.lang.String getFirstname()
public java.lang.String getSecondname()
public boolean takesRole(java.lang.String roleIdentifier)
roleIdentifier - the role identifierpublic java.lang.String getFullname()
public void setFullname(java.lang.String name)
name - the new fullnamepublic void setContacts(java.util.List<ContactDataitem> contacts)
contacts - the new contactspublic ContactDataitem getContact(java.lang.String organisationIdentifier)
organisationIdentifier - the organisation identifierpublic ContactDataitem getFirstPrivateContact()
public java.util.List<ContactDataitem> getContacts()
public void setData(PairTableParserElement contactTables)
contactTables - the new datapublic java.util.Map<java.lang.String,java.lang.String> getData()
public void setContacts(PairTableParserElement contactTables)
contactTables - the new contactspublic java.util.Map<java.lang.String,java.util.List<Timeslice>> getTimeslices(org.dmfs.rfc5545.recur.Freq freq)
freq - the freqpublic java.util.Map<java.lang.String,java.util.List<Timeslice>> getOrganisationalTimeslices(org.dmfs.rfc5545.recur.Freq freq, boolean optimize)
freq - the freqoptimize - the optimizepublic java.util.Map<java.lang.String,java.util.List<Timeslice>> getTeamTimeslices(org.dmfs.rfc5545.recur.Freq freq)
freq - the freqpublic void calcFractions()
public boolean hasContactData()
public java.lang.String getReadableTeamAllocAndWorkload()
public java.lang.String getReadableOrganisationalAllocAndWorkload()
public org.jsoup.nodes.Element render(ISynchronizer synchronizer)
IWorkitemRendererrender in interface IWorkitemRenderersynchronizer - the synchronizerpublic double getAverageAllokation(org.dmfs.rfc5545.recur.Freq freq)
freq - the freqpublic PersonDataitem getDataitem()
DefaultWorkitemgetDataitem in class DefaultWorkitempublic java.lang.String getDataValue(java.lang.String dataKey)
dataKey - the data keypublic java.lang.String toString()
toString in class DefaultWorkitempublic java.util.List<ValidationMessage> validate()
IValidatorvalidate in interface IValidatorpublic java.util.Map<Parameter,java.lang.Object> getDataRow()
IDataRowgetDataRow in interface IDataRow