Class PlanReference
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<Plan,UpdatablePlan,PlanReference>
  
com.polarion.alm.shared.api.model.plan.PlanReference
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable,- HasId,- HasProjectId,- HasRelativePath,- ModelEntityReference,- ModelObjectReference,- ReferenceWithUpdatable<UpdatablePlan>,- HasPortalLink,- Serializable
public final class PlanReference
extends ModelObjectReferenceWithUpdatable<Plan,UpdatablePlan,PlanReference>
implements HasId, HasProjectId, HasPortalLink, HasRelativePath  
- Since:
- 3.9.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionPlanReference(String projectId, String id) PlanReference(String projectId, String id, String requestedRevision, String actualRevision) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateLink(SharedContext context) Creates portal link.booleanstatic PlanReferencestatic PlanReferencefromRelativePath(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).Returns the reference to current revision of the object, in other words reference without requested revision and actual revision.getFromRevision(ReadOnlyTransaction transaction, String revision) getWithRevision(String requestedRevision) Returns the reference to the same object, but with differentModelObjectReference.requestedRevision(), theModelObjectReference.actualRevision()of the returned reference is null.inthashCode()id()scope()toPath()For now the plans are supported only in projects, so only the path in form of 'projectId/planId' 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.ModelObjectReferenceWithUpdatablegetUpdatableMethods inherited from class com.polarion.alm.shared.api.model.ModelObjectReferenceBaseactualRevision, get, getCurrent, getOriginal, projectId, requestedRevision, toStringMethods inherited from interface com.polarion.alm.shared.api.model.HasProjectIdprojectId
- 
Constructor Details- 
PlanReferencepublic PlanReference(@Nullable String projectId, @NotNull String id, @Nullable String requestedRevision, @Nullable String actualRevision) - Throws:
- IllegalArgumentException- when id is empty string
 
- 
PlanReference- Since:
- 3.9.1
 
 
- 
- 
Method Details- 
fromPath- See Also:
 
- 
fromRelativePath@NotNull public static PlanReference 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
 
- 
getCurrentDescription copied from interface:ModelObjectReferenceReturns the reference to current revision of the object, in other words reference without requested revision and actual revision. It is shortcut for callingModelObjectReference.getWithRevision(String)with null- Specified by:
- getCurrentin interface- ModelObjectReference
- Overrides:
- getCurrentin class- ModelObjectReferenceBase<Plan,- PlanReference> 
 
- 
getWithRevisionDescription copied from interface:ModelObjectReferenceReturns the reference to the same object, but with differentModelObjectReference.requestedRevision(), theModelObjectReference.actualRevision()of the returned reference is null.- Specified by:
- getWithRevisionin interface- ModelObjectReference
- Specified by:
- getWithRevisionin class- ModelObjectReferenceBase<Plan,- PlanReference> 
- See Also:
 
- 
scope- Specified by:
- scopein interface- ModelObjectReference
 
- 
id
- 
toPathFor now the plans are supported only in projects, so only the path in form of 'projectId/planId' is supported, but in the future also path starting with / will be supported for paths starting with project group path- Specified by:
- toPathin interface- ModelEntityReference
- Specified by:
- toPathin interface- ModelObjectReference
- See Also:
 
- 
toRelativePathReturns 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 interface- HasRelativePath
- Parameters:
- baseProjectId- - null means global scope
- Since:
- 3.9.1
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- ModelObjectReferenceBase<Plan,- PlanReference> 
 
- 
equals- Overrides:
- equalsin class- ModelObjectReferenceBase<Plan,- PlanReference> 
 
- 
prototype- Specified by:
- prototypein interface- ModelObjectReference
 
 
-