public class UserToBlogRoleMappingDaoImpl extends UserToBlogRoleMappingDaoBase
UserToBlogRoleMappingTRANSFORM_NONE| Modifier and Type | Method and Description |
|---|---|
Object |
create(int transform,
UserToBlogRoleMapping userToBlogRoleMapping)
Does the same thing as
UserToBlogRoleMappingDao.create(com.communote.server.model.blog.UserToBlogRoleMapping)
with an additional flag called transform. |
Collection<UserToBlogRoleMapping> |
findMappings(Long blogId,
Long userId,
Long groupId,
Boolean grantedByGroup,
BlogRole role)
Retrieves mappings matching the parameters.
|
protected Collection<UserToBlogRoleMapping> |
handleFindMappingsForExternal(Long blogId,
Long userId,
Long groupId,
boolean grantedByGroup,
BlogRole role,
String externalSystem)
|
protected BlogRole |
handleGetRoleOfUser(Long blogId,
Long userId)
Performs the core logic for
UserToBlogRoleMappingDaoBase.getRoleOfUser(Long, Long) |
protected void |
handleRemoveAllForBlog(Long blogId)
Performs the core logic for
UserToBlogRoleMappingDaoBase.removeAllForBlog(Long) |
protected void |
handleRemoveAllForGroup(Long groupId)
Performs the core logic for
UserToBlogRoleMappingDaoBase.removeAllForGroup(Long) |
protected void |
handleRemoveAllForGroupMember(Long userId,
Long groupId)
Performs the core logic for
UserToBlogRoleMappingDaoBase.removeAllForGroupMember(Long, Long) |
void |
remove(Collection<UserToBlogRoleMapping> entities)
Removes all entities in the given
entities |
void |
remove(UserToBlogRoleMapping userToBlogRoleMapping)
Removes the instance of com.communote.server.persistence.blog.UserToBlogRoleMapping from the
persistent store.
|
create, create, create, evict, findMappingsForExternal, getRoleOfUser, load, load, loadAll, loadAll, remove, removeAllForBlog, removeAllForGroup, removeAllForGroupMember, transformEntities, transformEntity, update, updatepublic Object create(int transform, UserToBlogRoleMapping userToBlogRoleMapping)
Does the same thing as UserToBlogRoleMappingDao.create(com.communote.server.model.blog.UserToBlogRoleMapping)
with an additional flag called transform. If this flag is set to
TRANSFORM_NONE then the returned entity will NOT be
transformed. If this flag is any of the other constants defined here then the result
WILL BE passed through an operation which can optionally transform the
entity (into a value object for example). By default, transformation does not occur.
create in interface UserToBlogRoleMappingDaocreate in class UserToBlogRoleMappingDaoBasecom.communote.server.persistence.blog.UserToBlogRoleMappingDao#create(int transform,
com.communote.server.persistence.blog.UserToBlogRoleMapping)public Collection<UserToBlogRoleMapping> findMappings(Long blogId, Long userId, Long groupId, Boolean grantedByGroup, BlogRole role)
grantedByGroup - whether the mappings should be granted by a group. If null this doesn't matter,
set to true or false to explicitly include this filter.protected Collection<UserToBlogRoleMapping> handleFindMappingsForExternal(Long blogId, Long userId, Long groupId, boolean grantedByGroup, BlogRole role, String externalSystem)
UserToBlogRoleMappingDaoBase.findMappingsForExternal(Long, Long, Long, boolean, com.communote.server.model.blog.BlogRole, String)handleFindMappingsForExternal in class UserToBlogRoleMappingDaoBaseprotected BlogRole handleGetRoleOfUser(Long blogId, Long userId)
UserToBlogRoleMappingDaoBase.getRoleOfUser(Long, Long)handleGetRoleOfUser in class UserToBlogRoleMappingDaoBaseprotected void handleRemoveAllForBlog(Long blogId)
UserToBlogRoleMappingDaoBase.removeAllForBlog(Long)handleRemoveAllForBlog in class UserToBlogRoleMappingDaoBaseprotected void handleRemoveAllForGroup(Long groupId)
UserToBlogRoleMappingDaoBase.removeAllForGroup(Long)handleRemoveAllForGroup in class UserToBlogRoleMappingDaoBaseprotected void handleRemoveAllForGroupMember(Long userId, Long groupId)
UserToBlogRoleMappingDaoBase.removeAllForGroupMember(Long, Long)handleRemoveAllForGroupMember in class UserToBlogRoleMappingDaoBasepublic void remove(Collection<UserToBlogRoleMapping> entities)
entities collection.remove in interface UserToBlogRoleMappingDaoremove in class UserToBlogRoleMappingDaoBaseUserToBlogRoleMappingDao.remove(java.util.Collection
<com.communote.server.persistence.blog.UserToBlogRoleMapping>)public void remove(UserToBlogRoleMapping userToBlogRoleMapping)
remove in interface UserToBlogRoleMappingDaoremove in class UserToBlogRoleMappingDaoBaseUserToBlogRoleMappingDao.remove(com.communote.server.model.blog.UserToBlogRoleMapping)Copyright © 2019 Communote team. All rights reserved.