Package ch.tocco.nice2.marking.api
Interface EntityMarkService
- All Known Implementing Classes:
EntityMarkServiceImpl
public interface EntityMarkService
Methods for marking entities
-
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
-
Method Details
-
markEntity
Mark a single entity- Parameters:
entity
- the entity to markuser
- the user that marks the entity
-
markEntityForCurrentUser
Mark a single entity for the current user- Parameters:
entity
- the entity to mark
-
markEntities
Mark a number of entities- Parameters:
entities
- the entities to markuser
- the user that marks the entities
-
markEntitiesForCurrentUser
Mark a number of entities for the current user- Parameters:
entities
- the entities to mark
-
unmarkEntity
Unmark a single entity- Parameters:
entity
- the entity to unmarkuser
- the user that unmarks the entity
-
unmarkEntityForCurrentUser
Unmark a single entity for current user- Parameters:
entity
- the entity to unmark
-
unmarkEntities
Unmark a number of entities- Parameters:
entities
- the entities to unmarkuser
- the user that unmarks the entities
-
unmarkEntitiesForCurrentUser
Unmark a number of entities for current user- Parameters:
entities
- the entities to unmark
-
markEntityForUsers
Mark an entity for multiple users- Parameters:
entity
- the entity to markusers
- the users that mark a entity
-
unmarkEntityForUsers
Unmark entites for multiple users- Parameters:
entity
- the entity to unmarkusers
- the users that unmark an entity
-
markEntitiesForUsers
Mark a number of entities for multiple users- Parameters:
entities
- the entities to markusers
- the users that mark the entities
-
unmarkEntitiesForUsers
Unmark a number of entities for multiple users- Parameters:
entities
- the entities to unmarkusers
- the users that unmark the entities
-
isMarkedForCurrentUser
-
isMarkedForCurrentUser
-