org.kuali.kpme.core.service.permission
Interface HRPermissionService

All Known Implementing Classes:
HRPermissionServiceImpl

public interface HRPermissionService


Method Summary
 boolean canApproveCalendarDocument(String principalId, CalendarDocument calendarDocument)
          Checks whether the given principalId can approve the LeaveCalendar specified by documentId.
 boolean canEditCalendarDocument(String principalId, CalendarDocument calendarDocument)
          Checks whether the given principalId can edit the LeaveCalendar specified by documentId.
 boolean canEditCalendarDocumentAssignment(String principalId, CalendarDocument calendarDocument, Assignment assignment)
          Checks whether the given principalId can edit the given assignment attached to the LeaveCalendar specified by documentId.
 boolean canSubmitCalendarDocument(String principalId, CalendarDocument calendarDocument)
          Checks whether the given principalId can submit the LeaveCalendar specified by documentId.
 boolean canSuperUserAdministerCalendarDocument(String principalId, CalendarDocument calendarDocument)
          Checks whether the given principalId can super user administer the LeaveCalendar specified by documentId.
 boolean canViewCalendarDocument(String principalId, CalendarDocument calendarDocument)
          Checks whether the given principalId can view the LeaveCalendar specified by documentId.
 boolean canViewCalendarDocumentAssignment(String principalId, CalendarDocument calendarDocument, Assignment assignment)
          Checks whether the given principalId can view the given assignment attached to the LeaveCalendar specified by documentId.
 boolean canViewLeaveTabsWithEStatus()
           
 boolean canViewLeaveTabsWithNEStatus()
           
 boolean canViewTimeTabs()
           
 CalendarBlockPermissions getLeaveBlockPermissions(String blockId)
           
 CalendarBlockPermissions getTimeBlockPermissions(String blockId)
           
 boolean isAuthorized(String principalId, String permissionName, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName.
 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.
 boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details.
 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.
 boolean isAuthorizedByTemplateInDepartment(String principalId, String namespaceCode, String permissionTemplateName, String department, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given department.
 boolean isAuthorizedByTemplateInLocation(String principalId, String namespaceCode, String permissionTemplateName, String location, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given location.
 boolean isAuthorizedByTemplateInWorkArea(String principalId, String namespaceCode, String permissionTemplateName, Long workArea, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given work area.
 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.
 CalendarBlockPermissions updateLeaveBlockPermissions(CalendarBlockPermissions calendarBlockPermissions)
           
 CalendarBlockPermissions updateTimeBlockPermissions(CalendarBlockPermissions calendarBlockPermissions)
           
 

Method Detail

isAuthorized

boolean isAuthorized(String principalId,
                     String permissionName,
                     org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName, false otherwise.

isAuthorized

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.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
qualification - The map of role qualifiers for the person
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName, false otherwise.

isAuthorizedInWorkArea

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.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
workArea - The work area qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given work area, false otherwise.

isAuthorizedInDepartment

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.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
department - The department qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given department, false otherwise.

isAuthorizedInLocation

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.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
location - The location qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given location, false otherwise.

isAuthorizedByTemplate

boolean isAuthorizedByTemplate(String principalId,
                               String namespaceCode,
                               String permissionTemplateName,
                               Map<String,String> permissionDetails,
                               org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details.

Parameters:
principalId - The person to check the permission for
namespaceCode - The namespace for the permission template
permissionTemplateName - The name of the permission template
permissionDetails - The map of permission details for the permission
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform any permission templated by permissionTemplateName, false otherwise.

isAuthorizedByTemplate

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.

Parameters:
principalId - The person to check the permission for
namespaceCode - The namespace for the permission template
permissionTemplateName - The name of the permission template
permissionDetails - The map of permission details for the permission
qualification - The map of role qualifiers for the person
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform any permission templated by permissionTemplateName, false otherwise.

isAuthorizedByTemplateInWorkArea

boolean isAuthorizedByTemplateInWorkArea(String principalId,
                                         String namespaceCode,
                                         String permissionTemplateName,
                                         Long workArea,
                                         org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given work area.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
workArea - The work area qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given work area, false otherwise.

isAuthorizedByTemplateInDepartment

boolean isAuthorizedByTemplateInDepartment(String principalId,
                                           String namespaceCode,
                                           String permissionTemplateName,
                                           String department,
                                           org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given department.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
department - The department qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given department, false otherwise.

isAuthorizedByTemplateInLocation

boolean isAuthorizedByTemplateInLocation(String principalId,
                                         String namespaceCode,
                                         String permissionTemplateName,
                                         String location,
                                         org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given location.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
location - The location qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given location, false otherwise.

canApproveCalendarDocument

boolean canApproveCalendarDocument(String principalId,
                                   CalendarDocument calendarDocument)
Checks whether the given principalId can approve the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
Returns:
true if principalId can approve the LeaveCalendar specified by documentId, false otherwise.

canViewCalendarDocument

boolean canViewCalendarDocument(String principalId,
                                CalendarDocument calendarDocument)
Checks whether the given principalId can view the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
Returns:
true if principalId can view the LeaveCalendar specified by documentId, false otherwise.

canViewCalendarDocumentAssignment

boolean canViewCalendarDocumentAssignment(String principalId,
                                          CalendarDocument calendarDocument,
                                          Assignment assignment)
Checks whether the given principalId can view the given assignment attached to the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
assignment - The assignment attached to the document
Returns:
true if principalId can view the given assignment attached to the LeaveCalendar specified by documentId, false otherwise.

canEditCalendarDocument

boolean canEditCalendarDocument(String principalId,
                                CalendarDocument calendarDocument)
Checks whether the given principalId can edit the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
Returns:
true if principalId can edit the LeaveCalendar specified by documentId, false otherwise.

canEditCalendarDocumentAssignment

boolean canEditCalendarDocumentAssignment(String principalId,
                                          CalendarDocument calendarDocument,
                                          Assignment assignment)
Checks whether the given principalId can edit the given assignment attached to the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
assignment - The assignment attached to the document
Returns:
true if principalId can edit the given assignment attached to the LeaveCalendar specified by documentId, false otherwise.

canSubmitCalendarDocument

boolean canSubmitCalendarDocument(String principalId,
                                  CalendarDocument calendarDocument)
Checks whether the given principalId can submit the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
Returns:
true if principalId can submit the LeaveCalendar specified by documentId, false otherwise.

canSuperUserAdministerCalendarDocument

boolean canSuperUserAdministerCalendarDocument(String principalId,
                                               CalendarDocument calendarDocument)
Checks whether the given principalId can super user administer the LeaveCalendar specified by documentId.

Parameters:
principalId - The person to check
calendarDocument - The id of the document
Returns:
true if principalId can super user administer the LeaveCalendar specified by documentId, false otherwise.

canViewTimeTabs

boolean canViewTimeTabs()

canViewLeaveTabsWithEStatus

boolean canViewLeaveTabsWithEStatus()

canViewLeaveTabsWithNEStatus

boolean canViewLeaveTabsWithNEStatus()

getTimeBlockPermissions

@Cacheable(value="http://kpme.kuali.org/core/CalendarBlockPermission",
           key="\'{time}\' + #p0")
CalendarBlockPermissions getTimeBlockPermissions(String blockId)

updateTimeBlockPermissions

@CachePut(value="http://kpme.kuali.org/core/CalendarBlockPermission",
          key="\'{time}\' + #p0?.blockId")
CalendarBlockPermissions updateTimeBlockPermissions(CalendarBlockPermissions calendarBlockPermissions)

getLeaveBlockPermissions

@Cacheable(value="http://kpme.kuali.org/core/CalendarBlockPermission",
           key="\'{leave}\' + #p0")
CalendarBlockPermissions getLeaveBlockPermissions(String blockId)

updateLeaveBlockPermissions

@CachePut(value="http://kpme.kuali.org/core/CalendarBlockPermission",
          key="\'{leave}\' + #p0?.blockId")
CalendarBlockPermissions updateLeaveBlockPermissions(CalendarBlockPermissions calendarBlockPermissions)


Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.