当前位置: 首页>>代码示例>>Java>>正文


Java BooleanUtils.isNotFalse方法代码示例

本文整理汇总了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);
	
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:18,代码来源:ChangeExecutor.java

示例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);
        }
    }
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:21,代码来源:FieldGroupLoader.java

示例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);
        }
    }
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:21,代码来源:FieldGroupLoader.java

示例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);
	}

}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:14,代码来源:WfTimedActionTriggerHandler.java

示例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();
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:10,代码来源:DesktopWindow.java

示例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);
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:7,代码来源:AbstractWfTestLegacy.java

示例7: isTolerant

import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
public boolean isTolerant() {
    return BooleanUtils.isNotFalse(resourceObjectAssociationType.isTolerant());
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:4,代码来源:RefinedAssociationDefinition.java

示例8: isExecutionEnabled

import org.apache.commons.lang.BooleanUtils; //导入方法依赖的package包/类
@Override
public boolean isExecutionEnabled() {
	return BooleanUtils.isNotFalse(scriptContent.getExecutionEnabled());
}
 
开发者ID:Cognifide,项目名称:APM,代码行数:5,代码来源:ScriptImpl.java


注:本文中的org.apache.commons.lang.BooleanUtils.isNotFalse方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。