Search in sources :

Example 6 with Action

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;
}
Also used : DefaultRowImpl(com.centurylink.mdw.plugin.designer.properties.editor.TableEditor.DefaultRowImpl) Action(com.centurylink.mdw.model.value.user.UserActionVO.Action) ArrayList(java.util.ArrayList)

Example 7 with Action

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());
}
Also used : Action(com.centurylink.mdw.model.value.user.UserActionVO.Action)

Aggregations

Action (com.centurylink.mdw.model.value.user.UserActionVO.Action)7 DefaultRowImpl (com.centurylink.mdw.plugin.designer.properties.editor.TableEditor.DefaultRowImpl)2 ArrayList (java.util.ArrayList)2 DataAccessException (com.centurylink.mdw.common.exception.DataAccessException)1 ActionRequestMessage (com.centurylink.mdw.common.service.types.ActionRequestMessage)1 DataAccessOfflineException (com.centurylink.mdw.dataaccess.DataAccessOfflineException)1 Entity (com.centurylink.mdw.model.value.user.UserActionVO.Entity)1 ColumnSpec (com.centurylink.mdw.plugin.designer.properties.editor.ColumnSpec)1 TableEditor (com.centurylink.mdw.plugin.designer.properties.editor.TableEditor)1 TableModelUpdater (com.centurylink.mdw.plugin.designer.properties.editor.TableEditor.TableModelUpdater)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 List (java.util.List)1 JSONObject (org.json.JSONObject)1