|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
net.ezcontent.impl.dao.GlobalDAO
net.ezcontent.impl.dao.FlujoDAO
El DAO que maneja los objetos para flujo de trabajo.
| Field Summary | |
static String |
INITIAL_ACTION_NAME
|
| Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
| Constructor Summary | |
FlujoDAO()
|
|
| Method Summary | |
List |
allActionTypes()
Devuelve todos los tipos de accion, incluyendo el tipo especial _ezContent_Initial_Action. |
Action |
createAction(ActionType type,
Record rec)
Crea una nueva accion del tipo especificado, sobre el registro especificado. |
Action |
createAction(ActionType type,
User assignee,
Record rec)
Crea una nueva accion del tipo determinado, asignandola al usuario especificado, sobre el registro especificado. |
ActionType |
createActionType()
Crea un nuevo tipo de accion. |
void |
finishAction(Action action,
Status finishStatus)
Marca como terminada la accion especificada. |
void |
finishAction(Action action,
String finishStatus)
Marca la accion especificada con el status especificado y le fija la fecha de terminacion al momento de la llamada. |
List |
getActionsForRecord(Record rec)
Busca y deuvelve las acciones cuyo destino es el registro especificado. |
List |
getActionsForUser(String username)
Busca y devuelve las acciones asignadas a un usuario, buscando primero al usuario por nombre. |
List |
getActionsForUser(User user)
Busca y devuelve las acciones asignadas a un usuario. |
ActionType |
getActionType(int typeID)
Busca y devuelve el tipo de accion con la clave especificada. |
ActionType |
getActionType(String name)
Busca y devuelve el tipo de accion con el nombre especificado. |
List |
getInitialActionTypes()
Devuelve los tipos de accion iniciales. |
List |
getNextActionTypes(ActionType type)
Devuelve los tipos de accion que siguen a un tipo especificado. |
List |
getPendingActionsForUser(String username)
Busca y devuelve las acciones asignadas a un usuario, buscando primero al usuario por nombre. |
List |
getPendingActionsForUser(User user)
Busca y devuelve las acciones asignadas a un usuario, que no han sido marcadas como terminadas. |
List |
getPossibleActions(User user)
Devuelve los tipos de accion que puede realizar un usuario. |
| Methods inherited from class net.ezcontent.impl.dao.GlobalDAO |
delete, delete, findAll, findAll, getStatus, getStatus, getStatus, getStatus, getStatusList, getStatusList, refresh, refresh, save, save, update, update |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.ezcontent.dao.GenericDAO |
delete, delete, findAll, findAll, getStatus, getStatus, getStatusList, refresh, refresh, save, save, update, update |
| Field Detail |
public static final String INITIAL_ACTION_NAME
| Constructor Detail |
public FlujoDAO()
| Method Detail |
public List getInitialActionTypes()
getInitialActionTypes in interface FlowDAOFlowDAO.getInitialActionTypes()public List allActionTypes()
allActionTypes in interface FlowDAOFlowDAO.allActionTypes()public ActionType getActionType(String name)
getActionType in interface FlowDAOFlowDAO.getActionType(java.lang.String)public ActionType getActionType(int typeID)
getActionType in interface FlowDAOFlowDAO.getActionType(int)public List getNextActionTypes(ActionType type)
getNextActionTypes in interface FlowDAOFlowDAO.getNextActionTypes(net.ezcontent.flow.ActionType)public List getActionsForUser(User user)
getActionsForUser in interface FlowDAOFlowDAO.getActionsForUser(net.ezcontent.auth.User)public List getActionsForUser(String username)
getActionsForUser in interface FlowDAOFlowDAO.getActionsForUser(java.lang.String)public List getPendingActionsForUser(User user)
getPendingActionsForUser in interface FlowDAOFlowDAO.getPendingActionsForUser(net.ezcontent.auth.User)public List getPendingActionsForUser(String username)
getPendingActionsForUser in interface FlowDAOFlowDAO.getPendingActionsForUser(java.lang.String)public List getActionsForRecord(Record rec)
getActionsForRecord in interface FlowDAOFlowDAO.getActionsForRecord(net.ezcontent.records.Record)
public void finishAction(Action action,
Status finishStatus)
finishAction in interface FlowDAOFlowDAO.finishAction(net.ezcontent.flow.Action, net.ezcontent.records.Status)
public void finishAction(Action action,
String finishStatus)
finishAction in interface FlowDAOFlowDAO.finishAction(net.ezcontent.flow.Action, java.lang.String)
public Action createAction(ActionType type,
User assignee,
Record rec)
createAction in interface FlowDAOtype - El tipo de la accion que hay que crear.rec - El objeto sobre el cual se va a realizar la accion.assignee - El usuario al cual se va a asignar esta nueva accion.FlowDAO.createAction(net.ezcontent.flow.ActionType, net.ezcontent.auth.User, net.ezcontent.records.Record)
public Action createAction(ActionType type,
Record rec)
createAction in interface FlowDAOtype - El tipo de la accion que hay que crear.rec - El objeto sobre el cual se va a realizar la accion.FlowDAO.createAction(net.ezcontent.flow.ActionType, net.ezcontent.records.Record)public List getPossibleActions(User user)
getPossibleActions in interface FlowDAOFlowDAO.getPossibleActions(net.ezcontent.auth.User)public ActionType createActionType()
createActionType in interface FlowDAO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||