Package com.avoka.fc.core.dao
Class GroupDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.GroupDao
Provides a DAO for the Group entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addGroupsToSubmission
(Collection<String> groupNames, Submission submission) Add the specified groups to the submission.void
addGroupToSubmission
(Group group, Submission submission) Add the specified group to the submission.createUpdateFormGroup
(String groupName, String description, boolean formWorkGroupFlag, boolean newFormFlag, boolean savedFormFlag, boolean completedFormFlag) Create a Form Group for the given name and group attributes.getCompletedFormGroupsForUser
(UserAccount userAccount) Return the list of completed form groups that a user is a member of.The list of all groups ordered by group namegetGroupForName
(String name) Return the group with the specified namegetGroupForPK
(Object id) Return the group with the specified OIDThe list of all groups ordered by group namegetGroupList
(String keyword) Return the list of groups matching the specified search criteria, ordered by group name.getGroupList
(String keyword, String type) Return the list of groups matching the specified search criteria, ordered by group namegetGroupsForUser
(UserAccount userAccount, String groupType) Return the list of form groups that a user is a member of.The list of all job groups ordered by group namegetNewFormGroupsForUser
(UserAccount userAccount) Return the list of new form groups that a user is a member of.getPurgeJobGroupList
(int fetchLimit) The list of job groups which marked to purge and there is no job associated with itgetPurgeSubmissionGroupList
(int fetchLimit) The list of Submission groups which marked to purge and there is no submission associated with itgetSavedFormGroupsForUser
(UserAccount userAccount) Return the list of saved form groups that a user is a member of.void
Load the list of pre-defined groups, unless they already exist.Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
GroupDao
public GroupDao()
-
-
Method Details
-
getGroupForPK
Return the group with the specified OID- Parameters:
id
- the OID- Returns:
- the matching group, or null if not found
-
loadDefaultGroups
public void loadDefaultGroups()Load the list of pre-defined groups, unless they already exist. -
getGroupForName
Return the group with the specified name- Parameters:
name
- the group name- Returns:
- the matching group
-
getGroupList
Return the list of groups matching the specified search criteria, ordered by group name.- Parameters:
keyword
- the search keyword- Returns:
- the list of matching groups
-
getGroupList
Return the list of groups matching the specified search criteria, ordered by group name- Parameters:
keyword
- the search keywordtype
- the group type filter- Returns:
- the list of matching groups
- Since:
- 4.1.0
-
getGroupList
The list of all groups ordered by group name- Returns:
- the list of groups
-
getFormGroupList
The list of all groups ordered by group name- Returns:
- the list of groups
-
getJobGroupList
The list of all job groups ordered by group name- Returns:
- the list of groups
- Since:
- 17.10.0
-
getPurgeJobGroupList
The list of job groups which marked to purge and there is no job associated with it- Parameters:
fetchLimit
- the query fetch limit- Returns:
- The list of job groups
- Since:
- 21.11.0
-
getPurgeSubmissionGroupList
The list of Submission groups which marked to purge and there is no submission associated with it- Parameters:
fetchLimit
- the query fetch limit- Returns:
- The list of Form groups
- Since:
- 21.11.0
-
getGroupsForUser
Return the list of form groups that a user is a member of.- Parameters:
userAccount
- the non-null user accountgroupType
- type of group, i.e. Form, Job, etc- Returns:
- the list of groups for the user
- Since:
- 19.05.0
-
getNewFormGroupsForUser
Return the list of new form groups that a user is a member of.- Parameters:
userAccount
- the non-null user account- Returns:
- the list of groups for the user
- Since:
- 3.6.0
-
getSavedFormGroupsForUser
Return the list of saved form groups that a user is a member of.- Parameters:
userAccount
- the non-null user account- Returns:
- the list of groups for the user
- Since:
- 3.6.0
-
getCompletedFormGroupsForUser
Return the list of completed form groups that a user is a member of.- Parameters:
userAccount
- the non-null user account- Returns:
- the list of groups for the user
- Since:
- 3.6.0
-
addGroupsToSubmission
Add the specified groups to the submission. If any of the specified groups are not configured to 'Form Share With Group' then it will not be added to the submission group. Please note this method will note commit database changes.- Parameters:
groupNames
- the names of the groups to add to the submission (required)submission
- the submission object to add the groups to (required)- Returns:
- true if one or more submission groups was added to the submission, or false otherwise
- Since:
- 3.6.5
-
addGroupToSubmission
Add the specified group to the submission. Please note this method will note commit database changes.- Parameters:
group
- the form group to add to the submission (required)submission
- the submission object to add the group to (required)- Since:
- 4.0.0
-
createUpdateFormGroup
public Group createUpdateFormGroup(String groupName, String description, boolean formWorkGroupFlag, boolean newFormFlag, boolean savedFormFlag, boolean completedFormFlag) Create a Form Group for the given name and group attributes. Please note this method will note commit database changes.- Parameters:
groupName
- the name of the group (required)description
- the group descriptionformWorkGroupFlag
- the form work group flagnewFormFlag
- the new form access control flagsavedFormFlag
- the saved form/task access control flagcompletedFormFlag
- the completed forms access control flag- Returns:
- the created or updated form group
- Since:
- 4.0.0
-