protected class OrganizationReversionDetailTrickleDownInactivationServiceImpl.TrickleDownStatus extends Object
Constructor and Description |
---|
OrganizationReversionDetailTrickleDownInactivationServiceImpl.TrickleDownStatus(String successfullyChangedOrganizationReversionDetailsMessageKey,
String erroredOutOrganizationReversionDetailsMessageKey)
Constructs a OrganizationReversionDetailTrickleDownInactivationServiceImpl
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorPersistingOrganizationReversionDetail(OrganizationReversionDetail organizationReversionDetail)
Adds an organization reversion detail which could not successful persist its activation to the error message list
|
void |
addOrganizationReversionDetail(OrganizationReversionDetail organizationReversionDetail)
Adds an organization reversion detail which had a successfully persisted activation to the message list
|
protected org.kuali.rice.krad.bo.Note |
buildNote(String description,
String messageKey,
org.kuali.rice.krad.bo.Note noteTemplate,
org.kuali.rice.krad.bo.PersistableBusinessObject noteParent)
Builds a note
|
protected List<org.kuali.rice.krad.bo.Note> |
generateNotes(String messageKey,
org.kuali.rice.krad.bo.PersistableBusinessObject noteParent,
List<OrganizationReversionDetail> organizationReversionDetails)
Builds a List of Notes out of a list of OrganizationReversionDescriptions
|
protected List<String> |
generateOrganizationReversionDetailsForNotes(List<OrganizationReversionDetail> organizationReversionDetails)
Builds organization reverion detail descriptions to populate notes
|
protected int |
getDetailsPerNote() |
protected String |
getOrganizationReversionDetailDescription(OrganizationReversionDetail organizationReversionDetail)
Beautifully and eloquently describes an organization reversion detail
|
protected void |
saveAllNotes(List<OrganizationReversionDetail> organizationReversionDetails,
String messageKey,
String documentNumber)
Saves notes to a document
|
void |
saveErrorNotes(String documentNumber)
Adds all the notes about inactivations which couldn't be saved
|
void |
saveSuccesfullyChangedNotes(String documentNumber)
Adds all the notes about successful inactivations
|
void |
setErroredOutOrganizationReversionDetailsMessageKey(String erroredOutOrganizationReversionDetailsMessageKey)
Sets the erroredOutOrganizationReversionDetailsMessageKey attribute value.
|
void |
setSuccessfullyChangedOrganizationReversionDetailsMessageKey(String successfullyChangedOrganizationReversionDetailsMessageKey)
Sets the successfullyChangedOrganizationReversionDetailsMessageKey attribute value.
|
public OrganizationReversionDetailTrickleDownInactivationServiceImpl.TrickleDownStatus(String successfullyChangedOrganizationReversionDetailsMessageKey, String erroredOutOrganizationReversionDetailsMessageKey)
public void addOrganizationReversionDetail(OrganizationReversionDetail organizationReversionDetail)
organizationReversionDetail
- the detail to add to the listpublic void addErrorPersistingOrganizationReversionDetail(OrganizationReversionDetail organizationReversionDetail)
organizationReversionDetail
- the detail to add to the listprotected int getDetailsPerNote()
protected List<org.kuali.rice.krad.bo.Note> generateNotes(String messageKey, org.kuali.rice.krad.bo.PersistableBusinessObject noteParent, List<OrganizationReversionDetail> organizationReversionDetails)
messageKey
- the key of the note text in ApplicationResources.propertiesnoteParent
- the thing to stick the note onorganizationReversionDetails
- the List of OrganizationReversionDetails to make notes aboutprotected org.kuali.rice.krad.bo.Note buildNote(String description, String messageKey, org.kuali.rice.krad.bo.Note noteTemplate, org.kuali.rice.krad.bo.PersistableBusinessObject noteParent)
description
- a description to put into the message of the notemessageKey
- the key of the note text in ApplicationResources.propertiesnoteTemplate
- the template for the notenoteParent
- the thing to stick the note onprotected List<String> generateOrganizationReversionDetailsForNotes(List<OrganizationReversionDetail> organizationReversionDetails)
organizationReversionDetails
- the list of details to convert to notesprotected String getOrganizationReversionDetailDescription(OrganizationReversionDetail organizationReversionDetail)
organizationReversionDetail
- the organization reversion detail to describeprotected void saveAllNotes(List<OrganizationReversionDetail> organizationReversionDetails, String messageKey, String documentNumber)
organizationReversionDetails
- the details to make notes aboutmessageKey
- the message key of the text of the notedocumentNumber
- the document number to write topublic void saveSuccesfullyChangedNotes(String documentNumber)
documentNumber
- document number to save them topublic void saveErrorNotes(String documentNumber)
documentNumber
- the document number to save them topublic void setErroredOutOrganizationReversionDetailsMessageKey(String erroredOutOrganizationReversionDetailsMessageKey)
erroredOutOrganizationReversionDetailsMessageKey
- The erroredOutOrganizationReversionDetailsMessageKey to set.public void setSuccessfullyChangedOrganizationReversionDetailsMessageKey(String successfullyChangedOrganizationReversionDetailsMessageKey)
successfullyChangedOrganizationReversionDetailsMessageKey
- The successfullyChangedOrganizationReversionDetailsMessageKey to set.Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.