public final class Repository
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
void |
addActivityItems(java.util.List<Activity> workitems) |
Adds the activity items.
|
void |
addOrphanedRoleCompetenciesToRootCompetence() |
Adds the orphaned role competencies to root competence.
|
void |
addReport(IReport report) |
Adds the report to repository.
|
void |
addReports() |
Adds the reports in repository to all available synchronizers (through
Connector). |
void |
addReports(java.util.List<IReport> reports) |
Adds the list of reports to repository.
|
void |
addRoleItem(Role workitem) |
Adds the role item.
|
void |
addRoleItems(java.util.List<Role> workitems) |
Adds the role items.
|
void |
addSynchronizer(ISynchronizer synchronizer) |
Adds a synchronizer to the Connector.
|
java.util.List<SynchronizerResult> |
addWorkitem(IWorkitem workitem) |
Adds the workitem.
|
java.util.List<Role> |
findRolesWithCompetence(java.lang.String competence) |
Find roles with competence.
|
IWorkitem |
get(java.lang.String id) |
Gets the.
|
java.util.List<Activity> |
getActivities() |
Gets the activities.
|
java.util.List<Activity> |
getActivities(java.lang.String roleIdentifier) |
Gets the activities.
|
Activity |
getActivity(java.lang.String identifier) |
Gets the activity with given identifier.
|
Activity |
getActivityWithSubactivity(java.lang.String identifier) |
Gets the activity with subactivity.
|
double |
getAverageAllokationInOrganisation(java.lang.String personIdentifier,
org.dmfs.rfc5545.recur.Freq freq) |
Gets the average allocation in organisation.
|
double |
getAverageAllokationInTeams(Person person,
org.dmfs.rfc5545.recur.Freq freq) |
Gets the average allocation of a person in teams.
|
java.util.List<Competence> |
getCompetenceChildren(java.lang.String competence) |
Gets the competence children of the named parent competence.
|
java.util.Map<java.lang.String,java.util.List<Role>> |
getCompetencesFromRoles() |
Gets the competences from roles.
|
java.util.List<Competence> |
getCompetencies() |
Gets the competencies.
|
java.util.List<java.lang.String> |
getCompetenciesOfPerson(Person person) |
Gets the competencies of person.
|
Connector |
getConnector() |
Gets the connector of the repository.
|
HowTo |
getHowTo(java.lang.String identifier) |
Gets the how to of given identifier.
|
java.util.List<HowTo> |
getIndexHowTos() |
Gets the index how tos.
|
java.util.List<Report> |
getIndexReports() |
Gets the index reports.
|
static Repository |
getInstance() |
Gets the single instance of Repository.
|
Team |
getNextTeam(int hour,
java.lang.String day,
java.lang.String category) |
Gets the next team.
|
java.util.ArrayList<Role> |
getOrganisationalRolesWithPerson(java.lang.String person) |
Gets the organisational (not team) roles with are taken by person.
|
java.util.ArrayList<Role> |
getOrganisationalRolesWithPerson(Person person) |
Gets the organisational roles with person.
|
java.util.List<Role> |
getParentRoles(Role role) |
Gets the parent roles.
|
void |
getParentRoles(Role role,
java.util.List<Role> parents) |
Gets the parent roles.
|
Person |
getPerson(java.lang.String identifier) |
Gets the person with given identifier.
|
java.util.List<java.lang.String> |
getPersonDataValues(java.lang.String key) |
Gets the person data values.
|
java.util.List<Person> |
getPersons() |
Gets the persons.
|
java.util.List<Person> |
getPersonsWithAvatar() |
Gets the persons with avatar.
|
Report |
getReport(java.lang.String identifier) |
Gets the report with given identifier.
|
java.util.List<IReport> |
getReports() |
Gets the available reports.
|
Role |
getRole(java.lang.String identifier) |
Gets the role by role-identifier.
|
WorkitemBreakdownElement |
getRoleBreakdownStructure(ISynchronizer synchronizer) |
Gets the role breakdown structure.
|
java.util.List<Role> |
getRoleChildren(java.lang.String roleIdentifier) |
Gets the role children of a role.
|
java.util.List<Role> |
getRoleChildren(java.lang.String roleIdentifier,
java.util.Comparator<Role> comparator) |
Gets the role children of named role parent.
|
Rolegroup |
getRolegroup(java.lang.String identifier) |
Gets the rolegroup with given identifier.
|
java.util.List<Rolegroup> |
getRolegroupChildren(java.lang.String rolegroupIdentifier) |
Gets the rolegroup children.
|
java.util.List<Rolegroup> |
getRolegroups() |
Gets the rolegroups.
|
java.util.List<Rolegroup> |
getRolegroups(WorkitemStatusParameter status) |
Gets the rolegroups with defined WorkitemStatusParameter.
|
java.util.List<java.lang.String> |
getRoleIdentifiers(java.lang.String rolegroupIdentifier) |
Gets the role identifiers.
|
java.util.List<java.lang.String> |
getRoleNames() |
Gets the names of all roles.
|
java.util.List<Role> |
getRoles() |
Gets the roles.
|
java.util.List<Role> |
getRoles(java.lang.String rolegroupIdentifier) |
Gets the roles.
|
java.util.List<Role> |
getRoles(java.util.List<java.lang.String> roleIdentifiers) |
Gets the roles of a list of identifiers.
|
java.util.List<Role> |
getRoles(WorkitemStatusParameter status) |
Gets the roles by a status.
|
WorkitemBreakdownElement |
getRolesByRolegroupStructure(ISynchronizer synchronizer) |
Gets the role rolegroup structure.
|
java.util.List<Role> |
getRolesWithCompetence(Person person,
java.lang.String competence) |
Gets the roles with competence.
|
java.util.ArrayList<Role> |
getRolesWithPerson(Person person) |
Gets the roles with person.
|
java.util.List<Role> |
getRolesWithPersonRepresentation(WorkitemStatusParameter statusParameter) |
Gets the roles with person representation.
|
Competence |
getRootCompetence() |
Gets the root competence.
|
java.util.List<Rolegroup> |
getRootRolegroups() |
Gets the root rolegroups.
|
java.util.List<Role> |
getRootRoles() |
Gets the root roles.
|
java.util.List<Role> |
getRootRoles(java.util.Comparator<Role> comparator) |
Gets the root roles.
|
int |
getSkillOfPersonCompetence(Person person,
java.lang.String competence) |
Gets the skill of person competence.
|
java.util.TreeMap<Activity,java.util.List<ActivityDataitem>> |
getSubactivitiesWithResponsible(java.lang.String roleTitle) |
Gets the subactivities with responsible role.
|
Team |
getTeam(int hour,
java.lang.String day) |
|
Team |
getTeam(int hour,
java.lang.String day,
java.lang.String category) |
Gets the team if it has a periodically reccurence pattern and a set hour and
weekday.
|
Team |
getTeam(java.lang.String identifier) |
Gets the team with given identifier.
|
java.util.List<java.lang.String> |
getTeamPersonsWithRole(Role role) |
Gets the team persons with role.
|
java.util.ArrayList<Role> |
getTeamRolesWithPerson(Person person) |
Gets the team roles.
|
java.util.List<Team> |
getTeams() |
Gets the teams.
|
java.util.List<Team> |
getTeams(java.util.List<java.lang.String> personIdentifiers,
java.lang.String teamCategory) |
Get all the teams with a named category where at least one person of the
personList exists.
|
java.util.List<java.lang.String> |
getTeamsNotinweek(java.lang.String category) |
Gets the teams which are not found in week.
|
java.util.List<Team> |
getTeamsWithCategory(java.lang.String category) |
Gets the teams with category.
|
java.util.List<Team> |
getTeamsWithLowRedundance() |
Gets the teams with low redundance.
|
java.util.List<Team> |
getTeamsWithMember(Person person) |
Gets the teams with the person in team.
|
java.util.List<Team> |
getTeamsWithMember(Person person,
java.util.List<Team> teamList) |
Find all teams which have named person in team of given team-list.
|
java.util.List<Team> |
getTeamsWithRole(java.lang.String roleIdentifier) |
Gets the teams with role.
|
java.util.List<Team> |
getTeamsWithRole(Role role) |
Gets the teams with role in team.
|
java.util.List<Team> |
getTeamsWithSize(int size) |
Gets the teams with size.
|
java.util.List<IWorkitem> |
getWorkitems() |
Gets the list of workitems in repository.
|
boolean |
hasUniqueRoleAbbreviation(Role r) |
Checks for unique role abbreviation.
|
boolean |
hasUniqueRoleTitle(Role r) |
Checks for unique role title.
|
boolean |
isPersonDataValueEntity(java.lang.String key,
java.lang.String value) |
Checks if is person data value entity.
|
boolean |
isRoleName(java.lang.String roleName) |
Checks if identifier-string is rolename.
|
java.util.List<Activity> |
loadActivities() |
Load activities from synchronized system with Connector.
|
java.util.List<Competence> |
loadCompetencies() |
Load competencies.
|
void |
loadIndexHowTos() |
Load index how tos.
|
void |
loadIndexReports() |
Load index reports.
|
java.util.List<Person> |
loadPersons() |
Load persons from synchronized system with Connector.
|
java.util.List<Rolegroup> |
loadRolegroups() |
Load rolegroup-workitems from synchronized system with Connector.
|
java.util.List<Role> |
loadRoles() |
Load role-workitems from synchronized system with Connector.
|
java.util.List<Team> |
loadTeams() |
Load team-workitems from synchronized system with Connector.
|
java.util.List<SynchronizerResult> |
updateReports() |
Update reports through
Connector for every
ISynchronizer. |
java.util.List<SynchronizerResult> |
updateWorkitems() |
Update workitems.
|
java.util.List<ValidationMessage> |
validate() |
Validate all instances of IValidator.
|
void |
writeExcel(java.lang.String filename,
WorkitemType type,
java.util.List<Parameter> fields) |
Write excel.
|
void |
writeIndex() |
Write index of workitems and report through connector for every synchronizer
if it is set in synchronizer.
|
public static Repository getInstance()
public Team getNextTeam(int hour, java.lang.String day, java.lang.String category)
hour - the hourday - the dayday - the daypublic Team getTeam(int hour, java.lang.String day)
public Team getTeam(int hour, java.lang.String day, java.lang.String category)
hour - the hour must be value between 0 and 23day - the day must be a string value in german weekdays, i.e. "Montag"public java.util.List<Role> getRoles(WorkitemStatusParameter status)
status - the status of the role as enum WorkitemStatusParameterpublic java.util.List<Team> getTeams(java.util.List<java.lang.String> personIdentifiers, java.lang.String teamCategory)
personIdentifiers - the list of personIdentifiersteamCategory - the team categorypublic java.util.List<Rolegroup> getRolegroups(WorkitemStatusParameter status)
status - the status of workitemspublic boolean isRoleName(java.lang.String roleName)
roleName - the name (identifier) to checkpublic java.util.TreeMap<Activity,java.util.List<ActivityDataitem>> getSubactivitiesWithResponsible(java.lang.String roleTitle)
roleTitle - the role titlepublic WorkitemBreakdownElement getRolesByRolegroupStructure(ISynchronizer synchronizer)
synchronizer - the synchronizerpublic java.util.List<Team> getTeamsWithSize(int size)
size - the sizepublic java.util.List<java.lang.String> getTeamsNotinweek(java.lang.String category)
category - the categorypublic java.util.List<Team> getTeamsWithLowRedundance()
public java.util.List<Role> getRolesWithPersonRepresentation(WorkitemStatusParameter statusParameter)
statusParameter - the status parameterpublic WorkitemBreakdownElement getRoleBreakdownStructure(ISynchronizer synchronizer)
synchronizer - the synchronizerpublic java.util.List<Role> getRolesWithCompetence(Person person, java.lang.String competence)
person - the personcompetence - the competencepublic int getSkillOfPersonCompetence(Person person, java.lang.String competence)
person - the personcompetence - the competencepublic java.util.List<Role> getParentRoles(Role role)
role - the rolepublic void getParentRoles(Role role, java.util.List<Role> parents)
role - the roleparents - the parentspublic java.util.List<java.lang.String> getCompetenciesOfPerson(Person person)
person - the personpublic java.util.List<java.lang.String> getRoleNames()
public void addOrphanedRoleCompetenciesToRootCompetence()
public void addSynchronizer(ISynchronizer synchronizer)
synchronizer - the synchronizerpublic java.util.List<IWorkitem> getWorkitems()
public void addRoleItems(java.util.List<Role> workitems)
workitems - the workitemspublic void addRoleItem(Role workitem)
workitem - the workitempublic void addActivityItems(java.util.List<Activity> workitems)
workitems - the workitemspublic Connector getConnector()
public java.util.List<Rolegroup> loadRolegroups()
public java.util.List<Role> loadRoles()
public java.util.List<Competence> loadCompetencies()
public java.util.List<Team> loadTeams()
public java.util.List<Activity> loadActivities()
public java.util.List<Person> loadPersons()
public java.util.List<HowTo> getIndexHowTos()
public void writeExcel(java.lang.String filename,
WorkitemType type,
java.util.List<Parameter> fields)
filename - the filenametype - the typefields - the fieldspublic java.util.List<Report> getIndexReports()
public void loadIndexReports()
public void loadIndexHowTos()
public IWorkitem get(java.lang.String id)
id - the idpublic java.util.List<Rolegroup> getRolegroups()
public boolean isPersonDataValueEntity(java.lang.String key,
java.lang.String value)
key - the keyvalue - the valuepublic java.util.List<java.lang.String> getPersonDataValues(java.lang.String key)
key - the keypublic java.util.List<Team> getTeamsWithCategory(java.lang.String category)
category - the categorypublic java.util.List<Team> getTeams()
public java.util.List<Person> getPersonsWithAvatar()
public java.util.List<Person> getPersons()
public java.util.List<Activity> getActivities()
public java.util.List<Competence> getCompetencies()
public java.util.List<Role> getRoles()
public Person getPerson(java.lang.String identifier)
identifier - the identifierpublic java.util.List<SynchronizerResult> addWorkitem(IWorkitem workitem)
workitem - the workitempublic java.util.List<SynchronizerResult> updateWorkitems()
public java.util.List<Role> getRoles(java.lang.String rolegroupIdentifier)
rolegroupIdentifier - the rolegroup identifierpublic double getAverageAllokationInTeams(Person person, org.dmfs.rfc5545.recur.Freq freq)
person - the person for which the allocation is calculatedfreq - the frequence (@link org.dmfs.rfc5545.recur.Freq) which is used
to calculate the allocation.public double getAverageAllokationInOrganisation(java.lang.String personIdentifier,
org.dmfs.rfc5545.recur.Freq freq)
personIdentifier - the person identifier for which the allocation in the
organisation is calculatedfreq - the frequence (@link org.dmfs.rfc5545.recur.Freq)
which is used to calculate the allocationpublic java.util.List<Activity> getActivities(java.lang.String roleIdentifier)
roleIdentifier - the responsible role identifierpublic java.util.List<java.lang.String> getRoleIdentifiers(java.lang.String rolegroupIdentifier)
rolegroupIdentifier - the rolegroup identifierpublic Rolegroup getRolegroup(java.lang.String identifier)
identifier - the identifier of the rolegrouppublic boolean hasUniqueRoleAbbreviation(Role r)
r - the role which is checked for unique abbreviationpublic boolean hasUniqueRoleTitle(Role r)
r - the role which is checked for unique titlepublic java.util.List<Role> getRoles(java.util.List<java.lang.String> roleIdentifiers)
roleIdentifiers - the role identifiers listpublic Role getRole(java.lang.String identifier)
identifier - the identifier of the role. Could be id, abbreviation,
title or synonympublic java.util.List<java.lang.String> getTeamPersonsWithRole(Role role)
role - the rolepublic java.util.List<Team> getTeamsWithRole(Role role)
role - the role which should be in teampublic java.util.List<Team> getTeamsWithRole(java.lang.String roleIdentifier)
roleIdentifier - the role identifierpublic java.util.List<Team> getTeamsWithMember(Person person, java.util.List<Team> teamList)
person - the person which should be in teamteamList - the team list which should be queriedpublic java.util.ArrayList<Role> getRolesWithPerson(Person person)
person - the personpublic java.util.ArrayList<Role> getTeamRolesWithPerson(Person person)
person - the personpublic java.util.List<Team> getTeamsWithMember(Person person)
person - the person which should be in the teampublic Team getTeam(java.lang.String identifier)
identifier - the identifier of a teampublic Activity getActivityWithSubactivity(java.lang.String identifier)
identifier - the identifierpublic Activity getActivity(java.lang.String identifier)
identifier - the identifier of an activitypublic Report getReport(java.lang.String identifier)
identifier - the identifier of a reportpublic HowTo getHowTo(java.lang.String identifier)
identifier - the identifier of an howtopublic Competence getRootCompetence()
public java.util.List<Rolegroup> getRootRolegroups()
public java.util.List<Role> getRootRoles()
public java.util.List<Role> getRootRoles(java.util.Comparator<Role> comparator)
comparator - the comparatorpublic java.util.Map<java.lang.String,java.util.List<Role>> getCompetencesFromRoles()
public java.util.List<Role> findRolesWithCompetence(java.lang.String competence)
competence - the competencepublic java.util.List<Role> getRoleChildren(java.lang.String roleIdentifier)
roleIdentifier - the role identifier of the parent rolepublic java.util.List<Role> getRoleChildren(java.lang.String roleIdentifier, java.util.Comparator<Role> comparator)
ComparatorsroleIdentifier - the parent role identifiercomparator - the comparator to sort roles. If null the sorting is
skippedpublic void addReports()
Connector).public void writeIndex()
public java.util.List<SynchronizerResult> updateReports()
Connector for every
ISynchronizer.SynchronizerResultspublic void addReport(IReport report)
report - the reportpublic void addReports(java.util.List<IReport> reports)
reports - the list of reportspublic java.util.List<IReport> getReports()
public java.util.List<Competence> getCompetenceChildren(java.lang.String competence)
competence - the identifier of a parent competencepublic java.util.List<Rolegroup> getRolegroupChildren(java.lang.String rolegroupIdentifier)
rolegroupIdentifier - the rolegroup identifierpublic java.util.List<ValidationMessage> validate()
public java.util.ArrayList<Role> getOrganisationalRolesWithPerson(Person person)
person - the personpublic java.util.ArrayList<Role> getOrganisationalRolesWithPerson(java.lang.String person)
person - the personIdentifier which should be identify taken roles