Skip navigation links
com.sas.lsaf.content.repository

Interface RepositoryService

Parameters:
path - the path to the context where state is to be set.
state - the state to set the context.
comment - (optional) comment that is used in the audit record. If no comment is provided then that value will not be audited. The comment is not persisted in any other place except the audit trail.
recurse - the state to be set should cascade to all descendent contexts. All non-context descendents (including non-stateable) contexts are always set whether this flag is set or not. If a context is set to ACTIVE, all folders, files and non-stateable context descendents are set to the context state automatically by default. This flag determines whether stateable context descendents should have their state changed as well. This flag is used only when setting the state to ACTIVE. When setting a context state to CLOSED, then ALL descendents MUST be set to CLOSED because ACTIVE content within a CLOSED context is an invalid state. Therefore, when closing a context, this flag is ignored because recursion is a requirement.
Returns:
The results of what changed based on the action.
Throws:
RepositoryItemNotFoundException - thrown when the item no longer exists.
IllegalTypeException - thrown if the path specified is for a type that is not Stateable. This includes non-stateable context types as well as folders and files.
PrivilegeRequiredAccessDeniedException - thrown when the current user does not have the scoped privilege PRIVILEGE_MANAGE_STATE granted at the context to be set or higher. This can also be thrown if the user is trickling the state change upwards and they do NOT have the privilege on a parent.
PermissionRequiredAccessDeniedException - thrown when the current user does not have READ and WRITE METADATA permissions on the context to be set. This can also be thrown when the user is trickling the state change upwards and they do NOT have the permissions on a parent.
Skip navigation links

Copyright (c) 2019, SAS Institute Inc., Cary, NC, USA