Interface ModelObjectReference
- All Superinterfaces:
com.google.gwt.user.client.rpc.IsSerializable
,ModelEntityReference
,Serializable
- All Known Implementing Classes:
BaselineCollectionReference
,BaselineReference
,CategoryReference
,DocumentReference
,ModelObjectReferenceBase
,ModelObjectReferenceWithUpdatable
,PlanReference
,ProjectReference
,RichPageReference
,TestRunReference
,TimePointReference
,UserGroupReference
,UserReference
,WikiPageReference
,WorkItemReference
public interface ModelObjectReference
extends ModelEntityReference, com.google.gwt.user.client.rpc.IsSerializable, Serializable
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the revision from which the object was actually read even when therequestedRevision()
was null.get
(ReadOnlyTransaction transaction) Returns the object fromrequestedRevision()
, if requested revision is null it returns current object, same asgetCurrent(ReadOnlyTransaction)
.Returns the reference to current revision of the object, in other words reference without requested revision and actual revision.getCurrent
(ReadOnlyTransaction transaction) Returns the current object ignoring bothrequestedRevision()
andactualRevision()
.getFromRevision
(ReadOnlyTransaction transaction, String requestedRevision) getOriginal
(ReadOnlyTransaction transaction) Returns the object fromrequestedRevision()
oractualRevision()
if either of them is not null (checked in this order), otherwise returns the current object same as by callinggetCurrent(ReadOnlyTransaction)
.getWithRevision
(String requestedRevision) Returns the reference to the same object, but with differentrequestedRevision()
, theactualRevision()
of the returned reference is null.It is shortcut forscope()
.Scope.projectId()
scope()
toPath()
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId', therequestedRevision()
andactualRevision()
are ignored.
-
Method Details
-
actualRevision
Returns the revision from which the object was actually read even when therequestedRevision()
was null. This value does not have impact inObject.hashCode()
andObject.equals(Object)
methods.
Never returns empty string or string containing only white space characters. -
requestedRevision
- Returns:
- revision which was requested by user. Never returns empty string or string containing only white space characters.
-
getWithRevision
Returns the reference to the same object, but with differentrequestedRevision()
, theactualRevision()
of the returned reference is null. -
getCurrent
Returns the reference to current revision of the object, in other words reference without requested revision and actual revision. It is shortcut for callinggetWithRevision(String)
with null -
prototype
-
scope
-
toPath
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId', therequestedRevision()
andactualRevision()
are ignored.- Specified by:
toPath
in interfaceModelEntityReference
- See Also:
-
projectId
It is shortcut forscope()
.Scope.projectId()
- Since:
- 3.9.2