Class ScriptReference
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<Script,UpdatableScript,ScriptReference>
com.polarion.alm.shared.api.model.scripting.ScriptReference
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,HasId
,ModelEntityReference
,ModelObjectReference
,ReferenceWithUpdatable<UpdatableScript>
,HasPortalLink
,Serializable
public class ScriptReference
extends ModelObjectReferenceWithUpdatable<Script,UpdatableScript,ScriptReference>
implements HasId, HasPortalLink
- Since:
- 3.24.10
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScriptReference
(String projectId, String id) ScriptReference
(String projectId, String id, String requestedRevision, String actualRevision) -
Method Summary
Modifier and TypeMethodDescriptioncreateLink
(SharedContext context) Creates portal link.boolean
static ScriptReference
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.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
-
ScriptReference
-
ScriptReference
-
ScriptReference
-
-
Method Details
-
prototype
- Specified by:
prototype
in interfaceModelObjectReference
-
scope
- Specified by:
scope
in interfaceModelObjectReference
-
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:
-
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<Script,
ScriptReference> - See Also:
-
id
-
projectId
Description copied from interface:ModelObjectReference
It is shortcut forModelObjectReference.scope()
.Scope.projectId()
- Specified by:
projectId
in interfaceModelObjectReference
- Overrides:
projectId
in classModelObjectReferenceBase<Script,
ScriptReference>
-
fromPath
-
hashCode
public int hashCode()- Overrides:
hashCode
in classModelObjectReferenceBase<Script,
ScriptReference>
-
equals
- Overrides:
equals
in classModelObjectReferenceBase<Script,
ScriptReference>
-