use of io.jmix.core.security.EntityOp in project jmix by jmix-framework.
the class AbstractComponentLoader method loadActionConstraint.
protected void loadActionConstraint(Action action, Element element) {
if (action instanceof Action.HasSecurityConstraint) {
Action.HasSecurityConstraint itemTrackingAction = (Action.HasSecurityConstraint) action;
Attribute operationTypeAttribute = element.attribute("constraintEntityOp");
if (operationTypeAttribute != null) {
EntityOp operationType = EntityOp.fromId(operationTypeAttribute.getValue());
itemTrackingAction.setConstraintEntityOp(operationType);
}
}
}
use of io.jmix.core.security.EntityOp in project jmix by jmix-framework.
the class ComponentLoaderHelper method loadActionConstraint.
/*
* Caution! Copied from io.jmix.ui.xml.layout.loader.AbstractComponentLoader
*/
public static void loadActionConstraint(Action action, Element element) {
if (action instanceof Action.HasSecurityConstraint) {
Action.HasSecurityConstraint itemTrackingAction = (Action.HasSecurityConstraint) action;
Attribute operationTypeAttribute = element.attribute("constraintOperationType");
if (operationTypeAttribute != null) {
EntityOp operationType = EntityOp.fromId(operationTypeAttribute.getValue());
itemTrackingAction.setConstraintEntityOp(operationType);
}
}
}
Aggregations