public class ContentAccess
extends com.appiancorp.process.common.presentation.JSONCallableObject
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FAIL |
protected static java.lang.String |
NAME |
protected static java.lang.String |
SUCCESS |
Constructor and Description |
---|
ContentAccess(javax.servlet.http.HttpSession session_)
Constructs a ContentAccess object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
hasRuleEditingPrivileges()
Returns true if the user has edit privileges for Rules.
|
java.util.HashMap |
saveFreeformRule(FreeformRule rule_,
java.lang.Long oldParentId)
This method saves a freeform rule and returns a map of validation messages.
|
com.appiancorp.process.common.presentation.Response |
testFreeformRule(FreeformRule rule_)
This method tests a freeform rule by evaluating its definition.
|
static java.util.HashMap |
validate(FreeformRule rule_,
javax.servlet.http.HttpSession session_,
boolean checkNameCollision)
This method validates a freeform rule and returns a map of
validation messages.
|
java.util.HashMap |
validateFreeformRule(FreeformRule rule_)
This method validates a freeform rule for testing.
|
protected static final java.lang.String SUCCESS
protected static final java.lang.String NAME
protected static final java.lang.String FAIL
public ContentAccess(javax.servlet.http.HttpSession session_)
session_
- an HttpSession objectpublic com.appiancorp.process.common.presentation.Response testFreeformRule(FreeformRule rule_)
rule_
- the rule to testpublic java.util.HashMap validateFreeformRule(FreeformRule rule_)
rule_
- the freeform rule to validatepublic java.util.HashMap saveFreeformRule(FreeformRule rule_, java.lang.Long oldParentId)
rule_
- the freeform rule to saveoldParentId
- the old parent idpublic static java.util.HashMap validate(FreeformRule rule_, javax.servlet.http.HttpSession session_, boolean checkNameCollision)
rule_
- the freeform rule to validatesession_
- the sessioncheckNameCollision
- if set to false, names will not be compared against existing expression functions.public java.lang.Boolean hasRuleEditingPrivileges()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.