Interface UserSpaceBindingDAO
- All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<UserSpaceBindingEntity,Long>
- All Known Implementing Classes:
UserSpaceBindingDAOImpl
public interface UserSpaceBindingDAO
extends org.exoplatform.commons.api.persistence.GenericDAO<UserSpaceBindingEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionlongcountBoundUsers(Long spaceId) Count the number of bound users in a spacelongcountUserBindings(Long spaceId, String userName) Count user's bindings for this spacevoiddeleteAllUserBindings(String userName) Delete all the bindings of the userfindBoundUsersByBindingId(long id) Get bound users by a binding.findUserAllBindingsByGroup(String group) Get all user bindingsfindUserAllBindingsByUser(String userName) Get user bindings of a userfindUserBindingByGroupBindingIdAndUsername(long groupBindingId, String username) Get user space binding by groupBindingId and usernamefindUserBindingsByGroup(String group, String userName) Get user bindings of a user in a spacefindUserSpaceBindingsBySpace(Long spaceId, String userName) Gets user's bindings for this spacebooleanisUserBoundAndMemberBefore(Long spaceId, String userId) Checks if user is already bound and member of the space.Methods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Method Details
-
findUserBindingsByGroup
Get user bindings of a user in a space- Parameters:
group- the groupuserName- Member in the space- Returns:
- A list of group bindings
-
findUserAllBindingsByGroup
Get all user bindings- Parameters:
group- the group- Returns:
- A list of group bindings
-
findUserAllBindingsByUser
Get user bindings of a user- Parameters:
userName- the user- Returns:
- A list of group bindings
-
deleteAllUserBindings
Delete all the bindings of the user- Parameters:
userName- Member in the space
-
findUserSpaceBindingsBySpace
Gets user's bindings for this space- Parameters:
spaceId- The space Id.userName- The space Id.- Returns:
- a List of UserSpaceBindingEntity
-
countUserBindings
Count user's bindings for this space- Parameters:
spaceId- The space Id.userName- The space Id.- Returns:
- number UserSpaceBindingEntity
-
findBoundUsersByBindingId
Get bound users by a binding.- Parameters:
id-- Returns:
- a list of UserSpaceBindingEntities
-
findUserBindingByGroupBindingIdAndUsername
UserSpaceBindingEntity findUserBindingByGroupBindingIdAndUsername(long groupBindingId, String username) Get user space binding by groupBindingId and username- Parameters:
groupBindingId-username-- Returns:
- a list of UserSpaceBindingEntities
-
isUserBoundAndMemberBefore
Checks if user is already bound and member of the space.- Parameters:
spaceId-userId-- Returns:
-
countBoundUsers
Count the number of bound users in a space- Parameters:
spaceId-- Returns:
- number of bound users
-