Class AccomplishmentActionServiceImpl
java.lang.Object
ch.tocco.nice2.usermanager.impl.accomplishment.AccomplishmentActionServiceImpl
- All Implemented Interfaces:
AccomplishmentActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.usermanager.api.accomplishment.AccomplishmentActionService
AccomplishmentActionService.DeleteRequest, AccomplishmentActionService.UpdateRequest
-
Constructor Summary
ConstructorDescriptionAccomplishmentActionServiceImpl
(EntityExplorerActionSelectionService selectionService, Context context, SecurityManager securityManager, RuleRoleService ruleRoleService, EntityDefaultValueService entityDefaultValueService, QueryBuilderFactory queryBuilder, CommandExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setAdditionalAccomplishmentUserRelations
(List<AdditionalAccomplishmentUserRelationContribution> contributions) void
void
updateAccomplishmentsForEntity
(AccomplishmentActionService.UpdateRequest request, Entity sourceEntity) runs the update defined in theAccomplishmentActionService.UpdateRequest
void
updateAccomplishmentsForEntityForGivenUsers
(AccomplishmentActionService.UpdateRequest request, Entity sourceEntity, Set<PrimaryKey> users) runs the update defined in theAccomplishmentActionService.UpdateRequest
-
Constructor Details
-
AccomplishmentActionServiceImpl
public AccomplishmentActionServiceImpl(EntityExplorerActionSelectionService selectionService, Context context, SecurityManager securityManager, RuleRoleService ruleRoleService, EntityDefaultValueService entityDefaultValueService, QueryBuilderFactory queryBuilder, CommandExecutor executor)
-
-
Method Details
-
updateAccomplishments
Description copied from interface:AccomplishmentActionService
callsAccomplishmentActionService.updateAccomplishmentsForEntity(UpdateRequest, Entity)
with the selection inAccomplishmentActionService.UpdateRequest.getSelection()
- Specified by:
updateAccomplishments
in interfaceAccomplishmentActionService
-
updateAccomplishmentsForEntity
public void updateAccomplishmentsForEntity(AccomplishmentActionService.UpdateRequest request, Entity sourceEntity) Description copied from interface:AccomplishmentActionService
runs the update defined in theAccomplishmentActionService.UpdateRequest
- Specified by:
updateAccomplishmentsForEntity
in interfaceAccomplishmentActionService
- Parameters:
request
- the config to use when updating accomplishmentssourceEntity
- the entity to run the update against
-
updateAccomplishmentsForEntityForGivenUsers
public void updateAccomplishmentsForEntityForGivenUsers(AccomplishmentActionService.UpdateRequest request, Entity sourceEntity, Set<PrimaryKey> users) Description copied from interface:AccomplishmentActionService
runs the update defined in theAccomplishmentActionService.UpdateRequest
- Specified by:
updateAccomplishmentsForEntityForGivenUsers
in interfaceAccomplishmentActionService
- Parameters:
request
- the config to use when updating accomplishmentssourceEntity
- the entity to run the update againstusers
- users for which the accomplishments should be created
-
deleteAccomplishments
- Specified by:
deleteAccomplishments
in interfaceAccomplishmentActionService
-
setAdditionalAccomplishmentUserRelations
@Autowired(required=false) public void setAdditionalAccomplishmentUserRelations(List<AdditionalAccomplishmentUserRelationContribution> contributions)
-