use of com.centurylink.mdw.model.value.user.UserActionVO.Action in project mdw-designer by CenturyLinkCloud.
the class PreferencesSection method getSelectedNoticeRows.
private List<DefaultRowImpl> getSelectedNoticeRows(List<String> selectedNotices) {
List<DefaultRowImpl> tableRows = new ArrayList<DefaultRowImpl>();
for (Action outcome : UserActionVO.NOTIFIABLE_TASK_ACTIONS) {
String[] rowData = new String[2];
if (selectedNotices.contains(outcome.toString()))
rowData[0] = "true";
else
rowData[0] = "false";
rowData[1] = outcome.toString();
DefaultRowImpl row = noticesEditor.new DefaultRowImpl(rowData);
tableRows.add(row);
}
return tableRows;
}
use of com.centurylink.mdw.model.value.user.UserActionVO.Action in project mdw-designer by CenturyLinkCloud.
the class DesignerDataAccess method setCustomAttribute.
public void setCustomAttribute(CustomAttributeVO customAttrVO) throws DataAccessException {
Long existingId = persister.setCustomAttribute(customAttrVO);
Action action = existingId == null ? Action.Create : Action.Change;
auditLog(action, Entity.Attribute, existingId == null ? Long.valueOf(0) : existingId, "Custom attributes for: " + customAttrVO.getDefinitionAttrOwner());
}
Aggregations