public abstract class ResearchAreasServiceBaseImpl extends Object implements ResearchAreasServiceBase
| Constructor and Description |
|---|
ResearchAreasServiceBaseImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkResearchAreaAndDescendantsNotReferenced(String researchAreaCode)
This method checks that neither the given research area nor any of its descendants are referenced by
any committee, committee member or protocol (current or past).
|
void |
deactivateResearchAreaAndDescendants(String researchAreaCode)
This method will deactivate the research area that has the given
researchAreaCode, and will also
recursively deactivate all of its descendant research areas as well. |
void |
deleteResearchAreaAndDescendants(String researchAreaCode)
This method will delete the research area that has the given
researchAreaCode and will also
recursively delete all of its descendant research areas as well. |
ResearchAreaCurrentReferencerHolderBase |
getAnyCurrentReferencerForResearchAreaOrDescendant(String researchAreaCode)
This method will return some current version of committee, committee member or protocol that references either the given research area or one of its (active) descendants.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
protected abstract Class<? extends CommitteeBase> |
getCommitteeBOClassHook() |
protected abstract Class<? extends CommitteeMembershipBase> |
getCommitteeMembershipBOClassHook() |
protected abstract Class<? extends CommitteeMembershipExpertiseBase> |
getCommitteeMembershipExpertiseClassHook() |
protected abstract Class<? extends CommitteeResearchAreaBase> |
getCommitteeResearchAreaBOClassHook() |
CommitteeMembershipBase |
getCurrentCommitteeMembershipReferencingResearchArea(String researchAreaCode)
This method will return the instance of a current CommitteeMembershipBase BO, saved in the db, that references the research area with the given code.
|
CommitteeBase |
getCurrentCommitteeReferencingResearchArea(String researchAreaCode)
This method will return the instance of a current CommitteeBase BO, saved in the db, that references the research area with the given code.
|
ProtocolBase |
getCurrentProtocolReferencingResearchArea(String researchAreaCode)
This method will return the instance of a current ProtocolBase BO, saved in the db, that references the research area with the given code.
|
protected abstract ResearchAreaBase |
getNewResearchAreaInstanceHook(String researchAreaCode,
String parentResearchAreaCode,
String description,
boolean active) |
protected abstract Class<? extends ProtocolResearchAreaBase> |
getProtocolResearchAreaBOClassHook() |
protected abstract Class<? extends ResearchAreaBase> |
getResearchAreaBOClassHook() |
ResearchAreaReferencesDao |
getResearchAreaReferencesDao() |
protected List<ResearchAreaBase> |
getSubResearchAreas(String researchAreaCode,
boolean activeOnly) |
String |
getSubResearchAreasForTreeView(String researchAreaCode,
boolean activeOnly)
This method to get children research area codes of 'researchAreaCode'.
|
protected boolean |
isExistInDeletedChildren(String researchAreaCode,
String raCode) |
boolean |
isResearchAreaExist(String researchAreaCode,
String researchAreas)
This method is check whether the new research area code exist in DB.
|
void |
saveResearchAreas(String raChangeXML)
The format is as follows:
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setResearchAreaReferencesDao(ResearchAreaReferencesDao researchAreaReferencesDao) |
public String getSubResearchAreasForTreeView(String researchAreaCode, boolean activeOnly)
ResearchAreasServiceBasegetSubResearchAreasForTreeView in interface ResearchAreasServiceBaseactiveOnly - - if true show only active research areasorg.kuali.kra.irb.service.ResearchAreasService#getSubResearchAreasForTreeView(java.lang.String)protected List<ResearchAreaBase> getSubResearchAreas(String researchAreaCode, boolean activeOnly)
public boolean isResearchAreaExist(String researchAreaCode, String researchAreas)
ResearchAreasServiceBaseisResearchAreaExist in interface ResearchAreasServiceBaseresearchAreaCode - : new research area coderesearchAreas - : list of research area codes that are being removed, but has not been removed from DB yet.ResearchAreasServiceBase.isResearchAreaExist(java.lang.String, java.lang.String)public boolean checkResearchAreaAndDescendantsNotReferenced(String researchAreaCode)
ResearchAreasServiceBasecheckResearchAreaAndDescendantsNotReferenced in interface ResearchAreasServiceBaseTODO: optimize by checking only active descendants? Could use the getSubResearchAreas method abovepublic void deleteResearchAreaAndDescendants(String researchAreaCode)
ResearchAreasServiceBaseresearchAreaCode and will also
recursively delete all of its descendant research areas as well.deleteResearchAreaAndDescendants in interface ResearchAreasServiceBaseResearchAreasServiceBase.deleteResearchAreaAndDescendants(java.lang.String)protected boolean isExistInDeletedChildren(String researchAreaCode, String raCode)
public void saveResearchAreas(String raChangeXML) throws ParserConfigurationException, IOException, SAXException
<RaChanges>
<RaChangesElement>
<RaCreate>
<Code></Code>
<ParentCode></ParentCode>
<Description></Description>
<Active></Active>
</RaCreate>
<RaUpdateDescription>
<Code></Code>
<Description></Description>
</RaUpdateDescription>
<RaUpdateActiveIndicator>
<Code></Code>
<Active></Active>
</RaUpdateActiveIndicator>
<RaUpdateParent>
<Code></Code>
<OldParent></OldParent>
<NewParent></NewParent>
</RaUpdateParent>
<RaDelete>
<Code></Code>
</RaDelete>
</RaChangesElement>
</RaChanges>
saveResearchAreas in interface ResearchAreasServiceBaseraChangeXML - : XML formatted changes that were being performed on questionnaire page.SAXExceptionIOExceptionParserConfigurationExceptionResearchAreasServiceBase.saveResearchAreas(java.lang.String)public ProtocolBase getCurrentProtocolReferencingResearchArea(String researchAreaCode)
ResearchAreasServiceBasegetCurrentProtocolReferencingResearchArea in interface ResearchAreasServiceBaseResearchAreasServiceBase.getCurrentProtocolReferencingResearchArea(java.lang.String)public CommitteeBase getCurrentCommitteeReferencingResearchArea(String researchAreaCode)
ResearchAreasServiceBasegetCurrentCommitteeReferencingResearchArea in interface ResearchAreasServiceBaseResearchAreasServiceBase.getCurrentCommitteeReferencingResearchArea(java.lang.String)public CommitteeMembershipBase getCurrentCommitteeMembershipReferencingResearchArea(String researchAreaCode)
ResearchAreasServiceBasegetCurrentCommitteeMembershipReferencingResearchArea in interface ResearchAreasServiceBaseResearchAreasServiceBase.getCurrentCommitteeMembershipReferencingResearchArea(java.lang.String)protected abstract Class<? extends CommitteeMembershipBase> getCommitteeMembershipBOClassHook()
protected abstract Class<? extends CommitteeMembershipExpertiseBase> getCommitteeMembershipExpertiseClassHook()
public void deactivateResearchAreaAndDescendants(String researchAreaCode) throws Exception
ResearchAreasServiceBaseresearchAreaCode, and will also
recursively deactivate all of its descendant research areas as well.deactivateResearchAreaAndDescendants in interface ResearchAreasServiceBaseExceptionResearchAreasServiceBase.deactivateResearchAreaAndDescendants(java.lang.String)public ResearchAreaCurrentReferencerHolderBase getAnyCurrentReferencerForResearchAreaOrDescendant(String researchAreaCode)
ResearchAreasServiceBaseResearchAreaCurrentReferencerHolder.NO_REFERENCER.
This method should be called and its return value should be checked to ensure that there are no current referencers before calling the method to
deactivate a research area (and its descendants).getAnyCurrentReferencerForResearchAreaOrDescendant in interface ResearchAreasServiceBaseResearchAreasServiceBase.getAnyCurrentReferencerForResearchAreaOrDescendant(java.lang.String)public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public ResearchAreaReferencesDao getResearchAreaReferencesDao()
public void setResearchAreaReferencesDao(ResearchAreaReferencesDao researchAreaReferencesDao)
protected abstract Class<? extends CommitteeBase> getCommitteeBOClassHook()
protected abstract Class<? extends CommitteeResearchAreaBase> getCommitteeResearchAreaBOClassHook()
protected abstract Class<? extends ProtocolResearchAreaBase> getProtocolResearchAreaBOClassHook()
protected abstract Class<? extends ResearchAreaBase> getResearchAreaBOClassHook()
protected abstract ResearchAreaBase getNewResearchAreaInstanceHook(String researchAreaCode, String parentResearchAreaCode, String description, boolean active)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.