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

Interface RepositoryService

Parameters:
path - The path to the context.
state - The state.
comment - The comment that is used in the audit record. If no comment is specified then that value is not audited. The comment is not persisted in any other place except the audit trail.
recurse - The state to set is cascaded to all of the descendent contexts. All non-context descendents (which includes non-stateable) contexts are always set regardless of whether this flag is set. If a context is set to ACTIVE, all folders, files, and non-stateable context descendents are set to the context state automatically by default. The flag indicates whether stateable context descendents should have their state changed. The flag is used only when setting the state to ACTIVE. When setting a context state to CLOSED, then ALL descendents are automatically set to CLOSED because ACTIVE content within a CLOSED context is an invalid state. Therefore, when closing a context, the 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, 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 when the user is propagating 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 set. This can also be thrown when the user is propagating the state change upwards and they do NOT have the permissions on a parent.
Skip navigation links

<i>Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA</i>