Package com.polarion.alm.tracker
Interface ITimePointsManager
public interface ITimePointsManager
-
Method Summary
Modifier and TypeMethodDescriptioncreateTimePoint
(IContextId contextId, String id, DateOnly date) Creates time point in given context.deleteTimePoint
(ITimePoint timePoint) Deletes a timepoint.getClosedTimePoints
(IContextId contextId, String sort, boolean traverseDown) Returns all closed time points applicable to given context.getClosedTimePoints
(String projectid) Deprecated.getNearestTimePoint
(IContextId contextId, boolean traverseDown) Returns nearest time point applicable to given context.getNearestTimePoint
(String projectid) Deprecated.getNotClosedTimePoints
(IContextId contextId, String sort, boolean traverseDown) Returns all not closed time points applicable to given context.getNotClosedTimePoints
(String projectid) Deprecated.getTimePoint
(IContextId contextId, String id, boolean traverseUp) Returns time point with given id.getTimePoints
(IContextId contextId, String sort, boolean traverseDown) Returns all time points applicable to given context.getTimePoints
(IContextId contextId, String query, String sort, boolean traverseUp, boolean traverseDown, boolean omitDuplicates) Searches for time points (all-purpose method).getTimePoints
(String projectid) Deprecated.getWorkItemsFromTimepoint
(ITimePoint timePoint)
-
Method Details
-
createTimePoint
Creates time point in given context.- Parameters:
contextId
- context idid
- time point iddate
- time point date- Returns:
- created (but not yet persisted) time point
- Since:
- 3.4.0
-
getTimePoint
Returns time point with given id.- Parameters:
contextId
- context idid
- time point idtraverseUp
- whether to traverse up in context hierarchy if not found in current context- Returns:
- time point (not
null
, but can be unresolvable) - Since:
- 3.4.0
-
getTimePoints
IPObjectList getTimePoints(IContextId contextId, String query, String sort, boolean traverseUp, boolean traverseDown, boolean omitDuplicates) Searches for time points (all-purpose method).- Parameters:
contextId
- context id to start search atquery
- query (can benull
)sort
- the format is same as forIIndexSearch.sort(String)
traverseUp
-true
if all parent contexts of given context should be searched intraverseDown
-true
if all child contexts of given context should be searched inomitDuplicates
-true
if duplicates should be omitted (children have precedence over parents) - note that duplicates in different branches of the context tree are not omitted- Returns:
ITimePoint
s (notnull
)- Since:
- 3.4.0
-
getTimePoints
Deprecated.Gets all timepoints for a project.- Parameters:
projectid
- the id of the project to get the timepoints for- Returns:
- a
List
containing theITimePoint
s
-
getTimePoints
Returns all time points applicable to given context.Traverses both up and down in the hierarchy (if selected) and omits duplicates.
- Parameters:
contextId
-sort
- the format is same as forIIndexSearch.sort(String)
traverseDown
-true
if all child contexts of given context should be searched in- Returns:
ITimePoint
s (notnull
)- Since:
- 3.4.0
-
getNotClosedTimePoints
Deprecated.Gets all timepoints, that are not closed for a project.- Parameters:
projectid
- the id of the project to get the timepoints for- Returns:
- a
List
containing theITimePoint
s that are not closed
-
getNotClosedTimePoints
Returns all not closed time points applicable to given context.Traverses both up and down in the hierarchy (if selected) and omits duplicates.
- Parameters:
contextId
-sort
- the format is same as forIIndexSearch.sort(String)
traverseDown
-true
if all child contexts of given context should be searched in- Returns:
ITimePoint
s (notnull
)- Since:
- 3.4.0
-
getClosedTimePoints
Deprecated.Gets all timepoints, that are closed for a project.- Parameters:
projectid
- the id of the project to get the timepoints for- Returns:
- a
List
containing theITimePoint
s that are closed
-
getClosedTimePoints
Returns all closed time points applicable to given context.Traverses both up and down in the hierarchy (if selected) and omits duplicates.
- Parameters:
contextId
-sort
- the format is same as forIIndexSearch.sort(String)
traverseDown
-true
if all child contexts of given context should be searched in- Returns:
ITimePoint
s (notnull
)- Since:
- 3.4.0
-
getWorkItemsFromTimepoint
-
deleteTimePoint
Deletes a timepoint.- Parameters:
timePoint
- the timepoint to delete.- Returns:
null
if operation succeeds or cause of failure if deleting it is not possible (timepoint is used by a work item)
-
getNearestTimePoint
Deprecated.Gets the nearest timepoint for a project.- Parameters:
projectid
- the id of the project to get the timepoint for- Returns:
- the nearest
ITimePoint
for the project
-
getNearestTimePoint
Returns nearest time point applicable to given context.Traverses both up and down in the hierarchy (if selected).
- Parameters:
contextId
- context idtraverseDown
-true
if all child contexts of given context should be searched in- Returns:
- time point or
null
if none found - Since:
- 3.4.0
-
getClosedTimePoints(IContextId, String, boolean)