Class SpaceReference
java.lang.Object
com.polarion.alm.shared.api.model.ModelEntityReferenceBase<Space,SpaceReference>
com.polarion.alm.shared.api.model.space.SpaceReference
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,HasProjectId
,ModelEntityReference
,HasPortalLink
,Serializable
public final class SpaceReference
extends ModelEntityReferenceBase<Space,SpaceReference>
implements HasPortalLink, HasProjectId
- Since:
- 3.9.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLink
(SharedContext context) Creates portal link.boolean
static SpaceReference
get
(ReadOnlyTransaction transaction) Returns the entity referenced by this reference.int
hashCode()
boolean
scope()
spaceId()
Returns space id.Deprecated.toPath()
Returns path to the space including the project id when the space is from project.Methods inherited from class com.polarion.alm.shared.api.model.ModelEntityReferenceBase
toString
-
Field Details
-
DEFAULT_SPACE
- See Also:
-
-
Constructor Details
-
SpaceReference
- Parameters:
spaceId
- - when null thenDEFAULT_SPACE
is assumed, '/' characters at the start and end are removed- Throws:
IllegalArgumentException
- when spaceId contains two following slashes "//", except start or end where they are removed
-
-
Method Details
-
fromPath
-
projectId
- Specified by:
projectId
in interfaceHasProjectId
-
spacePath
Deprecated.UsespaceId()
instead.Since all nested Spaces are not actually nested in the repository (they are all on the same level there), the spacePath will just be the Space id. For the full Space hierarchy path label SeeSpace.label()
method. -
spaceId
Returns space id. For the full Space hierarchy path label SeeSpace.label()
method.- Since:
- 3.19.0
-
isDefault
public boolean isDefault() -
hashCode
public int hashCode() -
equals
-
scope
-
toPath
Returns path to the space including the project id when the space is from project.- Specified by:
toPath
in interfaceModelEntityReference
- See Also:
-
spaceId()
instead.