Package org.forgerock.api.models
Class VersionedPath
- java.lang.Object
-
- org.forgerock.api.models.VersionedPath
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VersionedPath.Builder
Builder to help construct the VersionedPath.
-
Field Summary
Fields Modifier and Type Field Description static Version
UNVERSIONED
Version0.0
represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Resource
get(Version version)
Gets theResource
for a given version.protected Map<Version,Resource>
getPaths()
Gets aMap
of versions toResource
s.Set<Version>
getVersions()
Returns all resource-versions on this path.int
hashCode()
static VersionedPath.Builder
versionedPath()
Create a new Builder for VersionedPath.
-
-
-
Field Detail
-
UNVERSIONED
public static final Version UNVERSIONED
Version0.0
represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM).
-
-
Method Detail
-
getPaths
protected Map<Version,Resource> getPaths()
Gets aMap
of versions toResource
s. This method is currently only used for JSON serialization.- Returns:
Map
of versions toResource
s.
-
get
public Resource get(Version version)
Gets theResource
for a given version.- Parameters:
version
- Resource version- Returns:
Resource
ornull
if does-not-exist.
-
getVersions
public Set<Version> getVersions()
Returns all resource-versions on this path.- Returns:
- All resource-versions.
-
versionedPath
public static VersionedPath.Builder versionedPath()
Create a new Builder for VersionedPath.- Returns:
- Builder
-
-