public class MockPermissionService extends Object implements PermissionService
All permission checks return true, and throws UnsupportedOperationException for all introspection or modification operations.
Constructor and Description |
---|
MockPermissionService() |
public MockPermissionService()
public Permission createPermission(Permission permission) throws RiceIllegalArgumentException, RiceIllegalStateException
createPermission
in interface PermissionService
RiceIllegalArgumentException
RiceIllegalStateException
PermissionService.createPermission(org.kuali.rice.kim.api.permission.Permission)
public Permission updatePermission(Permission permission) throws RiceIllegalArgumentException, RiceIllegalStateException
updatePermission
in interface PermissionService
RiceIllegalArgumentException
RiceIllegalStateException
PermissionService.updatePermission(org.kuali.rice.kim.api.permission.Permission)
public boolean hasPermission(String principalId, String namespaceCode, String permissionName) throws RiceIllegalArgumentException
hasPermission
in interface PermissionService
RiceIllegalArgumentException
PermissionService.hasPermission(java.lang.String,
java.lang.String, java.lang.String)
public boolean isAuthorized(String principalId, String namespaceCode, String permissionName, Map<String,String> qualification) throws RiceIllegalArgumentException
isAuthorized
in interface PermissionService
RiceIllegalArgumentException
PermissionService.isAuthorized(java.lang.String,
java.lang.String, java.lang.String, java.util.Map)
public boolean hasPermissionByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails) throws RiceIllegalArgumentException
hasPermissionByTemplate
in interface PermissionService
RiceIllegalArgumentException
PermissionService.hasPermissionByTemplate(java.lang.String,
java.lang.String, java.lang.String, java.util.Map)
public boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification) throws RiceIllegalArgumentException
public List<Assignee> getPermissionAssignees(String namespaceCode, String permissionName, Map<String,String> qualification) throws RiceIllegalArgumentException
getPermissionAssignees
in interface PermissionService
RiceIllegalArgumentException
PermissionService.getPermissionAssignees(java.lang.String,
java.lang.String, java.util.Map)
public List<Assignee> getPermissionAssigneesByTemplate(String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification) throws RiceIllegalArgumentException
public boolean isPermissionDefined(String namespaceCode, String permissionName) throws RiceIllegalArgumentException
isPermissionDefined
in interface PermissionService
RiceIllegalArgumentException
PermissionService.isPermissionDefined(java.lang.String,
java.lang.String)
public boolean isPermissionDefinedByTemplate(String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails) throws RiceIllegalArgumentException
isPermissionDefinedByTemplate
in interface PermissionService
RiceIllegalArgumentException
PermissionService.isPermissionDefinedByTemplate(java.lang.String,
java.lang.String, java.util.Map)
public List<Permission> getAuthorizedPermissions(String principalId, String namespaceCode, String permissionName, Map<String,String> qualification) throws RiceIllegalArgumentException
getAuthorizedPermissions
in interface PermissionService
RiceIllegalArgumentException
PermissionService.getAuthorizedPermissions(java.lang.String,
java.lang.String, java.lang.String, java.util.Map)
public List<Permission> getAuthorizedPermissionsByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification) throws RiceIllegalArgumentException
public Permission getPermission(String id)
getPermission
in interface PermissionService
PermissionService.getPermission(java.lang.String)
public Permission findPermByNamespaceCodeAndName(String namespaceCode, String name) throws RiceIllegalArgumentException
findPermByNamespaceCodeAndName
in interface PermissionService
RiceIllegalArgumentException
PermissionService.findPermByNamespaceCodeAndName(java.lang.String,
java.lang.String)
public List<Permission> findPermissionsByTemplate(String namespaceCode, String templateName) throws RiceIllegalArgumentException
findPermissionsByTemplate
in interface PermissionService
RiceIllegalArgumentException
PermissionService.findPermissionsByTemplate(java.lang.String,
java.lang.String)
public Template getPermissionTemplate(String id) throws RiceIllegalArgumentException
getPermissionTemplate
in interface PermissionService
RiceIllegalArgumentException
PermissionService.getPermissionTemplate(java.lang.String)
public Template findPermTemplateByNamespaceCodeAndName(String namespaceCode, String name) throws RiceIllegalArgumentException
findPermTemplateByNamespaceCodeAndName
in interface PermissionService
RiceIllegalArgumentException
PermissionService.findPermTemplateByNamespaceCodeAndName(java.lang.String,
java.lang.String)
public List<Template> getAllTemplates()
getAllTemplates
in interface PermissionService
PermissionService.getAllTemplates()
public List<String> getRoleIdsForPermission(String namespaceCode, String permissionName) throws RiceIllegalArgumentException
getRoleIdsForPermission
in interface PermissionService
RiceIllegalArgumentException
PermissionService.getRoleIdsForPermission(java.lang.String,
java.lang.String)
public PermissionQueryResults findPermissions(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
findPermissions
in interface PermissionService
RiceIllegalArgumentException
PermissionService.findPermissions(org.kuali.rice.core.api.criteria.QueryByCriteria)
public TemplateQueryResults findPermissionTemplates(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
findPermissionTemplates
in interface PermissionService
RiceIllegalArgumentException
PermissionService.findPermissionTemplates(org.kuali.rice.core.api.criteria.QueryByCriteria)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.