maia_modificado/.svn/pristine/53/531b0338e55f28486e57149469a...

52 lines
1.2 KiB
Plaintext
Executable File

/*
*
*/
package com.fp.bpmlib.transaction.task;
import com.fp.dto.rules.TransactionRule;
import com.fp.dto.save.SaveRequest;
// TODO: Auto-generated Javadoc
/**
* Class AddResource encargada de.
*
* @author gfiallos
*/
public class AddResource extends TransactionRule {
/** Constante serialVersionUID. */
private static final long serialVersionUID = 1L;
/**
* Normal process.
*
* @param pReq the req
* @return save request
* @throws Exception la exception
*/
@Override
public SaveRequest normalProcess(SaveRequest pReq) throws Exception {
String type = (String) pReq.get("TYPE");
String name = (String) pReq.get("NAME");
if ("U".equals(type)) {
//TaskServerSingleton.getInstance().getDaemon().addUser(name);
} else {
//TaskServerSingleton.getInstance().getDaemon().addGroup(name);
}
return pReq;
}
/**
* Reverse process.
*
* @param pReq the req
* @return save request
* @throws Exception la exception
*/
@Override
public SaveRequest reverseProcess(SaveRequest pReq) throws Exception {
return pReq;
}
}