Class NextGroupService
- java.lang.Object
-
- com.netgrif.application.engine.orgstructure.groups.NextGroupService
-
- All Implemented Interfaces:
INextGroupService
@Service public class NextGroupService extends java.lang.Object implements INextGroupService
-
-
Field Summary
Fields Modifier and Type Field Description protected IDataServicedataServiceprotected IElasticCaseServiceelasticCaseServiceprotected static java.lang.StringGROUP_AUTHOR_FIELDprotected static java.lang.StringGROUP_CASE_IDENTIFIERprotected static java.lang.StringGROUP_INIT_TASK_IDprotected static java.lang.StringGROUP_MEMBERS_FIELDprotected static java.lang.StringGROUP_NET_IDENTIFIERprotected static java.lang.StringGROUP_TITLE_FIELDprotected IMailAttemptServicemailAttemptServiceprotected IMailServicemailServiceprotected IPetriNetServicepetriNetServiceprotected IRegistrationServiceregistrationServiceprotected ISecurityContextServicesecurityContextServiceprotected ITaskServicetaskServiceprotected IUserServiceuserServiceprotected IWorkflowServiceworkflowService
-
Constructor Summary
Constructors Constructor Description NextGroupService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUser(IUser user, Case groupCase)voidaddUser(IUser user, java.lang.String groupId)java.util.Map<java.lang.String,I18nString>addUser(IUser user, java.util.Map<java.lang.String,I18nString> existingUsers)voidaddUserToDefaultGroup(IUser user)protected booleanauthorHasDefaultGroup(IUser author)CreateCaseEventOutcomecreateDefaultSystemGroup(IUser author)CreateCaseEventOutcomecreateGroup(IUser author)CreateCaseEventOutcomecreateGroup(java.lang.String title, IUser author)java.util.List<Case>findAllGroups()java.util.List<Case>findByIds(java.util.Collection<java.lang.String> groupIds)CasefindByName(java.lang.String name)java.util.List<Case>findByPredicate(com.querydsl.core.types.Predicate predicate)CasefindDefaultGroup()CasefindGroup(java.lang.String groupID)protected CasefindUserDefaultGroup(IUser author)java.util.Set<java.lang.String>getAllCoMembers(IUser user)java.util.Set<java.lang.String>getAllGroupsOfUser(IUser groupUser)protected TaskgetGroupInitTask(Case groupCase)protected java.lang.StringgetGroupOwnerEmail(Case groupCase)java.lang.StringgetGroupOwnerEmail(java.lang.String groupId)protected java.lang.StringgetGroupOwnerId(Case groupCase)java.lang.StringgetGroupOwnerId(java.lang.String groupId)java.util.Collection<java.lang.String>getGroupsOwnerEmails(java.util.Collection<java.lang.String> groupIds)java.util.Collection<java.lang.String>getGroupsOwnerIds(java.util.Collection<java.lang.String> groupIds)protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>getInitialGroupData(IUser author, java.lang.String title, Case groupCase)java.util.List<IUser>getMembers(Case groupCase)protected static com.querydsl.core.types.dsl.BooleanExpressiongroupCase()java.util.Map<java.lang.String,I18nString>inviteUser(java.lang.String email, java.util.Map<java.lang.String,I18nString> existingUsers, Case groupCase)protected booleanisGroupCase(Case aCase)voidremoveUser(IUser user, Case groupCase)java.util.Map<java.lang.String,I18nString>removeUser(java.util.HashSet<java.lang.String> usersToRemove, java.util.Map<java.lang.String,I18nString> existingUsers, Case groupCase)
-
-
-
Field Detail
-
workflowService
@Autowired protected IWorkflowService workflowService
-
mailService
@Autowired protected IMailService mailService
-
mailAttemptService
@Autowired protected IMailAttemptService mailAttemptService
-
userService
@Autowired protected IUserService userService
-
dataService
@Autowired protected IDataService dataService
-
registrationService
@Autowired protected IRegistrationService registrationService
-
petriNetService
@Autowired protected IPetriNetService petriNetService
-
taskService
@Autowired protected ITaskService taskService
-
elasticCaseService
@Autowired protected IElasticCaseService elasticCaseService
-
securityContextService
@Autowired protected ISecurityContextService securityContextService
-
GROUP_NET_IDENTIFIER
protected static final java.lang.String GROUP_NET_IDENTIFIER
- See Also:
- Constant Field Values
-
GROUP_INIT_TASK_ID
protected static final java.lang.String GROUP_INIT_TASK_ID
- See Also:
- Constant Field Values
-
GROUP_CASE_IDENTIFIER
protected static final java.lang.String GROUP_CASE_IDENTIFIER
- See Also:
- Constant Field Values
-
GROUP_MEMBERS_FIELD
protected static final java.lang.String GROUP_MEMBERS_FIELD
- See Also:
- Constant Field Values
-
GROUP_AUTHOR_FIELD
protected static final java.lang.String GROUP_AUTHOR_FIELD
- See Also:
- Constant Field Values
-
GROUP_TITLE_FIELD
protected static final java.lang.String GROUP_TITLE_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
createDefaultSystemGroup
public CreateCaseEventOutcome createDefaultSystemGroup(IUser author)
- Specified by:
createDefaultSystemGroupin interfaceINextGroupService
-
createGroup
public CreateCaseEventOutcome createGroup(IUser author)
- Specified by:
createGroupin interfaceINextGroupService
-
createGroup
public CreateCaseEventOutcome createGroup(java.lang.String title, IUser author)
- Specified by:
createGroupin interfaceINextGroupService
-
findGroup
public Case findGroup(java.lang.String groupID)
- Specified by:
findGroupin interfaceINextGroupService
-
findDefaultGroup
public Case findDefaultGroup()
- Specified by:
findDefaultGroupin interfaceINextGroupService
-
findByName
public Case findByName(java.lang.String name)
- Specified by:
findByNamein interfaceINextGroupService
-
findByPredicate
public java.util.List<Case> findByPredicate(com.querydsl.core.types.Predicate predicate)
- Specified by:
findByPredicatein interfaceINextGroupService
-
findByIds
public java.util.List<Case> findByIds(java.util.Collection<java.lang.String> groupIds)
- Specified by:
findByIdsin interfaceINextGroupService
-
findAllGroups
public java.util.List<Case> findAllGroups()
- Specified by:
findAllGroupsin interfaceINextGroupService
-
inviteUser
public java.util.Map<java.lang.String,I18nString> inviteUser(java.lang.String email, java.util.Map<java.lang.String,I18nString> existingUsers, Case groupCase)
- Specified by:
inviteUserin interfaceINextGroupService
-
addUserToDefaultGroup
public void addUserToDefaultGroup(IUser user)
- Specified by:
addUserToDefaultGroupin interfaceINextGroupService
-
addUser
public void addUser(IUser user, java.lang.String groupId)
- Specified by:
addUserin interfaceINextGroupService
-
addUser
public void addUser(IUser user, Case groupCase)
- Specified by:
addUserin interfaceINextGroupService
-
addUser
public java.util.Map<java.lang.String,I18nString> addUser(IUser user, java.util.Map<java.lang.String,I18nString> existingUsers)
- Specified by:
addUserin interfaceINextGroupService
-
removeUser
public void removeUser(IUser user, Case groupCase)
- Specified by:
removeUserin interfaceINextGroupService
-
removeUser
public java.util.Map<java.lang.String,I18nString> removeUser(java.util.HashSet<java.lang.String> usersToRemove, java.util.Map<java.lang.String,I18nString> existingUsers, Case groupCase)
- Specified by:
removeUserin interfaceINextGroupService
-
getAllCoMembers
public java.util.Set<java.lang.String> getAllCoMembers(IUser user)
- Specified by:
getAllCoMembersin interfaceINextGroupService
-
getMembers
public java.util.List<IUser> getMembers(Case groupCase)
- Specified by:
getMembersin interfaceINextGroupService
-
getAllGroupsOfUser
public java.util.Set<java.lang.String> getAllGroupsOfUser(IUser groupUser)
- Specified by:
getAllGroupsOfUserin interfaceINextGroupService
-
getGroupOwnerId
public java.lang.String getGroupOwnerId(java.lang.String groupId)
- Specified by:
getGroupOwnerIdin interfaceINextGroupService
-
getGroupsOwnerIds
public java.util.Collection<java.lang.String> getGroupsOwnerIds(java.util.Collection<java.lang.String> groupIds)
- Specified by:
getGroupsOwnerIdsin interfaceINextGroupService
-
getGroupOwnerEmail
public java.lang.String getGroupOwnerEmail(java.lang.String groupId)
- Specified by:
getGroupOwnerEmailin interfaceINextGroupService
-
getGroupsOwnerEmails
public java.util.Collection<java.lang.String> getGroupsOwnerEmails(java.util.Collection<java.lang.String> groupIds)
- Specified by:
getGroupsOwnerEmailsin interfaceINextGroupService
-
groupCase
protected static com.querydsl.core.types.dsl.BooleanExpression groupCase()
-
isGroupCase
protected boolean isGroupCase(Case aCase)
-
authorHasDefaultGroup
protected boolean authorHasDefaultGroup(IUser author)
-
getGroupOwnerId
protected java.lang.String getGroupOwnerId(Case groupCase)
-
getInitialGroupData
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getInitialGroupData(IUser author, java.lang.String title, Case groupCase)
-
getGroupOwnerEmail
protected java.lang.String getGroupOwnerEmail(Case groupCase)
-
-