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, saveEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDraftEntity, getDisplayName, getDraftParent, getEntityByUid, getLabel, publishEntity, saveEntity
public Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity
in interface AppService
publishEntity
in class AbstractAppService
RepositoryException
public java.lang.String getAppBaseName()
AppService
getAppBaseName
in interface AppService
public java.lang.String getBaseRelPath(java.lang.String nodeType)
getBaseRelPath
in interface AppService
public java.lang.String getDefaultRelPath(Node entity) throws RepositoryException
AppService
getDefaultRelPath
in interface AppService
RepositoryException
public java.lang.String getDefaultRelPath(Session session, java.lang.String nodeType, java.lang.String id)
AppService
getDefaultRelPath
in interface AppService
session
- TODOpublic java.lang.String getMainNodeType(Node entity)
AppService
getMainNodeType
in interface AppService
public boolean isKnownType(java.lang.String nodeType)
AppService
isKnownType
in interface AppService
public boolean isKnownType(Node entity)
AppService
isKnownType
in interface AppService
public void configureCustomACL(Node node)
configureCustomACL
in interface TrackerService
public 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 TrackerService
RepositoryException
public void configureProject(Node project, java.lang.String title, java.lang.String description, java.lang.String managerId) throws RepositoryException
configureProject
in interface TrackerService
RepositoryException
public 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 TrackerService
RepositoryException
public 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 TrackerService
RepositoryException
public 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 TrackerService
RepositoryException
public void configureVersion(Node version, Node project, java.lang.String id, java.lang.String description, java.util.Calendar releaseDate) throws RepositoryException
configureVersion
in interface TrackerService
RepositoryException
public NodeIterator getMyProjects(Session session, boolean onlyOpenProjects)
getMyProjects
in interface TrackerService
public NodeIterator getMyMilestones(Session session, boolean onlyOpenMilestones)
getMyMilestones
in interface TrackerService
public Node addComment(Node parentIssue, java.lang.String description) throws RepositoryException
addComment
in interface TrackerService
RepositoryException
public boolean updateComment(Node comment, java.lang.String newDescription) throws RepositoryException
updateComment
in interface TrackerService
RepositoryException
public 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 TrackerService
RepositoryException
public Node createComponent(Node project, java.lang.String officeId, java.lang.String title, java.lang.String description) throws RepositoryException
createComponent
in interface TrackerService
RepositoryException
protected long createIssueIdIfNeeded(Node project, Node issue) throws RepositoryException
RepositoryException
public void setActivitiesService(ActivitiesService activitiesService)
Copyright © 2007–2020. All rights reserved.