Class HasPermissionCondition
- java.lang.Object
-
- org.apache.ofbiz.minilang.MiniLangElement
-
- org.apache.ofbiz.minilang.method.MethodOperation
-
- org.apache.ofbiz.minilang.method.conditional.HasPermissionCondition
-
- All Implemented Interfaces:
Conditional
public final class HasPermissionCondition extends MethodOperation implements Conditional
Implements the <if-has-permission> element.- See Also:
- Mini-language Reference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HasPermissionCondition.HasPermissionConditionFactory
A <if-has-permission> element factory.-
Nested classes/interfaces inherited from class org.apache.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.minilang.MiniLangElement
simpleMethod
-
-
Constructor Summary
Constructors Constructor Description HasPermissionCondition(org.w3c.dom.Element element, SimpleMethod simpleMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkCondition(MethodContext methodContext)
boolean
exec(MethodContext methodContext)
Executes the operation.void
gatherArtifactInfo(ArtifactInfoContext aic)
Updatesaic
with this element's artifact information.void
prettyPrint(java.lang.StringBuilder messageBuffer, MethodContext methodContext)
java.lang.String
toString()
-
Methods inherited from class org.apache.ofbiz.minilang.method.MethodOperation
expandedString, rawString
-
Methods inherited from class org.apache.ofbiz.minilang.MiniLangElement
getLineNumber, getSimpleMethod, getTagName, outputTraceMessage
-
-
-
-
Constructor Detail
-
HasPermissionCondition
public HasPermissionCondition(org.w3c.dom.Element element, SimpleMethod simpleMethod) throws MiniLangException
- Throws:
MiniLangException
-
-
Method Detail
-
checkCondition
public boolean checkCondition(MethodContext methodContext) throws MiniLangException
- Specified by:
checkCondition
in interfaceConditional
- Throws:
MiniLangException
-
exec
public boolean exec(MethodContext methodContext) throws MiniLangException
Description copied from class:MethodOperation
Executes the operation. Returnstrue
if script execution should continue, orfalse
if script execution should stop.- Specified by:
exec
in classMethodOperation
- Throws:
MiniLangException
-
gatherArtifactInfo
public void gatherArtifactInfo(ArtifactInfoContext aic)
Description copied from class:MiniLangElement
Updatesaic
with this element's artifact information.- Overrides:
gatherArtifactInfo
in classMiniLangElement
- Parameters:
aic
- The artifact information context
-
prettyPrint
public void prettyPrint(java.lang.StringBuilder messageBuffer, MethodContext methodContext)
- Specified by:
prettyPrint
in interfaceConditional
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMiniLangElement
-
-