|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.kpme.core.service.permission.HrPermissionServiceBase
public abstract class HrPermissionServiceBase
Constructor Summary | |
---|---|
HrPermissionServiceBase()
|
Method Summary | |
---|---|
DepartmentService |
getDepartmentService()
|
org.kuali.rice.kim.api.type.KimTypeInfoService |
getKimTypeInfoService()
|
protected List<org.kuali.rice.kim.api.permission.Permission> |
getMatchingPermissions(List<org.kuali.rice.kim.api.permission.Permission> permissions,
Map<String,String> permissionDetails)
Compare each of the passed in permissions with the given permissionDetails. |
org.kuali.rice.kim.api.permission.PermissionService |
getPermissionService()
|
protected org.kuali.rice.kim.framework.permission.PermissionTypeService |
getPermissionTypeService(org.kuali.rice.kim.api.common.template.Template permissionTemplate)
|
protected Map<String,org.kuali.rice.kim.framework.permission.PermissionTypeService> |
getPermissionTypeServicesByTemplateId(Collection<org.kuali.rice.kim.api.permission.Permission> permissions)
|
org.kuali.rice.kim.api.role.RoleService |
getRoleService()
|
WorkAreaService |
getWorkAreaService()
|
protected Map<String,List<org.kuali.rice.kim.api.permission.Permission>> |
groupPermissionsByTemplate(Collection<org.kuali.rice.kim.api.permission.Permission> permissions)
|
abstract boolean |
isAuthorized(String principalId,
String permissionName,
Map<String,String> qualification,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given role qualifications. |
abstract boolean |
isAuthorizedByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails,
Map<String,String> qualification,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details and role qualifications. |
protected boolean |
isAuthorizedByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
Assignment assignment,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given document information. |
protected boolean |
isAuthorizedByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given document information. |
protected boolean |
isAuthorizedByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
List<Assignment> assignments,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given document information. |
protected boolean |
isAuthorizedByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
Map<String,String> qualification,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given document information and role qualifiers. |
boolean |
isAuthorizedByTemplateInDepartment(String principalId,
String namespaceCode,
String permissionTemplateName,
String department,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given department. |
protected boolean |
isAuthorizedByTemplateInDepartment(String principalId,
String namespaceCode,
String permissionTemplateName,
String department,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given department and document information. |
boolean |
isAuthorizedByTemplateInLocation(String principalId,
String namespaceCode,
String permissionTemplateName,
String location,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given location. |
protected boolean |
isAuthorizedByTemplateInLocation(String principalId,
String namespaceCode,
String permissionTemplateName,
String location,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given location and document information. |
boolean |
isAuthorizedByTemplateInWorkArea(String principalId,
String namespaceCode,
String permissionTemplateName,
Long workArea,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given work area. |
protected boolean |
isAuthorizedByTemplateInWorkArea(String principalId,
String namespaceCode,
String permissionTemplateName,
Long workArea,
String documentTypeName,
String documentId,
org.kuali.rice.kew.api.document.DocumentStatus documentStatus,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given work area and document information. |
boolean |
isAuthorizedInDepartment(String principalId,
String permissionName,
String department,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given department. |
boolean |
isAuthorizedInLocation(String principalId,
String permissionName,
String location,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given location. |
boolean |
isAuthorizedInWorkArea(String principalId,
String permissionName,
Long workArea,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given work area. |
void |
setDepartmentService(DepartmentService departmentService)
|
void |
setKimTypeInfoService(org.kuali.rice.kim.api.type.KimTypeInfoService kimTypeInfoService)
|
void |
setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)
|
void |
setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
|
void |
setWorkAreaService(WorkAreaService workAreaService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HrPermissionServiceBase()
Method Detail |
---|
public abstract boolean isAuthorized(String principalId, String permissionName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given role qualifications.
principalId
- The person to check the permission forpermissionName
- The name of the permissionqualification
- The map of role qualifiers for the personasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
, false otherwise.public abstract boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given permission details and role qualifications.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatepermissionDetails
- The map of permission details for the permissionqualification
- The map of role qualifiers for the personasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
, false otherwise.public boolean isAuthorizedInWorkArea(String principalId, String permissionName, Long workArea, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given work area.
principalId
- The person to check the permission forpermissionName
- The name of the permissionworkArea
- The work area qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given work area, false otherwise.public boolean isAuthorizedInDepartment(String principalId, String permissionName, String department, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given department.
principalId
- The person to check the permission forpermissionName
- The name of the permissiondepartment
- The department qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given department, false otherwise.public boolean isAuthorizedInLocation(String principalId, String permissionName, String location, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given location.
principalId
- The person to check the permission forpermissionName
- The name of the permissionlocation
- The location qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given location, false otherwise.public boolean isAuthorizedByTemplateInWorkArea(String principalId, String namespaceCode, String permissionTemplateName, Long workArea, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given work area.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templateworkArea
- The work area qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given work area, false otherwise.public boolean isAuthorizedByTemplateInDepartment(String principalId, String namespaceCode, String permissionTemplateName, String department, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given department.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatedepartment
- The department qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given department, false otherwise.public boolean isAuthorizedByTemplateInLocation(String principalId, String namespaceCode, String permissionTemplateName, String location, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given location.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatelocation
- The location qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given location, false otherwise.protected boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, List<Assignment> assignments, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatedocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentassignments
- The list of assignments associated with the document
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information, false otherwise.protected boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, Assignment assignment, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatedocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentassignment
- The assignment associated with the document
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information, false otherwise.protected boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatedocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information, false otherwise.protected boolean isAuthorizedByTemplateInWorkArea(String principalId, String namespaceCode, String permissionTemplateName, Long workArea, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given work area and document information.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templateworkArea
- The work area qualifierdocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given work area and document information, false otherwise.protected boolean isAuthorizedByTemplateInDepartment(String principalId, String namespaceCode, String permissionTemplateName, String department, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given department and document information.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatedepartment
- The department qualifierdocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given department and document information, false otherwise.protected boolean isAuthorizedByTemplateInLocation(String principalId, String namespaceCode, String permissionTemplateName, String location, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given location and document information.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatelocation
- The location qualifierdocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given location and document information, false otherwise.protected boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, String documentTypeName, String documentId, org.kuali.rice.kew.api.document.DocumentStatus documentStatus, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information and role qualifiers.
principalId
- The person to check the permission fornamespaceCode
- The namespace for the permission templatepermissionTemplateName
- The name of the permission templatedocumentTypeName
- The type of the documentdocumentId
- The id of the documentdocumentStatus
- The status of the documentqualification
- The map of role qualifiers for the personasOfDate
- The effective date of the permission
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given document information and role qualifiers, false otherwise.public DepartmentService getDepartmentService()
public void setDepartmentService(DepartmentService departmentService)
public WorkAreaService getWorkAreaService()
public void setWorkAreaService(WorkAreaService workAreaService)
public org.kuali.rice.kim.api.permission.PermissionService getPermissionService()
public void setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)
protected List<org.kuali.rice.kim.api.permission.Permission> getMatchingPermissions(List<org.kuali.rice.kim.api.permission.Permission> permissions, Map<String,String> permissionDetails)
protected Map<String,org.kuali.rice.kim.framework.permission.PermissionTypeService> getPermissionTypeServicesByTemplateId(Collection<org.kuali.rice.kim.api.permission.Permission> permissions)
protected org.kuali.rice.kim.framework.permission.PermissionTypeService getPermissionTypeService(org.kuali.rice.kim.api.common.template.Template permissionTemplate)
protected Map<String,List<org.kuali.rice.kim.api.permission.Permission>> groupPermissionsByTemplate(Collection<org.kuali.rice.kim.api.permission.Permission> permissions)
public org.kuali.rice.kim.api.type.KimTypeInfoService getKimTypeInfoService()
public void setKimTypeInfoService(org.kuali.rice.kim.api.type.KimTypeInfoService kimTypeInfoService)
public org.kuali.rice.kim.api.role.RoleService getRoleService()
public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |