|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.maintenance.KualiMaintainableImpl
org.kuali.kfs.sys.document.FinancialSystemMaintainable
org.kuali.kfs.sec.document.SecurityModelMaintainableImpl
public class SecurityModelMaintainableImpl
Maintainable implementation for the Security Model maintenance document. Hooks into Post processing to create a KIM role from Model and assigns users/permissions to role based on Model
Field Summary |
---|
Fields inherited from class org.kuali.rice.kns.maintenance.KualiMaintainableImpl |
---|
boClass, businessObject, businessObjectAuthorizationService, businessObjectDictionaryService, businessObjectMetaDataService, businessObjectService, dataDictionaryService, docTypeName, documentHelperService, documentNumber, encryptionService, inactiveRecordDisplay, maintenanceAction, maintenanceDocumentDictionaryService, maintenanceDocumentService, newCollectionLines, persistenceStructureService, personService |
Constructor Summary | |
---|---|
SecurityModelMaintainableImpl()
|
Method Summary | |
---|---|
protected void |
assignOrUpdateModelMembers(SecurityModel securityModel)
Iterates through the model member list and assign members to the model role or updates the membership |
protected void |
assignOrUpdateModelMembershipToDefinitionRoles(SecurityModel oldSecurityModel,
SecurityModel newSecurityModel,
boolean newMaintenanceAction)
Iterates through the model definition list and assigns the model role to the definition role if necessary or updates the current member assignment |
protected void |
createOrUpdateModelRole(SecurityModel oldSecurityModel,
SecurityModel newSecurityModel)
Creates a new role for the model (if the model is new), otherwise updates the role |
protected void |
createPrincipalSecurityRecords(String memberId,
String memberTypeCode)
Creates security principal records for model members (if necessary) so that they will appear on security principal lookup for editing |
void |
doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader documentHeader)
|
protected void |
inactivateModelRole(SecurityModel newSecurityModel)
Saves the given security model setting the active indicator to false |
protected boolean |
isDefinitionInModel(String definitionName,
SecurityModel securityModel)
Determines whether the given definition is part of the SecurityModel associated definitions |
void |
processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document,
Map<String,String[]> parameters)
Override to clear out KIM role id on copy |
void |
refresh(String refreshCaller,
Map fieldValues,
org.kuali.rice.kns.document.MaintenanceDocument document)
|
Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemMaintainable |
---|
answerSplitNodeQuestion, populateChartOfAccountsCodeFields, processAfterPost, processBeforeAddLine, refreshReferences |
Methods inherited from class org.kuali.rice.kns.maintenance.KualiMaintainableImpl |
---|
addMultipleValueLookupResults, addNewLineToCollection, clearBusinessObjectOfRestrictedValues, clearCollectionRestrictedValues, clearFieldRestrictedValues, decryptEncryptedData, deleteBusinessObject, generateAllAffectedReferences, generateMaintenanceLocks, getAffectedReferencesFromLookup, getAllRefreshableReferences, getBoClass, getBusinessObject, getBusinessObjectAuthorizationService, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getCoreSections, getCustomLockDescriptor, getDataDictionaryService, getDocumentHelperService, getDocumentTitle, getDocumentTypeName, getDuplicateIdentifierFieldsFromDataDictionary, getEncryptionService, getInactiveRecordDisplay, getLockingDocumentId, getMaintainableTitle, getMaintenanceAction, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentService, getMultiValueIdentifierList, getNewCollectionLine, getPersistenceStructureService, getPersonService, getSections, getShowInactiveRecords, getWorkflowEngineDocumentIdsToLock, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isOldBusinessObjectInDocument, isRelationshipRefreshable, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, prepareForSave, processAfterAddLine, processAfterEdit, processAfterNew, processAfterRetrieve, saveBusinessObject, setBoClass, setBusinessObject, setDocumentNumber, setGenerateBlankRequiredValues, setGenerateDefaultValues, setMaintenanceAction, setNewCollectionLineDefaultValues, setShowInactiveRecords, setupNewFromExisting, shouldFieldBeEncrypted, useCustomLockDescriptors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityModelMaintainableImpl()
Method Detail |
---|
public void refresh(String refreshCaller, Map fieldValues, org.kuali.rice.kns.document.MaintenanceDocument document)
refresh
in interface org.kuali.rice.kns.maintenance.Maintainable
refresh
in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
KualiMaintainableImpl.refresh(java.lang.String, java.util.Map,
org.kuali.rice.kns.document.MaintenanceDocument)
public void doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader documentHeader)
doRouteStatusChange
in interface org.kuali.rice.kns.maintenance.Maintainable
doRouteStatusChange
in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
KualiMaintainableImpl.doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader)
protected void createOrUpdateModelRole(SecurityModel oldSecurityModel, SecurityModel newSecurityModel)
oldSecurityModel
- SecurityModel record before updatesnewSecurityModel
- SecurityModel after updatesprotected void inactivateModelRole(SecurityModel newSecurityModel)
newSecurityModel
- SecurityModel to inactivateprotected void assignOrUpdateModelMembershipToDefinitionRoles(SecurityModel oldSecurityModel, SecurityModel newSecurityModel, boolean newMaintenanceAction)
oldSecurityModel
- SecurityModel record before updatesnewSecurityModel
- SecurityModel whose membership should be updatednewMaintenanceAction
- boolean indicating whether this is a new record (old side will not contain data)protected void assignOrUpdateModelMembers(SecurityModel securityModel)
securityModel
- SecurityModel whose member list should be updatedprotected void createPrincipalSecurityRecords(String memberId, String memberTypeCode)
memberId
- String member id of model rolememberTypeCode
- String member type code for memberprotected boolean isDefinitionInModel(String definitionName, SecurityModel securityModel)
definitionName
- name of definition to look forsecurityModel
- SecurityModel to check
public void processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
processAfterCopy
in interface org.kuali.rice.kns.maintenance.Maintainable
processAfterCopy
in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
KualiMaintainableImpl.processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument,
java.util.Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |