當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。