Interface StatusesServiceLocal
public interface StatusesServiceLocal
Local interface for the Statuses service from the Planner API
-
Method Summary
Modifier and TypeMethodDescriptionaddStatuses(List<Status> statuses) Adds new statusesaddStatusesToStatusGroup(String statusGroupID, List<Status> statuses) Adds new statuses to the specified status groupbooleandeleteStatus(String id) Deletes the status at the specified IDReturns the status at the specified IDgetStatuses(String type) Returns statuses at the specified typegetStatusesByStatusGroupID(String statusGroupID, String statusType) Returns statuses from the specified status group and status typeModifies an existing status (by status ID)setStatuses(List<Status> statuses) Modifies existing statusessetStatusesForStatusGroup(String statusGroupID, List<Status> statuses) Assigns statuses to the specified status group
-
Method Details
-
getStatuses
Returns statuses at the specified type- Parameters:
type- type of the status- Returns:
- the list of statuses
- Throws:
PubServerException- See Also:
-
getStatus
Returns the status at the specified ID- Parameters:
id- status ID- Returns:
- the status
- Throws:
PubServerExceptionNumberFormatException- See Also:
-
setStatus
Modifies an existing status (by status ID)- Parameters:
status- the status to update- Returns:
- the status
- Throws:
PubServerException- See Also:
-
setStatuses
Modifies existing statuses- Parameters:
statuses- the list of statuses- Returns:
- the list of processed status
- Throws:
PubServerException- See Also:
-
addStatuses
Adds new statuses- Parameters:
statuses- the list of new statuses to create- Returns:
- the list of processed status
- Throws:
PubServerException- See Also:
-
deleteStatus
Deletes the status at the specified ID- Parameters:
id- status ID- Returns:
- true if success
- Throws:
PubServerException
-
getStatusesByStatusGroupID
List<Status> getStatusesByStatusGroupID(String statusGroupID, String statusType) throws PubServerException Returns statuses from the specified status group and status type- Parameters:
statusGroupID- status group IDstatusType- status type- Returns:
- the list of statuses
- Throws:
PubServerException- See Also:
-
setStatusesForStatusGroup
List<Status> setStatusesForStatusGroup(String statusGroupID, List<Status> statuses) throws PubServerException Assigns statuses to the specified status group- Parameters:
statusGroupID- status group IDstatuses- the list of statuses- Returns:
- the list of processed statuses
- Throws:
PubServerException- See Also:
-
addStatusesToStatusGroup
List<Status> addStatusesToStatusGroup(String statusGroupID, List<Status> statuses) throws PubServerException Adds new statuses to the specified status group- Parameters:
statusGroupID- status group IDstatuses- the list of statuses to add- Returns:
- the list of processed statuses
- Throws:
PubServerException- See Also:
-