Class TestRunReference
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,HasId,HasProjectId,HasRelativePath,ModelEntityReference,ModelObjectReference,ReferenceWithUpdatable<UpdatableTestRun>,HasPortalLink,Serializable
- Since:
- 3.9.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTestRunReference(String projectId, String id) TestRunReference(String projectId, String id, String requestedRevision, String actualRevision) -
Method Summary
Modifier and TypeMethodDescriptioncreateLink(SharedContext context) Creates portal link.booleanstatic TestRunReferencestatic TestRunReferencefromRelativePath(String baseProjectId, String path) The path is trimmed before parsing, so it can contain spaces at the start or end.
The path can be obtained usingtoRelativePath(String).Deprecated.getFromRevision(ReadOnlyTransaction transaction, String requestedRevision) Returns the object from the specified revision.getWithRevision(String requestedRevision) Deprecated.inthashCode()id()scope()toPath()For now the testRuns are supported only in projects, so only the path in form of 'projectId/testRunId' is supported, but in the future also path starting with / will be supported for paths starting with project group pathtoRelativePath(String baseProjectId) Returns theid()if the baseProjectId is same asModelObjectReferenceBase.projectId()otherwise returns the same value astoPath().
ThefromRelativePath(String, String)can be used to get the reference from the returned path.Methods inherited from class com.polarion.alm.shared.api.model.ModelObjectReferenceWithUpdatable
getUpdatableMethods inherited from class com.polarion.alm.shared.api.model.ModelObjectReferenceBase
actualRevision, get, getCurrent, getOriginal, projectId, requestedRevision, toStringMethods inherited from interface com.polarion.alm.shared.api.model.HasProjectId
projectId
-
Constructor Details
-
TestRunReference
public TestRunReference(@Nullable String projectId, @NotNull String id, @Nullable String requestedRevision, @Nullable String actualRevision) - Throws:
IllegalArgumentException- when id is empty string
-
TestRunReference
- Throws:
IllegalArgumentException- when id is empty string- Since:
- 3.9.1
-
-
Method Details
-
fromPath
- See Also:
-
fromRelativePath
@NotNull public static TestRunReference fromRelativePath(@Nullable String baseProjectId, @NotNull String path) The path is trimmed before parsing, so it can contain spaces at the start or end.
The path can be obtained usingtoRelativePath(String). The baseProjectId used in both calls must be the same.- Since:
- 3.9.1
-
getCurrent
Deprecated.Description copied from interface:ModelObjectReferenceReturns the reference to current revision of the object, in other words reference without requested revision and actual revision. It is a shortcut for callingModelObjectReference.getWithRevision(String)with null.Note: The returned reference retains the current path (space and name) of the object. It does not correctly support objects (e.g. Documents) that were renamed or moved, because the path in the reference reflects the object's current location, not its location at any given revision. As a result, using this reference may fail to resolve the object if it has been renamed or moved.
- Specified by:
getCurrentin interfaceModelObjectReference- Overrides:
getCurrentin classModelObjectReferenceBase<TestRun,TestRunReference>
-
getWithRevision
Deprecated.Description copied from interface:ModelObjectReferenceReturns the reference to the same object, but with differentModelObjectReference.requestedRevision(), theModelObjectReference.actualRevision()of the returned reference is null.Note: The returned reference retains the current path (space and name) of the object. It does not correctly support objects (e.g. Documents) that were renamed or moved, because the path in the reference reflects the object's current location, not its location at the specified revision. As a result, using this reference may fail to resolve the object if it has been renamed or moved.
- Specified by:
getWithRevisionin interfaceModelObjectReference- Specified by:
getWithRevisionin classModelObjectReferenceBase<TestRun,TestRunReference> - Parameters:
requestedRevision- the revision to be set in the returned reference, or null for the current revision.- See Also:
-
scope
- Specified by:
scopein interfaceModelObjectReference
-
id
-
toPath
For now the testRuns are supported only in projects, so only the path in form of 'projectId/testRunId' is supported, but in the future also path starting with / will be supported for paths starting with project group path- Specified by:
toPathin interfaceModelEntityReference- Specified by:
toPathin interfaceModelObjectReference- See Also:
-
toRelativePath
Returns theid()if the baseProjectId is same asModelObjectReferenceBase.projectId()otherwise returns the same value astoPath().
ThefromRelativePath(String, String)can be used to get the reference from the returned path. The baseProjectId used in both calls must be the same.- Specified by:
toRelativePathin interfaceHasRelativePath- Parameters:
baseProjectId- - null means global scope- Since:
- 3.9.1
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelObjectReferenceBase<TestRun,TestRunReference>
-
equals
- Overrides:
equalsin classModelObjectReferenceBase<TestRun,TestRunReference>
-
prototype
- Specified by:
prototypein interfaceModelObjectReference
-
ModelObjectReference.getCurrent()