public interface RMDataProvider
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActionURL(java.lang.String nodeURI,
RMAction action)
Returns the URL for an action on a specific node.
|
java.util.List<RMAction> |
getAllActions()
Returns all different actions possible on any node.
|
java.util.List<RMNode> |
getChangedNodes(java.lang.String projectId,
long timestamp,
int index,
int limit)
Returns all changed nodes since a specific time stamp.
|
java.util.Map<java.lang.String,java.util.List<RMNode>> |
getChildren(java.lang.String projectId,
java.util.List<java.lang.String> parentIds)
Returns all children of a node.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getChildrenIds(java.lang.String projectId,
java.util.List<java.lang.String> parentIds)
Returns all ids of the children for a list of nodes.
|
java.lang.String |
getDefaultOpenURL(java.lang.String nodeURI)
Returns the URL for the default open action on a node.
|
java.util.List<java.lang.String> |
getDeletedNodeIds(java.lang.String projectId,
long timestamp)
Returns all ids of deleted nodes since provided time stamp.
|
long |
getLastChangedTimestamp(java.lang.String projectId)
Returns the time stamp of the last change for a specific project.
|
RMNode |
getNodeById(java.lang.String projectId,
java.lang.String id)
Returns a node specific node.
|
RMNodeType |
getNodeType(java.lang.String typeId)
Returns the
RMNodeType object for a provided node type id. |
RMProject |
getProject(java.lang.String id)
Returns a specific project.
|
java.util.List<RMProject> |
getProjects()
Returns all projects available for integration with SCTM.
|
java.lang.String |
getRMSystemName()
Returns the name of the Requirements Management System this plug-in is for.
|
java.lang.String |
getRMSystemVersion()
Returns the version of the Requirements Management System this plug-in is for.
|
RMSnapshot |
getSnapshot(java.lang.String projectId,
java.lang.String nodeId)
Returns the snapshot for a node.
|
java.util.List<RMAction> |
getSupportedActions(RMNodeType nodeType)
Returns all supported actions for a specific node type.
|
boolean |
isSnapshotSupported(RMNodeType nodeType)
Tells if a snapshot image is supported for a specific node type.
|
java.lang.String getRMSystemName()
throws RMPluginException
RMPluginExceptionjava.lang.String getRMSystemVersion()
throws RMPluginException
RMPluginExceptionjava.util.List<RMProject> getProjects() throws RMPluginException
RMPluginExceptionRMProject getProject(java.lang.String id) throws RMPluginException
id - the id of the project to get.RMPluginExceptionjava.util.Map<java.lang.String,java.util.List<java.lang.String>> getChildrenIds(java.lang.String projectId,
java.util.List<java.lang.String> parentIds)
throws RMPluginException
projectId - the id of the project.parentIds - the ids of the nodes of which all children will be returned. If list is empty, then all top level children are returned with empty string as key.RMPluginExceptionjava.util.Map<java.lang.String,java.util.List<RMNode>> getChildren(java.lang.String projectId, java.util.List<java.lang.String> parentIds) throws RMPluginException
projectId - the id of the project.parentIds - the ids of the node of which all children will be returned. If list is empty, then all top level children are returned with empty string as key.RMPluginExceptionRMNode getNodeById(java.lang.String projectId, java.lang.String id) throws RMPluginException
projectId - the id of the project.id - the id of the node to get.RMPluginExceptionjava.util.List<RMNode> getChangedNodes(java.lang.String projectId, long timestamp, int index, int limit) throws RMPluginException
projectId - the id of the project.timestamp - the time stamp (milliseconds) since when changed nodes should be returned.index - the starting position (zero based) for returning nodes in the list of all changed nodes.limit - the maximal number of nodes to return.RMPluginExceptionjava.util.List<java.lang.String> getDeletedNodeIds(java.lang.String projectId,
long timestamp)
throws RMPluginException
projectId - the id of the project.timestamp - the time stamp (milliseconds) since when ids of deleted nodes should be returned.RMPluginExceptionlong getLastChangedTimestamp(java.lang.String projectId)
throws RMPluginException
projectId - the id of the project.RMPluginExceptionjava.util.List<RMAction> getSupportedActions(RMNodeType nodeType) throws RMPluginException
nodeType - the node type for which supported actions are returned.RMPluginExceptionjava.util.List<RMAction> getAllActions() throws RMPluginException
RMPluginExceptionjava.lang.String getActionURL(java.lang.String nodeURI,
RMAction action)
throws RMPluginException
nodeURI - the URI of a node (RMNode).action - the action which should be performed for the provided nodeRMPluginExceptionjava.lang.String getDefaultOpenURL(java.lang.String nodeURI)
throws RMPluginException
nodeURI - the URI of a node (RMNode).RMPluginExceptionRMNodeType getNodeType(java.lang.String typeId) throws java.lang.IllegalArgumentException
RMNodeType object for a provided node type id.
If the id is invalid an IllegalArgumentException has to be thrown.typeId - the id of the node type.RMNodeType the node type for the provided node type id.java.lang.IllegalArgumentExceptionboolean isSnapshotSupported(RMNodeType nodeType)
nodeType - the node type.RMSnapshot getSnapshot(java.lang.String projectId, java.lang.String nodeId) throws RMPluginException
projectId - the id of a projectnodeId - the id of a nodeRMPluginExceptionCopyright © Micro Focus 2004-2019. All rights reserved.