public class SecurityDefinitionMaintainableImpl extends AbstractSecurityModuleMaintainable
businessObject, businessObjectAuthorizationService, businessObjectDictionaryService, businessObjectMetaDataService, documentHelperService, inactiveRecordDisplay, maintenanceDocumentDictionaryService, newCollectionLineNames, newCollectionLines, personService
Constructor and Description |
---|
SecurityDefinitionMaintainableImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignPermissionToRole(org.kuali.rice.kim.api.permission.Permission perm,
String roleId) |
protected void |
createOrUpdateDefinitionRole(SecurityDefinition oldSecurityDefinition,
SecurityDefinition newSecurityDefinition)
Creates a new role for the definition (if the definition is new), then grants to the role any new permissions granted for the definition.
|
protected void |
createOrUpdateDocumentPermissions(SecurityDefinition securityDefinition)
Iterates through the document types and creates any new document permissions necessary or updates old permissions setting inactive if needed
|
protected void |
createOrUpdateDocumentTypePermissions(String documentType,
boolean active,
SecurityDefinition securityDefinition)
For each of the document templates ids calls helper method to create or update corresponding permission
|
protected void |
createOrUpdateInquiryPermissions(SecurityDefinition securityDefinition)
First tries to find inquiry permissions for GL namespace and LD namespace.
|
protected void |
createOrUpdateLookupPermission(SecurityDefinition securityDefinition)
First tries to retrieve a lookup permission previously setup for this definition.
|
protected void |
createOrUpdatePermissionAndAssignToRole(String permissionName,
String roleId,
String permissionDescription,
boolean active,
org.kuali.rice.kim.api.common.template.Template permissionTemplate,
Map<String,String> permissionDetails)
Calls PermissionUpdateService to save a permission.
|
void |
doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader documentHeader) |
static AccessSecurityService |
getAccessSecurityService() |
protected Map<String,String> |
getInquiryPermissionDetails(String namespaceCode,
SecurityDefinition securityDefinition)
Builds an Map
|
protected Map<String,String> |
getLookupPermissionDetails(SecurityDefinition securityDefinition)
Builds an Map
|
protected boolean |
isDocumentTypeInDefinition(String documentType,
SecurityDefinition oldSecurityDefinition)
Determines whether a given document type name is included in the document type list for the given security definition
|
protected Map<String,String> |
populateDocumentTypePermissionDetails(String documentType,
SecurityDefinition securityDefinition)
Builds an Map
|
void |
processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document,
Map<String,String[]> parameters)
Override to clear out KIM role id on copy
|
doMembershipQualificationsMatchValues, doQualificationsMatch, getDefaultRoleTypeId, getRoleMembershipForMemberType, getRoleQualifiersFromSecurityModelDefinition, refresh, updateSecurityModelRoleMember
answerSplitNodeQuestion, populateChartOfAccountsCodeFields, processAfterPost, processBeforeAddLine, refreshReferences, saveBusinessObject
addMultipleValueLookupResults, addNewLineToCollection, clearBusinessObjectOfRestrictedValues, clearCollectionRestrictedValues, clearFieldRestrictedValues, decryptEncryptedData, deleteBusinessObject, generateAllAffectedReferences, getAffectedReferencesFromLookup, getAllRefreshableReferences, getBoClass, getBusinessObject, getBusinessObjectAuthorizationService, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getCoreSections, getDocumentHelperService, getDocumentTitle, getDuplicateIdentifierFieldsFromDataDictionary, getInactiveRecordDisplay, getMaintainableTitle, getMaintenanceDocumentDictionaryService, getMultiValueIdentifierList, getNewCollectionLine, getPersonService, getSections, getShowInactiveRecords, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isNotesEnabled, isOldBusinessObjectInDocument, isRelationshipRefreshable, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, processAfterAddLine, processAfterEdit, processAfterNew, saveDataObject, setBoClass, setBusinessObject, setBusinessObjectAuthorizationService, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setDataObject, setDocumentHelperService, setGenerateBlankRequiredValues, setGenerateDefaultValues, setMaintenanceDocumentDictionaryService, setNewCollectionLineDefaultValues, setPersonService, setShowInactiveRecords, setupNewFromExisting, shouldFieldBeEncrypted
deleteDataObject, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectMetaDataService, getDocumentDictionaryService, getDocumentNumber, getDocumentTitle, getDocumentTypeName, getEncryptionService, getLockingDocumentId, getLookupService, getMaintenanceAction, getMaintenanceDocumentService, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isLockable, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterAddLine, processAfterCopy, processAfterDeleteLine, processAfterEdit, processAfterNew, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setDataObjectAuthorizationService, setDataObjectClass, setDataObjectMetaDataService, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setLookupService, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptors
addCustomContainerComponents, addLine, adjustIdIfNecessary, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildExportTableData, buildExportTableRow, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getBusinessObjectService, getCommonContext, getConfigurationService, getDataDictionaryService, getExportTableFormatOptions, getExpressionEvaluator, getPersistenceService, getPersistenceStructureService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReferences, retrieveEditModesAndActionFlags, runComponentModifiers, setBusinessObjectService, setConfigurationService, setDataDictionaryService, setExpressionEvaluator, setPersistenceService, setPersistenceStructureService, setViewContext, setViewDictionaryService, spawnSubLifecyle, syncClientSideStateForComponent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteDataObject, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectClass, getDocumentTitle, getLockingDocumentId, getMaintenanceAction, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isLockable, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterCopy, processAfterEdit, processAfterNew, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setDataObjectClass, setDocumentNumber, setMaintenanceAction, setupNewFromExisting, useCustomLockDescriptors
applyDefaultValuesForCollectionLine, buildExportTableData, buildInquiryLink, cleanViewAfterRender, getCommonContext, getExpressionEvaluator, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReferences, spawnSubLifecyle
public SecurityDefinitionMaintainableImpl()
public void doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader documentHeader)
doRouteStatusChange
in interface org.kuali.rice.krad.maintenance.Maintainable
doRouteStatusChange
in class org.kuali.rice.krad.maintenance.MaintainableImpl
MaintainableImpl.doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
protected void createOrUpdateDefinitionRole(SecurityDefinition oldSecurityDefinition, SecurityDefinition newSecurityDefinition)
oldSecurityDefinition
- SecurityDefinition record before updatesnewSecurityDefinition
- SecurityDefinition after updatesprotected void createOrUpdateDocumentPermissions(SecurityDefinition securityDefinition)
oldSecurityDefinition
- SecurityDefiniton record before requested changes (old side of maintenance document)newSecurityDefinition
- SecurityDefinition record with requested changes (new side of maintenance document)newMaintenanceAction
- Indicates whether this is a new maintenance record (old side in empty)protected void createOrUpdateLookupPermission(SecurityDefinition securityDefinition)
oldSecurityDefinition
- SecurityDefiniton record before requested changes (old side of maintenance document)newSecurityDefinition
- SecurityDefinition record with requested changes (new side of maintenance document)newMaintenanceAction
- Indicates whether this is a new maintenance record (old side in empty)protected void createOrUpdateInquiryPermissions(SecurityDefinition securityDefinition)
oldSecurityDefinition
- SecurityDefiniton record before requested changes (old side of maintenance document)newSecurityDefinition
- SecurityDefinition record with requested changes (new side of maintenance document)newMaintenanceAction
- Indicates whether this is a new maintenance record (old side in empty)protected void createOrUpdateDocumentTypePermissions(String documentType, boolean active, SecurityDefinition securityDefinition)
documentType
- workflow document type name for permission detailactive
- boolean indicating whether the permissions should be set to active (true) or non-active (false)oldSecurityDefinition
- SecurityDefiniton record before requested changes (old side of maintenance document)newSecurityDefinition
- SecurityDefinition record with requested changes (new side of maintenance document)protected Map<String,String> populateDocumentTypePermissionDetails(String documentType, SecurityDefinition securityDefinition)
documentType
- workflow document type namesecurityDefinition
- SecurityDefiniton recordprotected Map<String,String> getLookupPermissionDetails(SecurityDefinition securityDefinition)
securityDefinition
- SecurityDefiniton recordprotected Map<String,String> getInquiryPermissionDetails(String namespaceCode, SecurityDefinition securityDefinition)
namespaceCode
- KIM namespace codesecurityDefinition
- SecurityDefiniton recordprotected boolean isDocumentTypeInDefinition(String documentType, SecurityDefinition oldSecurityDefinition)
documentType
- KEW document type nameoldSecurityDefinition
- SecurityDefinition recordprotected void createOrUpdatePermissionAndAssignToRole(String permissionName, String roleId, String permissionDescription, boolean active, org.kuali.rice.kim.api.common.template.Template permissionTemplate, Map<String,String> permissionDetails)
securityDefinition
- SecurityDefinition recordpermissionId
- ID for the permission being saved, or empty for new permissionpermissionTemplateId
- KIM template ID for permission to saveactive
- boolean indicating whether the permission should be set to active (true) or non-active (false)permissionDetails
- Maporg.kuali.rice.kim.service.PermissionUpdateService#savePermission()
protected void assignPermissionToRole(org.kuali.rice.kim.api.permission.Permission perm, String roleId)
public void processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
processAfterCopy
in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
KualiMaintainableImpl.processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument,
java.util.Map)
public static AccessSecurityService getAccessSecurityService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.