public class UserToBlogRoleMappingDaoImpl extends UserToBlogRoleMappingDaoBase
UserToBlogRoleMapping
TRANSFORM_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, update
public 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 UserToBlogRoleMappingDao
create
in class UserToBlogRoleMappingDaoBase
com.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 UserToBlogRoleMappingDaoBase
protected BlogRole handleGetRoleOfUser(Long blogId, Long userId)
UserToBlogRoleMappingDaoBase.getRoleOfUser(Long, Long)
handleGetRoleOfUser
in class UserToBlogRoleMappingDaoBase
protected void handleRemoveAllForBlog(Long blogId)
UserToBlogRoleMappingDaoBase.removeAllForBlog(Long)
handleRemoveAllForBlog
in class UserToBlogRoleMappingDaoBase
protected void handleRemoveAllForGroup(Long groupId)
UserToBlogRoleMappingDaoBase.removeAllForGroup(Long)
handleRemoveAllForGroup
in class UserToBlogRoleMappingDaoBase
protected void handleRemoveAllForGroupMember(Long userId, Long groupId)
UserToBlogRoleMappingDaoBase.removeAllForGroupMember(Long, Long)
handleRemoveAllForGroupMember
in class UserToBlogRoleMappingDaoBase
public void remove(Collection<UserToBlogRoleMapping> entities)
entities collection.
remove
in interface UserToBlogRoleMappingDao
remove
in class UserToBlogRoleMappingDaoBase
UserToBlogRoleMappingDao.remove(java.util.Collection
<com.communote.server.persistence.blog.UserToBlogRoleMapping>)
public void remove(UserToBlogRoleMapping userToBlogRoleMapping)
remove
in interface UserToBlogRoleMappingDao
remove
in class UserToBlogRoleMappingDaoBase
UserToBlogRoleMappingDao.remove(com.communote.server.model.blog.UserToBlogRoleMapping)
Copyright © 2019 Communote team. All rights reserved.