Class BaselineCollectionReference
java.lang.Object
com.polarion.alm.shared.api.model.ModelEntityReferenceBase<T,R>
com.polarion.alm.shared.api.model.ModelObjectReferenceBase<T,R>
com.polarion.alm.shared.api.model.ModelObjectReferenceWithUpdatable<BaselineCollection,UpdatableBaselineCollection,BaselineCollectionReference>
com.polarion.alm.shared.api.model.baselinecollection.BaselineCollectionReference
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,HasId
,HasProjectId
,HasRelativePath
,ModelEntityReference
,ModelObjectReference
,ReferenceWithUpdatable<UpdatableBaselineCollection>
,HasPortalLink
,Serializable
public class BaselineCollectionReference
extends ModelObjectReferenceWithUpdatable<BaselineCollection,UpdatableBaselineCollection,BaselineCollectionReference>
implements HasId, HasProjectId, HasRelativePath, HasPortalLink
- Since:
- 3.20.1
- See Also:
-
Constructor Summary
ConstructorDescriptionBaselineCollectionReference
(String projectId, String id) BaselineCollectionReference
(String projectId, String id, String requestedRevision, String actualRevision) -
Method Summary
Modifier and TypeMethodDescriptioncreateLink
(SharedContext context) Creates portal link.boolean
static BaselineCollectionReference
The path is trimmed before parsing, so it can contain spaces at the start or end.static BaselineCollectionReference
fromRelativePath
(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)
.getFromRevision
(ReadOnlyTransaction transaction, String requestedRevision) getWithRevision
(String requestedRevision) Returns the reference to the same object, but with differentModelObjectReference.requestedRevision()
, theModelObjectReference.actualRevision()
of the returned reference is null.int
hashCode()
id()
It is shortcut forModelObjectReference.scope()
.Scope.projectId()
scope()
toPath()
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId', theModelObjectReference.requestedRevision()
andModelObjectReference.actualRevision()
are ignored.toRelativePath
(String baseProjectId) Returns theid()
if the baseProjectId is same asprojectId()
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
getUpdatable
Methods inherited from class com.polarion.alm.shared.api.model.ModelObjectReferenceBase
actualRevision, get, getCurrent, getCurrent, getOriginal, requestedRevision, toString
-
Constructor Details
-
BaselineCollectionReference
- Throws:
IllegalArgumentException
- when projectId or id is empty string
-
BaselineCollectionReference
public BaselineCollectionReference(@NotNull String projectId, @NotNull String id, @Nullable String requestedRevision, @Nullable String actualRevision) - Throws:
IllegalArgumentException
- when projectId or id is empty string
-
-
Method Details
-
fromPath
The path is trimmed before parsing, so it can contain spaces at the start or end.See
toPath()
.- Throws:
IllegalArgumentException
- in same conditions asWorkItemReference.fromPath(String)
- See Also:
-
fromRelativePath
@NotNull public static BaselineCollectionReference 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.- Throws:
IllegalArgumentException
- in same conditions asWorkItemReference.fromRelativePath(String, String)
-
id
-
projectId
Description copied from interface:ModelObjectReference
It is shortcut forModelObjectReference.scope()
.Scope.projectId()
- Specified by:
projectId
in interfaceHasProjectId
- Specified by:
projectId
in interfaceModelObjectReference
- Overrides:
projectId
in classModelObjectReferenceBase<BaselineCollection,
BaselineCollectionReference>
-
toPath
Description copied from interface:ModelObjectReference
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId', theModelObjectReference.requestedRevision()
andModelObjectReference.actualRevision()
are ignored.- Specified by:
toPath
in interfaceModelEntityReference
- Specified by:
toPath
in interfaceModelObjectReference
- See Also:
-
toRelativePath
Returns theid()
if the baseProjectId is same asprojectId()
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:
toRelativePath
in interfaceHasRelativePath
- Parameters:
baseProjectId
- - null means global scope
-
prototype
- Specified by:
prototype
in interfaceModelObjectReference
-
scope
- Specified by:
scope
in interfaceModelObjectReference
-
getWithRevision
Description copied from interface:ModelObjectReference
Returns the reference to the same object, but with differentModelObjectReference.requestedRevision()
, theModelObjectReference.actualRevision()
of the returned reference is null.- Specified by:
getWithRevision
in interfaceModelObjectReference
- Specified by:
getWithRevision
in classModelObjectReferenceBase<BaselineCollection,
BaselineCollectionReference> - See Also:
-
hashCode
public int hashCode()- Overrides:
hashCode
in classModelObjectReferenceBase<BaselineCollection,
BaselineCollectionReference>
-
equals
- Overrides:
equals
in classModelObjectReferenceBase<BaselineCollection,
BaselineCollectionReference>
-