public interface SponsorService
| Modifier and Type | Method and Description |
|---|---|
void |
changeSponsorSortOrder(String hierarchyName,
Integer levelToChange,
Boolean moveDown,
String[] levels)
Change the sponsor sort order at the specified level.
|
void |
clearCurrentActions()
Remove all previously queued actions
|
void |
copySponsorHierarchy(SponsorHierarchyForm sponsorHierarchyForm)
This method save the new hierarchy that is coming from copy action
|
void |
deleteSponsor(String hierarchyName,
String sponsorCode,
String[] levels)
Delete the sponsor identified by hierarchy name and levels.
|
void |
deleteSponsorHierarchy(SponsorHierarchyForm sponsorHierarchyForm)
This method is to delete the selected hierarchy
|
void |
executeActions()
Execute all actions queued by insertSponsor, deleteSponsor, updateGroupName or changeSponsorSortOrder
|
Sponsor |
getSponsor(String sponsorCode)
Get the sponsor for the given sponsor code
|
String |
getSponsorCodes(String hierarchyName,
String depth,
String groups)
This method get the sponsor codes for the groups that is selected for deletion.
|
String |
getSponsorName(String sponsorCode)
This method returns the sponsor name for a given sponsor code.
|
String |
getSubSponsorHierarchiesForTreeView(String hierarchyName,
String depth,
String groups)
This method is to retrieve next level nodes.
|
String |
getTopSponsorHierarchy()
This method to get the list of unique sponsorhierarchy name.
|
Collection |
getTopSponsorHierarchyList()
This method the sponsor hierarchy name for drop downs
|
List<String> |
getUniqueGroupingNames(String hierarchyName,
Integer level)
Get the list of groupings at the specified level.
|
void |
insertSponsor(String hierarchyName,
String[] sponsorCodes,
String[] levels,
Integer[] sortIds)
Insert new sponsors into the hierarchy defined by hierarchy name and levels.
|
boolean |
isSponsorNihMultiplePi(Sponsorable sponsorable)
This method returns true if a Sponsorable's sponsor is of the "NIH Multiple PI" type.
|
boolean |
isSponsorNihOsc(Sponsorable sponsorable)
This method returns true if a Sponsorable's sponsor is of the "NIH Other Significant Contributor" type.
|
String |
loadToSponsorHierachyMt(String hierarchyName)
This method to load data for sponsor hierarchy maint
|
void |
updateGroupName(String hierarchyName,
Integer levelToChange,
String oldGroupName,
String newGroupName,
String[] levels)
Change the hierarchy group name at the specified level.
|
void |
updateSponsorCodes(String sponsorCodes)
This method is to put the sponsorcodes for the hierarchy in session.
|
boolean |
validateSponsor(Sponsor sponsor)
This method returns true if the passed in Sponsor is valid, returns false if it is not.
|
String getSponsorName(String sponsorCode)
sponsorCode - identifier for the sponsorSponsor getSponsor(String sponsorCode)
sponsorCode - String getTopSponsorHierarchy()
String getSubSponsorHierarchiesForTreeView(String hierarchyName, String depth, String groups)
node - void copySponsorHierarchy(SponsorHierarchyForm sponsorHierarchyForm)
sponsorHierarchyForm - void deleteSponsorHierarchy(SponsorHierarchyForm sponsorHierarchyForm)
sponsorHierarchyForm - Collection getTopSponsorHierarchyList()
String loadToSponsorHierachyMt(String hierarchyName)
hierarchyName - String getSponsorCodes(String hierarchyName, String depth, String groups)
hierarchyName - depth - groups - boolean isSponsorNihMultiplePi(Sponsorable sponsorable)
sponsorable - boolean isSponsorNihOsc(Sponsorable sponsorable)
sponsorable - void updateSponsorCodes(String sponsorCodes)
sponsorCodes - void insertSponsor(String hierarchyName, String[] sponsorCodes, String[] levels, Integer[] sortIds)
hierarchyName - sponsorCodes - levels - sortIds - void deleteSponsor(String hierarchyName, String sponsorCode, String[] levels)
hierarchyName - sponsorCode - can be null to delete all sponsors defined by levelslevels - void updateGroupName(String hierarchyName, Integer levelToChange, String oldGroupName, String newGroupName, String[] levels)
hierarchyName - levelToChange - oldGroupName - newGroupName - levels - void changeSponsorSortOrder(String hierarchyName, Integer levelToChange, Boolean moveDown, String[] levels)
hierarchyName - levelToChange - moveDown - levels - void executeActions()
void clearCurrentActions()
List<String> getUniqueGroupingNames(String hierarchyName, Integer level)
hierarchyName - level - boolean validateSponsor(Sponsor sponsor)
sponsor - Copyright © 2013 The Kuali Foundation. All Rights Reserved.