Package ch.tocco.nice2.marking.impl
Class EntityMarkServiceImpl
java.lang.Object
ch.tocco.nice2.marking.impl.EntityMarkServiceImpl
- All Implemented Interfaces:
EntityMarkService
Methods for marking an entity
-
Constructor Summary
ConstructorDescriptionEntityMarkServiceImpl
(PersistenceService persistenceService, DataModel dataModel) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isMarkedForCurrentUser
(Entity entity) isMarkedForCurrentUser
(String entityModelName, PrimaryKeyList primaryKeys) void
markEntities
(EntityList entities, Entity user) Mark a number of entitiesvoid
markEntitiesForCurrentUser
(EntityList entities) Mark a number of entities for the current uservoid
markEntitiesForUsers
(EntityList entities, EntityList users) Mark a number of entities for multiple usersvoid
markEntity
(Entity entity, Entity user) Mark a single entityvoid
markEntityForCurrentUser
(Entity entity) Mark a single entity for the current uservoid
markEntityForUsers
(Entity entity, EntityList users) Mark an entity for multiple usersvoid
unmarkEntities
(EntityList entities, Entity user) Unmark a number of entitiesvoid
unmarkEntitiesForCurrentUser
(EntityList entities) Unmark a number of entities for current uservoid
unmarkEntitiesForUsers
(EntityList entities, EntityList users) Unmark a number of entities for multiple usersvoid
unmarkEntity
(Entity entity, Entity user) Unmark a single entityvoid
unmarkEntityForCurrentUser
(Entity entity) Unmark a single entity for current uservoid
unmarkEntityForUsers
(Entity entity, EntityList users) Unmark entites for multiple users
-
Constructor Details
-
EntityMarkServiceImpl
-
-
Method Details
-
markEntity
Description copied from interface:EntityMarkService
Mark a single entity- Specified by:
markEntity
in interfaceEntityMarkService
- Parameters:
entity
- the entity to markuser
- the user that marks the entity
-
markEntityForCurrentUser
Description copied from interface:EntityMarkService
Mark a single entity for the current user- Specified by:
markEntityForCurrentUser
in interfaceEntityMarkService
- Parameters:
entity
- the entity to mark
-
markEntities
Description copied from interface:EntityMarkService
Mark a number of entities- Specified by:
markEntities
in interfaceEntityMarkService
- Parameters:
entities
- the entities to markuser
- the user that marks the entities
-
markEntitiesForCurrentUser
Description copied from interface:EntityMarkService
Mark a number of entities for the current user- Specified by:
markEntitiesForCurrentUser
in interfaceEntityMarkService
- Parameters:
entities
- the entities to mark
-
unmarkEntity
Description copied from interface:EntityMarkService
Unmark a single entity- Specified by:
unmarkEntity
in interfaceEntityMarkService
- Parameters:
entity
- the entity to unmarkuser
- the user that unmarks the entity
-
unmarkEntityForCurrentUser
Description copied from interface:EntityMarkService
Unmark a single entity for current user- Specified by:
unmarkEntityForCurrentUser
in interfaceEntityMarkService
- Parameters:
entity
- the entity to unmark
-
unmarkEntities
Description copied from interface:EntityMarkService
Unmark a number of entities- Specified by:
unmarkEntities
in interfaceEntityMarkService
- Parameters:
entities
- the entities to unmarkuser
- the user that unmarks the entities
-
unmarkEntitiesForCurrentUser
Description copied from interface:EntityMarkService
Unmark a number of entities for current user- Specified by:
unmarkEntitiesForCurrentUser
in interfaceEntityMarkService
- Parameters:
entities
- the entities to unmark
-
markEntityForUsers
Description copied from interface:EntityMarkService
Mark an entity for multiple users- Specified by:
markEntityForUsers
in interfaceEntityMarkService
- Parameters:
entity
- the entity to markusers
- the users that mark a entity
-
unmarkEntityForUsers
Description copied from interface:EntityMarkService
Unmark entites for multiple users- Specified by:
unmarkEntityForUsers
in interfaceEntityMarkService
- Parameters:
entity
- the entity to unmarkusers
- the users that unmark an entity
-
markEntitiesForUsers
Description copied from interface:EntityMarkService
Mark a number of entities for multiple users- Specified by:
markEntitiesForUsers
in interfaceEntityMarkService
- Parameters:
entities
- the entities to markusers
- the users that mark the entities
-
unmarkEntitiesForUsers
Description copied from interface:EntityMarkService
Unmark a number of entities for multiple users- Specified by:
unmarkEntitiesForUsers
in interfaceEntityMarkService
- Parameters:
entities
- the entities to unmarkusers
- the users that unmark the entities
-
isMarkedForCurrentUser
- Specified by:
isMarkedForCurrentUser
in interfaceEntityMarkService
-
isMarkedForCurrentUser
public Map<String,Boolean> isMarkedForCurrentUser(String entityModelName, PrimaryKeyList primaryKeys) - Specified by:
isMarkedForCurrentUser
in interfaceEntityMarkService
-