use of org.asqatasun.webapp.action.Action in project Asqatasun by Asqatasun.
the class ContractActionHandlerImpl method getActionList.
@Override
public synchronized List<Action> getActionList(Object object) {
if (!(object instanceof Contract)) {
return null;
}
List<Action> userContractActionList = getActionList();
Collection<Functionality> functionalitySet = ((Contract) object).getFunctionalitySet();
for (Action action : userContractActionList) {
activateAction(action, functionalitySet);
}
return userContractActionList;
}
use of org.asqatasun.webapp.action.Action in project Asqatasun by Asqatasun.
the class ActionBuilderImpl method build.
@Override
public Action build() {
Action action = new ActionImpl();
action.setActionCode(this.actionCode);
action.setActionI81NCode(this.actionI81NCode);
action.setActionUrl(this.actionUrl);
action.setDisabledActionImageUrl(this.disabledActionImageUrl);
action.setEnabledActionImageUrl(this.enabledActionImageUrl);
action.setCssSelector(cssSelector);
action.setActionAltI81NCode(this.actionAltI81NCode);
// By default an action is disabled
action.setActionEnabled(false);
return action;
}
use of org.asqatasun.webapp.action.Action in project Asqatasun by Asqatasun.
the class ActionVoterImpl method initialize.
@Override
public void initialize(List<Action> contractActionList) {
String actionCode;
this.actionList = contractActionList;
for (Action action : this.actionList) {
actionCode = action.getActionCode();
if (actionEnableMap.containsKey(actionCode)) {
action.setActionEnabled(actionEnableMap.get(actionCode));
}
}
}
Aggregations