Class ProcessSchemePolicySet.PolicyStoreUpdater
- java.lang.Object
-
- com.sodius.oslc.server.process.scheme.model.ProcessSchemePolicySet.PolicyStoreUpdater
-
- Enclosing class:
- ProcessSchemePolicySet
public class ProcessSchemePolicySet.PolicyStoreUpdater extends Object
Performs updates in a scheme policy store. Multiple policy changes can be registered before calling theupdate()
method, that performs the updates all at once in the store.- Since:
- 3.5.0
- See Also:
ProcessSchemePolicySet.storeUpdater()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessSchemePolicySet.PolicyStoreUpdater
friendPolicy(FriendPolicy policy)
Records a friend policy to update in the store.ProcessSchemePolicySet.PolicyStoreUpdater
linkTypePolicy(Friend friend, URI resourceType, LinkTypePolicy policy)
Records a link type policy to update in the store.ProcessSchemePolicySet.PolicyStoreUpdater
resourceTypePolicy(Friend friend, ResourceTypePolicy policy)
Records a resource type policy to update in the store.ProcessSchemePolicySet.PolicyStoreUpdater
schemePolicy(ProcessSchemePolicy policy)
Records a scheme policy to update in the store.void
update()
Performs the recorded policy changes all at once in the store.
-
-
-
Method Detail
-
schemePolicy
public ProcessSchemePolicySet.PolicyStoreUpdater schemePolicy(ProcessSchemePolicy policy)
Records a scheme policy to update in the store.- Parameters:
policy
- the policy to update.- Returns:
- this updater instance.
- See Also:
update()
-
friendPolicy
public ProcessSchemePolicySet.PolicyStoreUpdater friendPolicy(FriendPolicy policy)
Records a friend policy to update in the store.- Parameters:
policy
- the policy to update.- Returns:
- this updater instance.
- See Also:
update()
-
resourceTypePolicy
public ProcessSchemePolicySet.PolicyStoreUpdater resourceTypePolicy(Friend friend, ResourceTypePolicy policy)
Records a resource type policy to update in the store.- Parameters:
friend
- the friend for which the policy appliespolicy
- the policy to update.- Returns:
- this updater instance.
- See Also:
update()
-
linkTypePolicy
public ProcessSchemePolicySet.PolicyStoreUpdater linkTypePolicy(Friend friend, URI resourceType, LinkTypePolicy policy)
Records a link type policy to update in the store.- Parameters:
friend
- the friend for which the policy appliesresourceType
- the target range of the link typepolicy
- the policy to update.- Returns:
- this updater instance.
- See Also:
update()
-
update
public void update() throws ProcessSchemeStoreException
Performs the recorded policy changes all at once in the store.- Throws:
ProcessSchemeStoreException
- if the store cannot be updated
-
-