public class TrackerServiceImpl extends AbstractAppService implements TrackerService
| Constructor and Description |
|---|
TrackerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Node |
addComment(Node parentIssue,
java.lang.String description) |
void |
configureCustomACL(Node node) |
void |
configureIssue(Node issue,
Node project,
Node milestone,
java.lang.String title,
java.lang.String description,
java.util.List<java.lang.String> versionIds,
java.util.List<java.lang.String> componentIds,
int priority,
int importance,
java.lang.String managerId) |
void |
configureItProject(Node itProject,
java.lang.String title,
java.lang.String description,
java.lang.String managerId,
java.lang.String counterpartyGroupId)
No check is done to see if a similar project already exists
|
void |
configureMilestone(Node milestone,
Node project,
Node parentMilestone,
java.lang.String title,
java.lang.String description,
java.lang.String managerId,
java.lang.String defaultAssigneeId,
java.util.Calendar targetDate) |
void |
configureProject(Node project,
java.lang.String title,
java.lang.String description,
java.lang.String managerId) |
void |
configureTask(Node task,
Node project,
Node milestone,
java.lang.String title,
java.lang.String description,
java.lang.String managerId) |
void |
configureVersion(Node version,
Node project,
java.lang.String id,
java.lang.String description,
java.util.Calendar releaseDate) |
Node |
createComponent(Node project,
java.lang.String officeId,
java.lang.String title,
java.lang.String description) |
protected long |
createIssueIdIfNeeded(Node project,
Node issue) |
Node |
createVersion(Node project,
java.lang.String versionId,
java.lang.String description,
java.util.Calendar targetDate,
java.util.Calendar releaseDate) |
java.lang.String |
getAppBaseName()
Returns the current App name
|
java.lang.String |
getBaseRelPath(java.lang.String nodeType) |
java.lang.String |
getDefaultRelPath(Node entity)
Computes the App specific relative path for a known type based on properties
of the passed node
|
java.lang.String |
getDefaultRelPath(Session session,
java.lang.String nodeType,
java.lang.String id)
Computes the App specific relative path for this known node type based on the
passed id
|
java.lang.String |
getMainNodeType(Node entity)
Returns the App specific main type of a node, that can be its primary type or
one of its mixin, typically for the People App.
|
NodeIterator |
getMyMilestones(Session session,
boolean onlyOpenMilestones) |
NodeIterator |
getMyProjects(Session session,
boolean onlyOpenProjects) |
boolean |
isKnownType(Node entity)
Simply checks if the passed entity has a primary or mixin type that is known
and thus can be managed by the this App
|
boolean |
isKnownType(java.lang.String nodeType)
Simply checks if the passed type is known and thus can be managed by the this
App.
|
Node |
publishEntity(Node parent,
java.lang.String nodeType,
Node srcNode,
boolean removeSrcNode) |
void |
setActivitiesService(ActivitiesService activitiesService) |
boolean |
updateComment(Node comment,
java.lang.String newDescription) |
createDraftEntity, getDisplayName, getDraftParent, getEntityByUid, saveEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDraftEntity, getDisplayName, getDraftParent, getEntityByUid, getLabel, publishEntity, saveEntitypublic Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity in interface AppServicepublishEntity in class AbstractAppServiceRepositoryExceptionpublic java.lang.String getAppBaseName()
AppServicegetAppBaseName in interface AppServicepublic java.lang.String getBaseRelPath(java.lang.String nodeType)
getBaseRelPath in interface AppServicepublic java.lang.String getDefaultRelPath(Node entity) throws RepositoryException
AppServicegetDefaultRelPath in interface AppServiceRepositoryExceptionpublic java.lang.String getDefaultRelPath(Session session, java.lang.String nodeType, java.lang.String id)
AppServicegetDefaultRelPath in interface AppServicesession - TODOpublic java.lang.String getMainNodeType(Node entity)
AppServicegetMainNodeType in interface AppServicepublic boolean isKnownType(java.lang.String nodeType)
AppServiceisKnownType in interface AppServicepublic boolean isKnownType(Node entity)
AppServiceisKnownType in interface AppServicepublic void configureCustomACL(Node node)
configureCustomACL in interface TrackerServicepublic void configureItProject(Node itProject, java.lang.String title, java.lang.String description, java.lang.String managerId, java.lang.String counterpartyGroupId) throws RepositoryException
configureItProject in interface TrackerServiceRepositoryExceptionpublic void configureProject(Node project, java.lang.String title, java.lang.String description, java.lang.String managerId) throws RepositoryException
configureProject in interface TrackerServiceRepositoryExceptionpublic void configureTask(Node task, Node project, Node milestone, java.lang.String title, java.lang.String description, java.lang.String managerId) throws RepositoryException
configureTask in interface TrackerServiceRepositoryExceptionpublic void configureIssue(Node issue, Node project, Node milestone, java.lang.String title, java.lang.String description, java.util.List<java.lang.String> versionIds, java.util.List<java.lang.String> componentIds, int priority, int importance, java.lang.String managerId) throws RepositoryException
configureIssue in interface TrackerServiceRepositoryExceptionpublic void configureMilestone(Node milestone, Node project, Node parentMilestone, java.lang.String title, java.lang.String description, java.lang.String managerId, java.lang.String defaultAssigneeId, java.util.Calendar targetDate) throws RepositoryException
configureMilestone in interface TrackerServiceRepositoryExceptionpublic void configureVersion(Node version, Node project, java.lang.String id, java.lang.String description, java.util.Calendar releaseDate) throws RepositoryException
configureVersion in interface TrackerServiceRepositoryExceptionpublic NodeIterator getMyProjects(Session session, boolean onlyOpenProjects)
getMyProjects in interface TrackerServicepublic NodeIterator getMyMilestones(Session session, boolean onlyOpenMilestones)
getMyMilestones in interface TrackerServicepublic Node addComment(Node parentIssue, java.lang.String description) throws RepositoryException
addComment in interface TrackerServiceRepositoryExceptionpublic boolean updateComment(Node comment, java.lang.String newDescription) throws RepositoryException
updateComment in interface TrackerServiceRepositoryExceptionpublic Node createVersion(Node project, java.lang.String versionId, java.lang.String description, java.util.Calendar targetDate, java.util.Calendar releaseDate) throws RepositoryException
createVersion in interface TrackerServiceRepositoryExceptionpublic Node createComponent(Node project, java.lang.String officeId, java.lang.String title, java.lang.String description) throws RepositoryException
createComponent in interface TrackerServiceRepositoryExceptionprotected long createIssueIdIfNeeded(Node project, Node issue) throws RepositoryException
RepositoryExceptionpublic void setActivitiesService(ActivitiesService activitiesService)
Copyright © 2007–2020. All rights reserved.