Interface ModelObjectSelector<T,S extends ModelObjectSelector<T,S,R>,R extends ModelObjectReference>
- All Known Subinterfaces:
BaselineCollectionSelector<T>
,BaselineSelector<T>
,CategorySelector<T>
,DocumentSelector<T>
,PlanSelector<T>
,ProjectSelector<T>
,RichPageSelector<T>
,TestRunBuilder<T>
,TestRunSelector<T>
,TimePointSelector<T>
,UserGroupSelector<T>
,UserSelector<T>
,WikiPageSelector<T>
,WorkItemSelector<T>
public interface ModelObjectSelector<T,S extends ModelObjectSelector<T,S,R>,R extends ModelObjectReference>
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionoldApiObject
(com.polarion.platform.persistence.model.IPObject object) Finishes selecting the object, overrides any previously specified values which are contained in the path.Completes the object selection.
This method overrides any previously set values, for example revisions set through therevision(String)
method.
To request a reference in a specific revision, you can add the requested revision to the reference parameter by using theModelObjectReference.getFromRevision(ReadOnlyTransaction, String)
method. It is easier to use theModelObjectReference.get(ReadOnlyTransaction)
method than this one to get the instance ofModelObject
for the given reference.This optional method can be used to specify the requested revision that the object should be loaded from.
-
Method Details
-
revision
This optional method can be used to specify the requested revision that the object should be loaded from. If this method is used, it must be called before any other method that completes the object selection.- Returns:
- the same instance to allow for method chaining.
- Throws:
IllegalStateException
- after the selection was completed.
-
path
Finishes selecting the object, overrides any previously specified values which are contained in the path. The path is value returned byModelObjectReference.toPath()
of the appropriate reference type. -
reference
Completes the object selection.
This method overrides any previously set values, for example revisions set through therevision(String)
method.
To request a reference in a specific revision, you can add the requested revision to the reference parameter by using theModelObjectReference.getFromRevision(ReadOnlyTransaction, String)
method. It is easier to use theModelObjectReference.get(ReadOnlyTransaction)
method than this one to get the instance ofModelObject
for the given reference. -
oldApiObject
@NotNull @GwtIncompatible T oldApiObject(@NotNull com.polarion.platform.persistence.model.IPObject object)
-