Search in sources :

Example 1 with AbstractActionVO

use of com.serotonin.m2m2.vo.AbstractActionVO in project ma-core-public by infiniteautomation.

the class AbstractRTDwr method getCopy.

@SuppressWarnings("unchecked")
@DwrPermission(user = true)
@Override
public ProcessResult getCopy(int id) {
    ProcessResult response = super.getCopy(id);
    // Ensure he isn't running
    ((AbstractActionVO<?>) response.getData().get("vo")).setEnabled(false);
    return response;
}
Also used : ProcessResult(com.serotonin.m2m2.i18n.ProcessResult) AbstractActionVO(com.serotonin.m2m2.vo.AbstractActionVO) DwrPermission(com.serotonin.m2m2.web.dwr.util.DwrPermission)

Aggregations

ProcessResult (com.serotonin.m2m2.i18n.ProcessResult)1 AbstractActionVO (com.serotonin.m2m2.vo.AbstractActionVO)1 DwrPermission (com.serotonin.m2m2.web.dwr.util.DwrPermission)1