public interface AccessSecurityService
Modifier and Type | Method and Description |
---|---|
void |
applySecurityRestrictions(List<? extends org.kuali.rice.krad.bo.BusinessObject> results,
org.kuali.rice.kim.api.identity.Person person,
org.kuali.rice.kim.api.common.template.Template permissionTemplate,
Map<String,String> additionalPermissionDetails)
Retrieves any setup security permissions for the given person and evaluates against List of business objects.
|
void |
applySecurityRestrictionsForGLInquiry(List<? extends org.kuali.rice.krad.bo.BusinessObject> results,
org.kuali.rice.kim.api.identity.Person person)
Retrieves any setup security permissions (with gl inquiry template) for the given person and evaluates against List of
business objects.
|
void |
applySecurityRestrictionsForLookup(List<? extends org.kuali.rice.krad.bo.BusinessObject> results,
org.kuali.rice.kim.api.identity.Person person)
Retrieves any setup security permissions (with lookup template) for the given person and evaluates against List of business
objects.
|
boolean |
canEditDocumentAccountingLine(AccountingDocument document,
AccountingLine accountingLine,
org.kuali.rice.kim.api.identity.Person person)
Checks any edit access security permissions setup for the user and for accounting lines of the given document type
|
boolean |
canEditDocumentAccountingLine(AccountingDocument document,
AccountingLine accountingLine,
org.kuali.rice.kim.api.identity.Person person,
AccessSecurityRestrictionInfo restrictionInfo)
Checks any edit access security permissions setup for the user and for accounting lines of the given document type
|
boolean |
canViewDocument(AccountingDocument document,
org.kuali.rice.kim.api.identity.Person person,
AccessSecurityRestrictionInfo restrictionInfo)
Checks view access on all accounting lines contained on the document for given user
|
boolean |
canViewDocumentAccountingLine(AccountingDocument document,
AccountingLine accountingLine,
org.kuali.rice.kim.api.identity.Person person)
Checks any view access security permissions setup for the user and for accounting lines of the given document type
|
boolean |
canViewDocumentNotesAttachments(AccountingDocument document,
org.kuali.rice.kim.api.identity.Person person)
Checks access is allowed to view document notes based on the document's accounting lines
|
boolean |
canViewGLPE(org.kuali.rice.krad.document.Document document,
GeneralLedgerPendingEntry pendingEntry,
org.kuali.rice.kim.api.identity.Person person)
Calls access security service to check view access on given GLPE for current user.
|
void |
compareListSizeAndAddMessageIfChanged(int previousListSize,
List<?> results,
String messageKey)
Compares the size of the given list against the given previous size and if different adds an info message
|
Collection<String> |
getAccessSecurityControlledDocumentTypeNames()
Returns all the documents for which access security controls are in place.
|
org.kuali.rice.kim.api.common.template.Template |
getEditAccountingLineWithFieldValueTemplate()
Gets the Edit Accounting Line With Field Value Template Id.
|
org.kuali.rice.kim.api.common.template.Template |
getEditDocumentWithFieldValueTemplate()
Gets the Edit Document With Field Value Template Id.
|
org.kuali.rice.kim.api.common.template.Template |
getInquiryWithFieldValueTemplate()
Gets the Inquiry With Field Value Template Id.
|
org.kuali.rice.kim.api.common.template.Template |
getLookupWithFieldValueTemplate()
Gets the Lookup With Field Value Template Id.
|
org.kuali.rice.kim.api.common.template.Template |
getViewAccountingLineWithFieldValueTemplate()
Gets the View Accounting Line With Field Value Template Id.
|
org.kuali.rice.kim.api.common.template.Template |
getViewDocumentWithFieldValueTemplate()
Gets the View Document With Field Values template ID.
|
org.kuali.rice.kim.api.common.template.Template |
getViewNotesAttachmentsWithFieldValueTemplate()
Gets the View Notes Attachments With Field Value Template Id.
|
boolean |
isAccessSecurityControlledDocumentType(String documentTypeName) |
void applySecurityRestrictionsForLookup(List<? extends org.kuali.rice.krad.bo.BusinessObject> results, org.kuali.rice.kim.api.identity.Person person)
results
- List of business object instances with data to checkperson
- Person to apply security forvoid applySecurityRestrictionsForGLInquiry(List<? extends org.kuali.rice.krad.bo.BusinessObject> results, org.kuali.rice.kim.api.identity.Person person)
results
- List of business object instances with data to checkperson
- Person to apply security forvoid applySecurityRestrictions(List<? extends org.kuali.rice.krad.bo.BusinessObject> results, org.kuali.rice.kim.api.identity.Person person, org.kuali.rice.kim.api.common.template.Template permissionTemplate, Map<String,String> additionalPermissionDetails)
results
- List of business object instances with data to checkperson
- Person to apply security fortemplateId
- KIM template id for permissions to checkadditionalPermissionDetails
- Any additional details that should be matched on when retrieving permissionsboolean canViewDocumentAccountingLine(AccountingDocument document, AccountingLine accountingLine, org.kuali.rice.kim.api.identity.Person person)
document
- AccountingDocument that contains the line to be validated, doc type of instance is used for retrieving
permissionsaccountingLine
- AccountingLine instance with values to checkperson
- the user who we are checking access forboolean canEditDocumentAccountingLine(AccountingDocument document, AccountingLine accountingLine, org.kuali.rice.kim.api.identity.Person person)
document
- AccountingDocument instance that contains the line to be validated, doc type of instance is used for
retrieving permissionsaccountingLine
- AccountingLine instance with values to checkperson
- the user who we are checking access forboolean canEditDocumentAccountingLine(AccountingDocument document, AccountingLine accountingLine, org.kuali.rice.kim.api.identity.Person person, AccessSecurityRestrictionInfo restrictionInfo)
document
- AccountingDocument instance that contains the line to be validated, doc type of instance is used for
retrieving permissionsaccountingLine
- AccountingLine instance with values to checkperson
- the user who we are checking access forrestrictionInfo
- Object providing information on a restriction if one is foundboolean canViewDocument(AccountingDocument document, org.kuali.rice.kim.api.identity.Person person, AccessSecurityRestrictionInfo restrictionInfo)
document
- AccountingDocument instance with accounting lines to check, doc type of instance is used for retrieving
permissionsperson
- the user who we are checking access forrestrictionInfo
- Object providing information on a restriction if one is foundboolean canViewDocumentNotesAttachments(AccountingDocument document, org.kuali.rice.kim.api.identity.Person person)
document
- AccountingDocument instance with accounting lines to check, doc type of instance is used for retrieving
permissionsperson
- the user who we are checking access fororg.kuali.rice.kim.api.common.template.Template getViewDocumentWithFieldValueTemplate()
org.kuali.rice.kim.api.common.template.Template getViewAccountingLineWithFieldValueTemplate()
org.kuali.rice.kim.api.common.template.Template getViewNotesAttachmentsWithFieldValueTemplate()
org.kuali.rice.kim.api.common.template.Template getEditDocumentWithFieldValueTemplate()
org.kuali.rice.kim.api.common.template.Template getEditAccountingLineWithFieldValueTemplate()
org.kuali.rice.kim.api.common.template.Template getLookupWithFieldValueTemplate()
org.kuali.rice.kim.api.common.template.Template getInquiryWithFieldValueTemplate()
boolean canViewGLPE(org.kuali.rice.krad.document.Document document, GeneralLedgerPendingEntry pendingEntry, org.kuali.rice.kim.api.identity.Person person)
pendingEntry
- GeneralLedgerPendingEntry to check access forvoid compareListSizeAndAddMessageIfChanged(int previousListSize, List<?> results, String messageKey)
previousListSize
- int giving previous size of list to compare toresults
- List to get size for and comparemessageKey
- String key of message that should be addedCollection<String> getAccessSecurityControlledDocumentTypeNames()
boolean isAccessSecurityControlledDocumentType(String documentTypeName)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.