Class NoopInternalUserPermissionDao
- java.lang.Object
-
- com.atlassian.confluence.impl.user.crowd.hibernate.NoopInternalUserPermissionDao
-
- All Implemented Interfaces:
com.atlassian.crowd.dao.permission.InternalUserPermissionDAO
public class NoopInternalUserPermissionDao extends Object implements com.atlassian.crowd.dao.permission.InternalUserPermissionDAO
Crowd libraries currently need an implementation of this, but it's only applicable for Crowd the product.As far as this implementation is concerned, nobody has access to change anything in Crowd.
- Since:
- 7.20.0
-
-
Constructor Summary
Constructors Constructor Description NoopInternalUserPermissionDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(com.atlassian.crowd.model.permission.InternalGrantedPermission permission)
List<com.atlassian.crowd.model.permission.InternalGrantedPermission>
findAllPermissionsForGroup(String groupName, long directoryId)
List<com.atlassian.crowd.manager.permission.PermittedGroup>
findHighestPermissionPerGroup(int start, int limit)
List<com.atlassian.crowd.manager.permission.PermittedGroup>
findHighestPermissionPerGroupByPrefix(String prefix, int start, int limit)
Collection<com.atlassian.crowd.manager.permission.PermittedGroup>
getGrantedPermissions(com.atlassian.crowd.model.permission.UserPermission permission)
Collection<com.atlassian.crowd.manager.permission.PermittedGroup>
getGrantedPermissions(com.atlassian.crowd.model.permission.UserPermission permission, com.atlassian.crowd.model.application.Application application)
void
grant(com.atlassian.crowd.model.permission.InternalGrantedPermission permission)
boolean
revoke(com.atlassian.crowd.model.permission.InternalGrantedPermission permission)
int
revokeAll(com.atlassian.crowd.model.application.DirectoryMapping directoryMapping)
-
-
-
Method Detail
-
exists
public boolean exists(com.atlassian.crowd.model.permission.InternalGrantedPermission permission)
- Specified by:
exists
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
revoke
public boolean revoke(com.atlassian.crowd.model.permission.InternalGrantedPermission permission)
- Specified by:
revoke
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
revokeAll
public int revokeAll(com.atlassian.crowd.model.application.DirectoryMapping directoryMapping)
- Specified by:
revokeAll
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
grant
public void grant(com.atlassian.crowd.model.permission.InternalGrantedPermission permission)
- Specified by:
grant
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
getGrantedPermissions
public Collection<com.atlassian.crowd.manager.permission.PermittedGroup> getGrantedPermissions(com.atlassian.crowd.model.permission.UserPermission permission)
- Specified by:
getGrantedPermissions
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
getGrantedPermissions
public Collection<com.atlassian.crowd.manager.permission.PermittedGroup> getGrantedPermissions(com.atlassian.crowd.model.permission.UserPermission permission, com.atlassian.crowd.model.application.Application application)
- Specified by:
getGrantedPermissions
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
findHighestPermissionPerGroupByPrefix
public List<com.atlassian.crowd.manager.permission.PermittedGroup> findHighestPermissionPerGroupByPrefix(String prefix, int start, int limit)
- Specified by:
findHighestPermissionPerGroupByPrefix
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
findHighestPermissionPerGroup
public List<com.atlassian.crowd.manager.permission.PermittedGroup> findHighestPermissionPerGroup(int start, int limit)
- Specified by:
findHighestPermissionPerGroup
in interfacecom.atlassian.crowd.dao.permission.InternalUserPermissionDAO
-
-