|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormsOnlineDAO
| Method Summary | |
|---|---|
FormDetail |
createForm(FormDetail formDetail)
Save new form in database |
FormInstance |
createInstance(FormInstance instance)
|
FormDetail |
deleteForm(FormPK pk)
Delete Form from database |
void |
deleteRequest(RequestPK pk)
|
List<FormDetail> |
findAllForms(String instanceId)
Get all forms that has been created in given instance |
List<String> |
getAvailableFormIdsAsReceiver(String instanceId,
String userId,
String[] userGroupIds)
|
FormDetail |
getForm(FormPK pk)
Load forms from database with given instance Id and form id |
List<FormDetail> |
getForms(List<String> formIds)
|
List<FormInstance> |
getReceivedRequests(FormPK pk,
boolean allRequests,
String userId)
Get all requests associated to given form. |
List<String> |
getReceiversAsGroups(FormPK pk)
Get the form's receivers list where groups has been declared directly. |
List<String> |
getReceiversAsUsers(FormPK pk)
Get the form's receivers list where users has been declared directly. |
FormInstance |
getRequest(RequestPK pk)
|
List<String> |
getSendersAsGroups(FormPK pk)
Get the form's senders list where groups has been declared directly. |
List<String> |
getSendersAsUsers(FormPK pk)
Get the form's senders list where users has been declared directly. |
List<FormInstance> |
getSentFormInstances(FormPK pk,
String userId)
Get all form instances that have been sent by given user (excepted the ones that have been archived. |
List<FormDetail> |
getUserAvailableForms(String componentId,
String userId,
String[] userGroupIds)
Get the form available to be sent for given user or given groups |
void |
updateForm(FormDetail formDetail)
Update form in database |
void |
updateReceivers(FormPK pk,
String[] newUserReceiverIds,
String[] newGroupReceiverIds)
Update form receivers list. |
void |
updateRequest(FormInstance instance)
|
void |
updateSenders(FormPK pk,
String[] newUserSenderIds,
String[] newGroupSenderIds)
Update form senders list. |
| Method Detail |
|---|
List<FormDetail> findAllForms(String instanceId)
throws FormsOnlineDatabaseException
instanceId - the instance id
FormsOnlineDatabaseException
FormDetail getForm(FormPK pk)
throws FormsOnlineDatabaseException
pk - the form primary key
FormsOnlineDatabaseException
FormDetail createForm(FormDetail formDetail)
throws FormsOnlineDatabaseException
formDetail - the form detail
FormsOnlineDatabaseException
void updateForm(FormDetail formDetail)
throws FormsOnlineDatabaseException
formDetail - the form detail
FormsOnlineDatabaseException
FormDetail deleteForm(FormPK pk)
throws FormsOnlineDatabaseException
pk - the pk of form to be deleted
FormsOnlineDatabaseException
void updateSenders(FormPK pk,
String[] newUserSenderIds,
String[] newGroupSenderIds)
throws FormsOnlineDatabaseException
pk - the form primary keynewUserSenderIds - the new sender list as user idsnewGroupSenderIds - the new sender list as group ids
FormsOnlineDatabaseException
void updateReceivers(FormPK pk,
String[] newUserReceiverIds,
String[] newGroupReceiverIds)
throws FormsOnlineDatabaseException
pk - the form primary keynewUserReceiverIds - the new receivers list as user idsnewGroupReceiverIds - the new receivers list as group ids
FormsOnlineDatabaseException
List<String> getSendersAsUsers(FormPK pk)
throws FormsOnlineDatabaseException
pk - the form primary key
FormsOnlineDatabaseException
List<String> getSendersAsGroups(FormPK pk)
throws FormsOnlineDatabaseException
pk - the form primary key
FormsOnlineDatabaseException
List<String> getReceiversAsUsers(FormPK pk)
throws FormsOnlineDatabaseException
pk - the form primary key
FormsOnlineDatabaseException
List<String> getReceiversAsGroups(FormPK pk)
throws FormsOnlineDatabaseException
pk - the form primary key
FormsOnlineDatabaseException
List<FormDetail> getUserAvailableForms(String componentId,
String userId,
String[] userGroupIds)
throws FormsOnlineDatabaseException
componentId - the component instance iduserId - the user iduserGroupIds - the user's groups id list
FormsOnlineDatabaseException
List<FormInstance> getSentFormInstances(FormPK pk,
String userId)
throws FormsOnlineDatabaseException
pk - the form primary keyuserId - the user id
FormsOnlineDatabaseException
List<FormInstance> getReceivedRequests(FormPK pk,
boolean allRequests,
String userId)
throws FormsOnlineDatabaseException
pk - the form primary keyallRequests - userId - the user id
FormsOnlineDatabaseException
List<String> getAvailableFormIdsAsReceiver(String instanceId,
String userId,
String[] userGroupIds)
throws FormsOnlineDatabaseException
FormsOnlineDatabaseException
FormInstance createInstance(FormInstance instance)
throws FormsOnlineDatabaseException
FormsOnlineDatabaseException
FormInstance getRequest(RequestPK pk)
throws FormsOnlineDatabaseException
FormsOnlineDatabaseException
List<FormDetail> getForms(List<String> formIds)
throws FormsOnlineDatabaseException
FormsOnlineDatabaseException
void updateRequest(FormInstance instance)
throws FormsOnlineDatabaseException
FormsOnlineDatabaseException
void deleteRequest(RequestPK pk)
throws FormsOnlineDatabaseException
FormsOnlineDatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||