public class NarrativeServiceImpl extends Object implements NarrativeService
| Constructor and Description |
|---|
NarrativeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstituteAttachment(ProposalDevelopmentDocument proposaldevelopmentDocument,
Narrative narrative)
Method to add a new institute attachment to institute attachment list
|
void |
addNarrative(ProposalDevelopmentDocument proposaldevelopmentDocument,
Narrative narrative)
Method to add a new narrative to narratives list
|
void |
addPerson(String userName,
ProposalDevelopmentDocument proposalDevelopmentDocument,
String roleName)
Add a person to all of the Narratives in a proposal.
|
protected void |
deleteAttachment(List<Narrative> narratives,
int lineToDelete) |
void |
deleteInstitutionalAttachment(ProposalDevelopmentDocument proposaldevelopmentDocument,
int lineToDelete) |
void |
deletePerson(String userId,
ProposalDevelopmentDocument proposalDevelopmentDocument)
Delete a person from all of the narratives.
|
void |
deleteProposalAttachment(ProposalDevelopmentDocument proposaldevelopmentDocument,
int lineToDelete) |
AttachmentDao |
getAttachmentDao() |
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute.
|
protected KraAuthorizationService |
getKraAuthorizationService()
This is a helper method for retrieving KraAuthorizationService
|
NarrativeAuthZService |
getNarrativeAuthZService()
Gets the narrativeAuthZService attribute.
|
protected Integer |
getNextModuleNumber(ProposalDevelopmentDocument proposaldevelopmentDocument) |
protected Integer |
getNextModuleSequenceNumber(ProposalDevelopmentDocument proposaldevelopmentDocument) |
protected List<KcPerson> |
getPersons(ProposalDevelopmentDocument proposalDevelopmentDocument)
Get the persons who have permissions relating to the proposal.
|
protected org.kuali.rice.kim.api.identity.PersonService |
getPersonService() |
ProposalPersonService |
getProposalPersonService()
Gets the proposalPersonService attribute.
|
protected boolean |
isPersonInList(KcPerson person,
List<KcPerson> persons)
Is the person in the list of persons?
|
protected boolean |
isPersonInNarrativeRights(KcPerson person,
List<NarrativeUserRights> narrativeUserRights)
Is this person in the list of narrative user rights?
|
void |
populateNarrativeRightsForLoggedinUser(ProposalDevelopmentDocument proposaldevelopmentDocument) |
protected void |
populateNarrativeUserRights(ProposalDevelopmentDocument proposalDevelopmentDocument,
Narrative narrative)
This method used to add narrative user rights to a narrative.
|
void |
populatePersonNameForNarrativeUserRights(ProposalDevelopmentDocument proposaldevelopmentDocument,
Narrative narrative)
Method to populate personname for all user who have narrative rights
|
void |
readjustRights(String userId,
ProposalDevelopmentDocument proposalDevelopmentDocument,
List<String> roleNames)
Re-adjust the narrative rights for a user.
|
void |
replaceAttachment(Narrative narrative) |
void |
setAttachmentDao(AttachmentDao attachmentDao) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setKcPersonService(KcPersonService kcPersonService)
Sets the KC Person Service.
|
void |
setNarrativeAuthZService(NarrativeAuthZService narrativeAuthZService)
Sets the narrativeAuthZService attribute value.
|
void |
setNarrativeTimeStampUser(List<Narrative> narratives)
This method set up timestamp and upload user for narrative & internal attachments.
|
void |
setPersonService(org.kuali.rice.kim.api.identity.PersonService personService) |
void |
setProposalPersonService(ProposalPersonService proposalPersonService)
Sets the proposalPersonService attribute value.
|
void |
setSystemAuthorizationService(SystemAuthorizationService systemAuthorizationService) |
protected void |
updateUserTimestamp(KraPersistableBusinessObjectBase bo)
Update the User and Timestamp for the business object.
|
public void addNarrative(ProposalDevelopmentDocument proposaldevelopmentDocument, Narrative narrative)
addNarrative in interface NarrativeServicenarrative - protected Integer getNextModuleNumber(ProposalDevelopmentDocument proposaldevelopmentDocument)
protected Integer getNextModuleSequenceNumber(ProposalDevelopmentDocument proposaldevelopmentDocument)
protected void populateNarrativeUserRights(ProposalDevelopmentDocument proposalDevelopmentDocument, Narrative narrative)
proposalDevelopmentDocument - the Proposal Development Documentnarrative - the narrative to add the users toprotected boolean isPersonInNarrativeRights(KcPerson person, List<NarrativeUserRights> narrativeUserRights)
person - the person to look fornarrativeUserRights - the list of narrative user rightsprotected List<KcPerson> getPersons(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the Proposal Development Documentprotected boolean isPersonInList(KcPerson person, List<KcPerson> persons)
person - the person to look forpersons - the list of personspublic void deleteProposalAttachment(ProposalDevelopmentDocument proposaldevelopmentDocument, int lineToDelete)
deleteProposalAttachment in interface NarrativeServicepublic void deleteInstitutionalAttachment(ProposalDevelopmentDocument proposaldevelopmentDocument, int lineToDelete)
deleteInstitutionalAttachment in interface NarrativeServicepublic void addInstituteAttachment(ProposalDevelopmentDocument proposaldevelopmentDocument, Narrative narrative)
addInstituteAttachment in interface NarrativeServicenarrative - public void populatePersonNameForNarrativeUserRights(ProposalDevelopmentDocument proposaldevelopmentDocument, Narrative narrative)
public void replaceAttachment(Narrative narrative)
replaceAttachment in interface NarrativeServicepublic void populateNarrativeRightsForLoggedinUser(ProposalDevelopmentDocument proposaldevelopmentDocument)
populateNarrativeRightsForLoggedinUser in interface NarrativeServiceprotected void updateUserTimestamp(KraPersistableBusinessObjectBase bo)
bo - the business objectpublic NarrativeAuthZService getNarrativeAuthZService()
public void setNarrativeAuthZService(NarrativeAuthZService narrativeAuthZService)
narrativeAuthZService - The narrativeAuthZService to set.public ProposalPersonService getProposalPersonService()
public void setProposalPersonService(ProposalPersonService proposalPersonService)
proposalPersonService - The proposalPersonService to set.public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.public void deletePerson(String userId, ProposalDevelopmentDocument proposalDevelopmentDocument)
NarrativeServicedeletePerson in interface NarrativeServiceproposalDevelopmentDocument - the Proposal Development DocumentNarrativeService.deletePerson(java.lang.String, org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public void readjustRights(String userId, ProposalDevelopmentDocument proposalDevelopmentDocument, List<String> roleNames)
NarrativeServicereadjustRights in interface NarrativeServiceproposalDevelopmentDocument - the Proposal Development DocumentroleNames - the roles the user is inpublic void addPerson(String userName, ProposalDevelopmentDocument proposalDevelopmentDocument, String roleName)
NarrativeServiceaddPerson in interface NarrativeServiceproposalDevelopmentDocument - the Proposal Development DocumentroleName - the initial proposal role of the userpublic void setKcPersonService(KcPersonService kcPersonService)
kcPersonService - the kc person servicepublic AttachmentDao getAttachmentDao()
public void setAttachmentDao(AttachmentDao attachmentDao)
public void setNarrativeTimeStampUser(List<Narrative> narratives)
NarrativeServicesetNarrativeTimeStampUser in interface NarrativeServiceNarrativeService.setNarrativeTimeStampUser(java.util.List)protected KraAuthorizationService getKraAuthorizationService()
public void setSystemAuthorizationService(SystemAuthorizationService systemAuthorizationService)
protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
public void setPersonService(org.kuali.rice.kim.api.identity.PersonService personService)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.