Class RevisionReference
java.lang.Object
com.polarion.alm.shared.api.model.ModelEntityReferenceBase<Revision,RevisionReference>
com.polarion.alm.shared.api.model.revision.RevisionReference
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,HasId
,ModelEntityReference
,HasPortalLink
,Serializable
public final class RevisionReference
extends ModelEntityReferenceBase<Revision,RevisionReference>
implements HasPortalLink, HasId
- Since:
- 3.9.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLink
(SharedContext context) Creates portal link.boolean
static RevisionReference
get
(ReadOnlyTransaction transaction) Returns the entity referenced by this reference.int
hashCode()
id()
boolean
toPath()
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId'.
It ignores requested revision.Methods inherited from class com.polarion.alm.shared.api.model.ModelEntityReferenceBase
toString
-
Field Details
-
DEFAULT_REPOSITORY_NAME
-
-
Constructor Details
-
RevisionReference
- Parameters:
repositoryName
- - null or empty string meansDEFAULT_REPOSITORY_NAME
- Throws:
IllegalArgumentException
- when id is empty string
-
-
Method Details
-
id
-
repositoryName
- See Also:
-
isDefaultRepository
public boolean isDefaultRepository()- Returns:
- true when
repositoryName()
is equal toDEFAULT_REPOSITORY_NAME
-
hashCode
public int hashCode() -
equals
-
toPath
Description copied from interface:ModelEntityReference
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId'.
It ignores requested revision.- Specified by:
toPath
in interfaceModelEntityReference
- See Also:
-
fromPath