Class OslcConfig
- java.lang.Object
-
- com.sodius.oslc.core.model.Namespace
-
- com.sodius.oslc.domain.config.model.OslcConfig
-
public class OslcConfig extends Namespace
Namespace of OSLC Configuration Management.See the OSLC Configuration Management specification for details:
https://tools.oasis-open.org/version-control/browse/wsvn/oslc-core/trunk/specs/config/oslc-config-mgt.html- Since:
- 1.1.0
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URI
addContext(URI resourceUri, URI configurationContext)
Combine the resource URI and the configuration URI to obtain a versioned resource URI.static URI
getContext(URI versionedResourceUri)
Extract the configuration URI specified asoslc_config.context
query parameter, if any, from the versioned resource URI.static OslcConfig
getInstance()
static boolean
isGC(Configuration configuration)
Checks whether the given configuration is a Global Configuration.static QName
qname(String localPart)
static URI
removeContext(URI versionedResourceUri)
Removes the configuration URI from the specified versioned resource URI.-
Methods inherited from class com.sodius.oslc.core.model.Namespace
equals, getPrefix, getPrefixed, getQName, getUri, hashCode, parseQName, toString
-
-
-
-
Field Detail
-
DOMAIN
public static final String DOMAIN
- See Also:
- Constant Field Values
-
NAMESPACE_URI
public static final String NAMESPACE_URI
- See Also:
- Constant Field Values
-
NAMESPACE_PREFIX
public static final String NAMESPACE_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_CONTEXT_PARAMETER
public static final String CONFIG_CONTEXT_PARAMETER
The query parameter to specify the desired configuration when sending a resource request to a server.- See Also:
- Constant Field Values
-
HEADER_CONFIGURATION_CONTEXT
public static final String HEADER_CONFIGURATION_CONTEXT
The header to specify the desired configuration when sending a resource request to a server. Note that it is usually preferable to use the oslc_config.context query parameter.- Since:
- 1.4.0
- See Also:
CONFIG_CONTEXT_PARAMETER
, Constant Field Values
-
TYPE_ACTIVITY
public static final String TYPE_ACTIVITY
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
TYPE_BASELINE
public static final String TYPE_BASELINE
- See Also:
- Constant Field Values
-
TYPE_CHANGE_SET
public static final String TYPE_CHANGE_SET
- See Also:
- Constant Field Values
-
TYPE_CHANGE_SET_SELECTIONS
public static final String TYPE_CHANGE_SET_SELECTIONS
- See Also:
- Constant Field Values
-
TYPE_COMPONENT
public static final String TYPE_COMPONENT
- See Also:
- Constant Field Values
-
TYPE_CONFIGURATION
public static final String TYPE_CONFIGURATION
- See Also:
- Constant Field Values
-
TYPE_CONFIGURATION_SETTINGS
public static final String TYPE_CONFIGURATION_SETTINGS
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
TYPE_CONTRIBUTION
public static final String TYPE_CONTRIBUTION
- See Also:
- Constant Field Values
-
TYPE_PERSONAL_CONFIGURATION
public static final String TYPE_PERSONAL_CONFIGURATION
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
TYPE_REMOVAL_ALL
public static final String TYPE_REMOVAL_ALL
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
TYPE_REMOVALS
public static final String TYPE_REMOVALS
- See Also:
- Constant Field Values
-
TYPE_SELECTIONS
public static final String TYPE_SELECTIONS
- See Also:
- Constant Field Values
-
TYPE_STREAM
public static final String TYPE_STREAM
- See Also:
- Constant Field Values
-
TYPE_VERSION_RESOURCE
public static final String TYPE_VERSION_RESOURCE
- See Also:
- Constant Field Values
-
PROPERTY_ACCEPTED_BY
public static final String PROPERTY_ACCEPTED_BY
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_ACCEPTS
public static final String PROPERTY_ACCEPTS
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_BASELINE_OF_STREAM
public static final String PROPERTY_BASELINE_OF_STREAM
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_BASELINES
public static final String PROPERTY_BASELINES
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_BRANCH
public static final String PROPERTY_BRANCH
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_COMMITTED
public static final String PROPERTY_COMMITTED
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_COMMITTER
public static final String PROPERTY_COMMITTER
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_COMPONENT
public static final String PROPERTY_COMPONENT
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_CONFIGURATION
public static final String PROPERTY_CONFIGURATION
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_CONFIGURATIONS
public static final String PROPERTY_CONFIGURATIONS
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_CONTRIBUTION
public static final String PROPERTY_CONTRIBUTION
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_CONTRIBUTION_ORDER
public static final String PROPERTY_CONTRIBUTION_ORDER
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_DERIVED_FROM
public static final String PROPERTY_DERIVED_FROM
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_MUTABLE
public static final String PROPERTY_MUTABLE
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_OVERRIDES
public static final String PROPERTY_OVERRIDES
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_PREVIOUS_BASELINE
public static final String PROPERTY_PREVIOUS_BASELINE
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_PROGRESS_MESSAGE
public static final String PROPERTY_PROGRESS_MESSAGE
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_SELECTIONS
public static final String PROPERTY_SELECTIONS
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_SELECTS
public static final String PROPERTY_SELECTS
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_STREAMS
public static final String PROPERTY_STREAMS
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROPERTY_VERSION_ID
public static final String PROPERTY_VERSION_ID
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static OslcConfig getInstance()
-
getContext
public static URI getContext(URI versionedResourceUri)
Extract the configuration URI specified asoslc_config.context
query parameter, if any, from the versioned resource URI.- Parameters:
versionedResourceUri
- the resource URI with versioning information.- Returns:
- the configuration URI specified as query parameter,
null
if none. - See Also:
ConfigContext
-
addContext
public static URI addContext(URI resourceUri, URI configurationContext)
Combine the resource URI and the configuration URI to obtain a versioned resource URI. The configuration URI is set asoslc_config.context
query parameter in the returned URI.If the specified configuration is
null
, the resource URI is returned without anyoslc_config.context
query parameter.- Parameters:
resourceUri
- the resource URI, which shall not yet have a specified configuration URI.configurationContext
- the applicable configuration URI, possiblynull
.- Returns:
- the URI of the versioned resource, which includes the configuration URI as
oslc_config.context
query parameter. - See Also:
ConfigContext
-
removeContext
public static URI removeContext(URI versionedResourceUri)
Removes the configuration URI from the specified versioned resource URI. This implementation returns a URI based on the specified versioned resource URI and removes theoslc_config.context
query parameter, if any.- Parameters:
versionedResourceUri
- the URI of the versioned resource, which includes a configuration URI using aoslc_config.context
query parameter.- Returns:
- the resource URI, without the configuration URI information.
- See Also:
ConfigContext
-
isGC
public static boolean isGC(Configuration configuration)
Checks whether the given configuration is a Global Configuration.- Parameters:
configuration
- the configuration to check- Returns:
true
if it is a global configuration,false
otherwise- Since:
- 3.8.0
-
-