本文整理汇总了Java中org.apache.commons.lang.BooleanUtils.isNotFalse方法的典型用法代码示例。如果您正苦于以下问题:Java BooleanUtils.isNotFalse方法的具体用法?Java BooleanUtils.isNotFalse怎么用?Java BooleanUtils.isNotFalse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.lang.BooleanUtils
的用法示例。
在下文中一共展示了BooleanUtils.isNotFalse方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: evaluateScriptCondition
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
private boolean evaluateScriptCondition(OperationProvisioningScriptType script,
ExpressionVariables variables, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException {
ExpressionType condition = script.getCondition();
if (condition == null) {
return true;
}
PrismPropertyValue<Boolean> conditionOutput = ExpressionUtil.evaluateCondition(variables, condition, expressionFactory, " condition for provisioning script ", task, result);
if (conditionOutput == null) {
return true;
}
Boolean conditionOutputValue = conditionOutput.getValue();
return BooleanUtils.isNotFalse(conditionOutputValue);
}
示例2: loadEditable
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
protected void loadEditable(FieldGroup resultComponent, FieldGroup.FieldConfig field) {
Element element = field.getXmlDescriptor();
if (element != null) {
String editable = element.attributeValue("editable");
if (StringUtils.isNotEmpty(editable)) {
field.setEditable(Boolean.parseBoolean(editable));
}
}
if (!field.isCustom() && BooleanUtils.isNotFalse(field.isEditable())) {
MetaClass metaClass = getMetaClass(resultComponent, field);
MetaPropertyPath propertyPath = metadataTools.resolveMetaPropertyPath(metaClass, field.getProperty());
checkNotNullArgument(propertyPath, "Could not resolve property path '%s' in '%s'", field.getId(), metaClass);
if (!security.isEntityAttrUpdatePermitted(metaClass, propertyPath.toString())) {
field.setEditable(false);
}
}
}
示例3: loadVisible
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
protected void loadVisible(FieldGroup resultComponent, FieldGroup.FieldConfig field) {
Element element = field.getXmlDescriptor();
if (element != null) {
String visible = element.attributeValue("visible");
if (StringUtils.isNotEmpty(visible)) {
field.setVisible(Boolean.parseBoolean(visible));
}
}
if (!field.isCustom() && BooleanUtils.isNotFalse(field.isVisible())) {
MetaClass metaClass = getMetaClass(resultComponent, field);
MetaPropertyPath propertyPath = metadataTools.resolveMetaPropertyPath(metaClass, field.getProperty());
checkNotNullArgument(propertyPath, "Could not resolve property path '%s' in '%s'", field.getId(), metaClass);
if (!security.isEntityAttrReadPermitted(metaClass, propertyPath.toString())) {
field.setVisible(false);
}
}
}
示例4: executeNotificationAction
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
private void executeNotificationAction(WorkItemType workItem, @NotNull WorkItemNotificationActionType notificationAction, Task wfTask,
OperationResult result) throws SchemaException {
WorkItemEventCauseInformationType cause = WfContextUtil.createCause(notificationAction);
if (BooleanUtils.isNotFalse(notificationAction.isPerAssignee())) {
List<ObjectReferenceType> assigneesAndDeputies = wfTaskController.getAssigneesAndDeputies(workItem, wfTask, result);
for (ObjectReferenceType assigneeOrDeputy : assigneesAndDeputies) {
wfTaskController.notifyWorkItemCustom(assigneeOrDeputy, workItem, cause, wfTask, notificationAction, result);
}
} else {
wfTaskController.notifyWorkItemCustom(null, workItem, cause, wfTask, notificationAction, result);
}
}
示例5: getCloseable
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
@Override
public Boolean getCloseable() {
DialogWindow dialogWindow = asDialogWindow();
if (dialogWindow != null) {
return BooleanUtils.isNotFalse(super.getCloseable());
}
return super.getCloseable();
}
示例6: temp
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
@BeforeClass
@Parameters({ "enablePolicyRuleBasedAspect" })
public void temp(@org.testng.annotations.Optional Boolean enablePolicyRuleBasedAspect) {
this.enablePolicyRuleBasedAspect = BooleanUtils.isNotFalse(enablePolicyRuleBasedAspect);
System.out.println("Testing with policy rule based aspect = " + this.enablePolicyRuleBasedAspect);
}
示例7: isTolerant
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
public boolean isTolerant() {
return BooleanUtils.isNotFalse(resourceObjectAssociationType.isTolerant());
}
示例8: isExecutionEnabled
import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
@Override
public boolean isExecutionEnabled() {
return BooleanUtils.isNotFalse(scriptContent.getExecutionEnabled());
}