Interface RichPageSelector<T>
- All Superinterfaces:
ModelObjectSelector<T,
RichPageSelector<T>, RichPageReference>
public interface RichPageSelector<T>
extends ModelObjectSelector<T,RichPageSelector<T>,RichPageReference>
Interface for selecting the rich page using optional project id and revision and mandatory page path or space id and page name.
The selection is finished by using
path(String)
, spaceAndName(String, String)
or spaceReferenceAndName(SpaceReference, String)
method
and the selector object cannot be used anymore after that.- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionFinishes selecting the page using the relative path to page.Optionally specify a project, must be used beforepath(String)
orspaceAndName(String, String)
, the value is ignored when used beforespaceReferenceAndName(SpaceReference, String)
spaceAndName
(String spaceId, String pageName) Finishes selecting the page using the space path and page name as separate parameters.spaceReferenceAndName
(SpaceReference space, String pageName) Finishes selecting the page using the space reference and page name, value given to theproject(String)
method is ignored, because theSpaceReference
already contains it.Methods inherited from interface com.polarion.alm.shared.api.model.ModelObjectSelector
oldApiObject, reference, revision
-
Method Details
-
project
Optionally specify a project, must be used beforepath(String)
orspaceAndName(String, String)
, the value is ignored when used beforespaceReferenceAndName(SpaceReference, String)
- Returns:
- returns the same instance to allow method chaining
- Throws:
IllegalStateException
- after the selection was finished
-
path
Finishes selecting the page using the relative path to page.- Specified by:
path
in interfaceModelObjectSelector<T,
RichPageSelector<T>, RichPageReference> - Parameters:
pagePath
- - the value as returned byRichPageReference.toPath()
- Throws:
IllegalStateException
- after the selection was finished
-
spaceAndName
Finishes selecting the page using the space path and page name as separate parameters.- Parameters:
spaceId
- - The space id as returned bySpaceReference.spaceId()
- Throws:
IllegalStateException
- after the selection was finished
-