|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.lum.program.service.impl.ProgramServiceImpl
public class ProgramServiceImpl
Field Summary | |
---|---|
private AtpService |
atpService
|
private CoreProgramAssembler |
coreProgramAssembler
|
private CredentialProgramAssembler |
credentialProgramAssembler
|
private DictionaryService |
dictionaryService
|
private DocumentService |
documentService
|
(package private) static Logger |
LOG
|
private LuService |
luService
|
private MajorDisciplineAssembler |
majorDisciplineAssembler
|
private ProgramRequirementAssembler |
programRequirementAssembler
|
private BusinessServiceMethodInvoker |
programServiceMethodInvoker
|
private SearchManager |
searchManager
|
private ValidatorFactory |
validatorFactory
|
Constructor Summary | |
---|---|
ProgramServiceImpl()
|
Method Summary | |
---|---|
private void |
checkForMissingParameter(Object param,
String paramName)
Check for missing parameter and throw localized exception if missing |
private void |
clearStatementTreeViewIdsRecursively(StatementTreeViewInfo statementTreeView)
Recurses through the statement tree and clears out ids so the tree can be copied. |
private void |
compareAtps(String aptKey1,
String aptKey2,
List<ValidationResultInfo> validationResults,
String field,
String path)
|
private void |
copyProgramRequirements(List<String> originalProgramRequirementIds,
String state)
Copy requirements (these exist external to the program save process and are referenced by id) |
CoreProgramInfo |
createCoreProgram(CoreProgramInfo coreProgramInfo)
Creates a Core Program |
CredentialProgramInfo |
createCredentialProgram(CredentialProgramInfo credentialProgramInfo)
Creates a Credential Program |
HonorsProgramInfo |
createHonorsProgram(HonorsProgramInfo honorsProgramInfo)
Creates a Honors Program |
MajorDisciplineInfo |
createMajorDiscipline(MajorDisciplineInfo majorDisciplineInfo)
Creates a Major Discipline Program |
MinorDisciplineInfo |
createMinorDiscipline(MinorDisciplineInfo minorDisciplineInfo)
Creates a Minor Discipline Program |
CoreProgramInfo |
createNewCoreProgramVersion(String coreProgramId,
String versionComment)
Creates a new Core Program version based on the current Core Program |
CredentialProgramInfo |
createNewCredentialProgramVersion(String credentialProgramId,
String versionComment)
Creates a new Credential Program version based on the current Credential Program |
MajorDisciplineInfo |
createNewMajorDisciplineVersion(String majorDisciplineVerIndId,
String versionComment)
Creates a new Major Discipline version based on the current Major |
ProgramRequirementInfo |
createProgramRequirement(ProgramRequirementInfo programRequirementInfo)
Creates a Program Requirement |
StatusInfo |
deleteCoreProgram(String coreProgramId)
Deletes a Core Program |
StatusInfo |
deleteCredentialProgram(String credentialProgramId)
Deletes a Credential Program |
StatusInfo |
deleteHonorsProgram(String honorsProgramId)
Deletes a Honors Program |
StatusInfo |
deleteMajorDiscipline(String majorDisciplineId)
Deletes a Major Discipline |
StatusInfo |
deleteMinorDiscipline(String minorDisciplineId)
Deletes a Minor Discipline |
StatusInfo |
deleteProgramRequirement(String programRequirementId)
Deletes a Program Requirement |
private AtpInfo |
getAtpInfo(String atpKey)
|
AtpService |
getAtpService()
|
CoreProgramInfo |
getCoreProgram(String coreProgramId)
Retrieves a Core Program |
CoreProgramAssembler |
getCoreProgramAssembler()
|
CredentialProgramInfo |
getCredentialProgram(String credentialProgramId)
Retrieves a CredentialProgram |
CredentialProgramAssembler |
getCredentialProgramAssembler()
|
LuTypeInfo |
getCredentialProgramType(String credentialProgramTypeKey)
Retrieves information about a credential program type |
List<LuTypeInfo> |
getCredentialProgramTypes()
Retrieves the list of credential program types |
VersionDisplayInfo |
getCurrentVersion(String refObjectTypeURI,
String refObjectId)
Retrieves current version associated with the objectId. |
VersionDisplayInfo |
getCurrentVersionOnDate(String refObjectTypeURI,
String refObjectId,
Date date)
Retrieves the current version associated with the objectId on a given date. |
DictionaryService |
getDictionaryService()
|
DocumentService |
getDocumentService()
|
VersionDisplayInfo |
getFirstVersion(String refObjectTypeURI,
String refObjectId)
Retrieves first version associated with the objectId. |
List<String> |
getHonorsByCredentialProgramType(String programType)
Retrieves the list of Honors Program Program a given Credential Program Type. |
HonorsProgramInfo |
getHonorsProgram(String honorsProgramId)
Retrieves a HonorsProgram |
VersionDisplayInfo |
getLatestVersion(String refObjectTypeURI,
String refObjectId)
Retrieves latest version associated with the objectId. |
LuService |
getLuService()
|
MajorDisciplineInfo |
getMajorDiscipline(String majorDisciplineId)
Retrieves a MajorDiscipline |
MajorDisciplineAssembler |
getMajorDisciplineAssembler()
|
List<String> |
getMajorIdsByCredentialProgramType(String programType)
Retrieves the list of Major Discipline identifiers a given Credential Program Type. |
MinorDisciplineInfo |
getMinorDiscipline(String minorDisciplineId)
Retrieves a MinorDiscipline |
List<String> |
getMinorsByCredentialProgramType(String programType)
Retrieves the list of Minor Discipline Program a given Credential Program Type. |
ObjectStructureDefinition |
getObjectStructure(String objectTypeKey)
|
List<String> |
getObjectTypes()
|
ProgramRequirementInfo |
getProgramRequirement(String programRequirementId,
String nlUsageTypeKey,
String language)
Retrieves a ProgramRequirement |
ProgramRequirementAssembler |
getProgramRequirementAssembler()
|
BusinessServiceMethodInvoker |
getProgramServiceMethodInvoker()
|
SearchCriteriaTypeInfo |
getSearchCriteriaType(String searchCriteriaTypeKey)
Retrieves information about a particular search criteria type. |
List<SearchCriteriaTypeInfo> |
getSearchCriteriaTypes()
Retrieves the list of search criteria types known by this service. |
SearchManager |
getSearchManager()
|
SearchResultTypeInfo |
getSearchResultType(String searchResultTypeKey)
Retrieves information about a particular search result type. |
List<SearchResultTypeInfo> |
getSearchResultTypes()
Retrieves the list of search result types known by this service. |
SearchTypeInfo |
getSearchType(String searchTypeKey)
Retrieves information about a particular search type. |
List<SearchTypeInfo> |
getSearchTypes()
Retrieves the list of search types known by this service. |
List<SearchTypeInfo> |
getSearchTypesByCriteria(String searchCriteriaTypeKey)
Retrieves the list of search types which use criteria in the specified format. |
List<SearchTypeInfo> |
getSearchTypesByResult(String searchResultTypeKey)
Retrieves the list of search types which return results in the specified format. |
private StatusInfo |
getStatus()
|
ValidatorFactory |
getValidatorFactory()
|
List<ProgramVariationInfo> |
getVariationsByMajorDisciplineId(String majorDisciplineId)
Retrieves a list of program variations for a particular major |
VersionDisplayInfo |
getVersionBySequenceNumber(String refObjectTypeURI,
String refObjectId,
Long sequence)
Retrieves the version associated with the objectId and the sequence number. |
List<VersionDisplayInfo> |
getVersions(String refObjectTypeURI,
String refObjectId)
Retrieves list of version associated with the objectId. |
List<VersionDisplayInfo> |
getVersionsInDateRange(String refObjectTypeURI,
String refObjectId,
Date from,
Date to)
Retrieves the current version associated with the objectId on a given date. |
private void |
invokeServiceCalls(BaseDTOAssemblyNode<?,CluInfo> results)
|
private boolean |
isEmpty(String value)
|
private void |
processCopy(CoreProgramInfo originalCoreProgram,
String originalId)
|
private void |
processCopy(CredentialProgramInfo originaCredentialProgram,
String originalId)
|
private void |
processCopy(MajorDisciplineInfo majorDiscipline,
String originalId)
Clears out any ids so that a subsequent call to create will copy complex structures. |
private CoreProgramInfo |
processCoreProgramInfo(CoreProgramInfo coreProgramInfo,
BaseDTOAssemblyNode.NodeOperation operation)
|
private CredentialProgramInfo |
processCredentialProgramInfo(CredentialProgramInfo credentialProgramInfo,
BaseDTOAssemblyNode.NodeOperation operation)
|
private MajorDisciplineInfo |
processMajorDisciplineInfo(MajorDisciplineInfo majorDisciplineInfo,
BaseDTOAssemblyNode.NodeOperation operation)
|
private ProgramRequirementInfo |
processProgramRequirement(ProgramRequirementInfo programRequirementInfo,
BaseDTOAssemblyNode.NodeOperation operation)
|
private void |
resetLoRecursively(LoDisplayInfo lo)
Recursively clears out the ids in a Lo and in its child Los |
SearchResult |
search(SearchRequest searchRequest)
|
void |
setAtpService(AtpService atpService)
|
void |
setCoreProgramAssembler(CoreProgramAssembler coreProgramAssembler)
|
void |
setCredentialProgramAssembler(CredentialProgramAssembler credentialProgramAssembler)
|
StatusInfo |
setCurrentCoreProgramVersion(String coreProgramId,
Date currentVersionStart)
Sets a specific version of the Core Program as current. |
StatusInfo |
setCurrentCredentialProgramVersion(String credentialProgramId,
Date currentVersionStart)
Sets a specific version of the Credential Program as current. |
StatusInfo |
setCurrentMajorDisciplineVersion(String majorDisciplineId,
Date currentVersionStart)
Sets a specific version of the Major as current. |
void |
setDictionaryService(DictionaryService dictionaryService)
|
void |
setDocumentService(DocumentService documentService)
|
void |
setLuService(LuService luService)
|
void |
setMajorDisciplineAssembler(MajorDisciplineAssembler majorDisciplineAssembler)
|
void |
setProgramRequirementAssembler(ProgramRequirementAssembler programRequirementAssembler)
|
void |
setProgramServiceMethodInvoker(BusinessServiceMethodInvoker serviceMethodInvoker)
|
void |
setSearchManager(SearchManager searchManager)
|
void |
setValidatorFactory(ValidatorFactory validatorFactory)
|
CoreProgramInfo |
updateCoreProgram(CoreProgramInfo coreProgramInfo)
Updates a Core Program |
CredentialProgramInfo |
updateCredentialProgram(CredentialProgramInfo credentialProgramInfo)
Updates a Credential Program |
HonorsProgramInfo |
updateHonorsProgram(HonorsProgramInfo honorsProgramInfo)
Updates a Honors Program |
MajorDisciplineInfo |
updateMajorDiscipline(MajorDisciplineInfo majorDisciplineInfo)
Updates a Major Discipline |
MinorDisciplineInfo |
updateMinorDiscipline(MinorDisciplineInfo minorDisciplineInfo)
Updates a Minor Discipline |
ProgramRequirementInfo |
updateProgramRequirement(ProgramRequirementInfo programRequirementInfo)
Updates a Program Requirement |
private void |
updateRequirementsState(List<String> programRequirementIds,
String newState)
This method will update the requirement state. |
private static void |
updateStatementTreeViewInfoState(String state,
StatementTreeViewInfo statementTreeViewInfo)
This method will recursively set the state of all statements in the tree. |
List<ValidationResultInfo> |
validateCoreProgram(String validationType,
CoreProgramInfo coreProgramInfo)
Validates a Core Program against its data dictionary |
List<ValidationResultInfo> |
validateCredentialProgram(String validationType,
CredentialProgramInfo credentialProgramInfo)
Validates a Credential Program against its data dictionary |
List<ValidationResultInfo> |
validateHonorsProgram(String validationType,
HonorsProgramInfo honorsProgramInfo)
Validates a Honors Program against its data dictionary |
List<ValidationResultInfo> |
validateMajorDiscipline(String validationType,
MajorDisciplineInfo majorDisciplineInfo)
Validates a Major discipline against its data dictionary |
private void |
validateMajorDisciplineAtps(MajorDisciplineInfo majorDisciplineInfo,
List<ValidationResultInfo> validationResults)
|
List<ValidationResultInfo> |
validateMinorDiscipline(String validationType,
MinorDisciplineInfo minorDisciplineInfo)
Validates a Minor discipline against its data dictionary |
List<ValidationResultInfo> |
validateProgramRequirement(String validationType,
ProgramRequirementInfo programRequirementInfo)
Validates a Program Requirement against its data dictionary |
private void |
validateVariationAtps(ProgramVariationInfo programVariationInfo,
List<ValidationResultInfo> validationResults,
int idx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final Logger LOG
private LuService luService
private ValidatorFactory validatorFactory
private BusinessServiceMethodInvoker programServiceMethodInvoker
private DictionaryService dictionaryService
private SearchManager searchManager
private MajorDisciplineAssembler majorDisciplineAssembler
private ProgramRequirementAssembler programRequirementAssembler
private CredentialProgramAssembler credentialProgramAssembler
private CoreProgramAssembler coreProgramAssembler
private AtpService atpService
private DocumentService documentService
Constructor Detail |
---|
public ProgramServiceImpl()
Method Detail |
---|
@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CredentialProgramInfo createCredentialProgram(CredentialProgramInfo credentialProgramInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
createCredentialProgram
in interface ProgramService
credentialProgramInfo
- credentialProgramInfo
AlreadyExistsException
- The Credential Program already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- invalid Credential Program
MissingParameterException
- missing Credential Program
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public HonorsProgramInfo createHonorsProgram(HonorsProgramInfo honorsProgramInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
createHonorsProgram
in interface ProgramService
honorsProgramInfo
- honorsProgramInfo
AlreadyExistsException
- The Honors Program already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- invalid Honors Program
MissingParameterException
- missing Honors Program
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public ProgramRequirementInfo createProgramRequirement(ProgramRequirementInfo programRequirementInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
createProgramRequirement
in interface ProgramService
programRequirementInfo
- programRequirementInfo
AlreadyExistsException
- The Program Requirement already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- invalid Program Requirement
MissingParameterException
- missing Program Requirement
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public MajorDisciplineInfo createMajorDiscipline(MajorDisciplineInfo majorDisciplineInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
createMajorDiscipline
in interface ProgramService
majorDisciplineInfo
- majorDisciplineInfo
AlreadyExistsException
- The Major already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- invalid Major
MissingParameterException
- missing Major
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public MajorDisciplineInfo createNewMajorDisciplineVersion(String majorDisciplineVerIndId, String versionComment) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException
ProgramService
createNewMajorDisciplineVersion
in interface ProgramService
majorDisciplineVerIndId
- identifier for the Major Discipline to be versionedversionComment
- comment for the current version
DoesNotExistException
- Major does not exist
InvalidParameterException
- invalid majorDisciplineId
MissingParameterException
- invalid majorDisciplineId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- The action was attempted on an out of date version
DataValidationErrorException
private void updateRequirementsState(List<String> programRequirementIds, String newState) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException
Note that it uses StatementUtil to update the statement tree.
majorDisciplineInfo
- newState
-
Exception
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException
DataValidationErrorException
private static void updateStatementTreeViewInfoState(String state, StatementTreeViewInfo statementTreeViewInfo)
WARNING: you must call the statement service in order to update statements.
state
- is the state we should set all statements in the tree tostatementTreeViewInfo
- the tree of statements
Exception
private void clearStatementTreeViewIdsRecursively(StatementTreeViewInfo statementTreeView) throws OperationFailedException
statementTreeView
-
OperationFailedException
(This is duplicate code because of the weird dependencies cause by program being in its own module)
private void processCopy(MajorDisciplineInfo majorDiscipline, String originalId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, AlreadyExistsException, DataValidationErrorException, VersionMismatchException, CircularRelationshipException
majorDiscipline
-
PermissionDeniedException
OperationFailedException
MissingParameterException
InvalidParameterException
DoesNotExistException
DataValidationErrorException
AlreadyExistsException
VersionMismatchException
CircularRelationshipException
private void processCopy(CredentialProgramInfo originaCredentialProgram, String originalId) throws OperationFailedException, AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, PermissionDeniedException, DoesNotExistException
OperationFailedException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
PermissionDeniedException
DoesNotExistException
private void processCopy(CoreProgramInfo originalCoreProgram, String originalId) throws OperationFailedException, AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, PermissionDeniedException, DoesNotExistException
OperationFailedException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
PermissionDeniedException
DoesNotExistException
private void copyProgramRequirements(List<String> originalProgramRequirementIds, String state) throws OperationFailedException, AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, PermissionDeniedException, DoesNotExistException
originalProgramRequirementIds
- state
-
OperationFailedException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
PermissionDeniedException
DoesNotExistException
private void resetLoRecursively(LoDisplayInfo lo)
lo
- @Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo setCurrentMajorDisciplineVersion(String majorDisciplineId, Date currentVersionStart) throws DoesNotExistException, InvalidParameterException, MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException
ProgramService
setCurrentMajorDisciplineVersion
in interface ProgramService
majorDisciplineId
- Version Specific Id of the Major DisciplinecurrentVersionStart
- Date when this Major becomes current. Must be in the future and be after the most current major's start date.
DoesNotExistException
- Major for majorVersionId does not exist
InvalidParameterException
- invalid majorVersionId, currentVersionStart
MissingParameterException
- invalid majorVersionId
IllegalVersionSequencingException
- a Major with higher sequence number from the one provided is marked current
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public MinorDisciplineInfo createMinorDiscipline(MinorDisciplineInfo minorDisciplineInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
createMinorDiscipline
in interface ProgramService
minorDisciplineInfo
- minorDisciplineInfo
AlreadyExistsException
- The Minor already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- invalid Minor
MissingParameterException
- missing Minor
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteCredentialProgram(String credentialProgramId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
deleteCredentialProgram
in interface ProgramService
credentialProgramId
- identifier for credentialProgramId.Maps to cluId
DoesNotExistException
- Credential Program does not exist
InvalidParameterException
- invalid credentialProgramId
MissingParameterException
- invalid credentialProgramId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteHonorsProgram(String honorsProgramId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
deleteHonorsProgram
in interface ProgramService
honorsProgramId
- identifier for honorsProgramId.Maps to cluId
DoesNotExistException
- Honors Program does not exist
InvalidParameterException
- invalid honorsProgramId
MissingParameterException
- invalid honorsProgramId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteMajorDiscipline(String majorDisciplineId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
deleteMajorDiscipline
in interface ProgramService
majorDisciplineId
- identifier for majorDisciplineId.Maps to cluId
DoesNotExistException
- Major does not exist
InvalidParameterException
- invalid majorDisciplineId
MissingParameterException
- invalid majorDisciplineId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteMinorDiscipline(String minorDisciplineId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
deleteMinorDiscipline
in interface ProgramService
minorDisciplineId
- identifier for minorDisciplineId.Maps to cluId
DoesNotExistException
- Minor does not exist
InvalidParameterException
- invalid minorDisciplineId
MissingParameterException
- invalid minorDisciplineId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteProgramRequirement(String programRequirementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
deleteProgramRequirement
in interface ProgramService
programRequirementId
- identifier for programRequirementId.Maps to cluId
DoesNotExistException
- Program Requirement does not exist
InvalidParameterException
- invalid programRequirementId
MissingParameterException
- invalid programRequirementId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public CredentialProgramInfo getCredentialProgram(String credentialProgramId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
getCredentialProgram
in interface ProgramService
credentialProgramId
- Unique Id of the CredentialProgram. Maps to cluId
DoesNotExistException
- CredentialProgram does not exist
InvalidParameterException
- invalid Credential Program
MissingParameterException
- missing Credential Program
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failurepublic LuTypeInfo getCredentialProgramType(String credentialProgramTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
getCredentialProgramType
in interface ProgramService
credentialProgramTypeKey
- Key of the Credential Program Type
DoesNotExistException
- credentialProgramType not found
InvalidParameterException
- invalid credentialProgramType
MissingParameterException
- missing credentialProgramType
OperationFailedException
- unable to complete requestpublic List<LuTypeInfo> getCredentialProgramTypes() throws OperationFailedException
ProgramService
getCredentialProgramTypes
in interface ProgramService
OperationFailedException
- unable to complete requestpublic List<String> getHonorsByCredentialProgramType(String programType) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
getHonorsByCredentialProgramType
in interface ProgramService
programType
- Type of Credential Program
DoesNotExistException
- program type not found
InvalidParameterException
- invalid program type
MissingParameterException
- program type is not specified
OperationFailedException
- unable to complete requestpublic HonorsProgramInfo getHonorsProgram(String honorsProgramId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
getHonorsProgram
in interface ProgramService
honorsProgramId
- Unique Id of the HonorsProgram. Maps to cluId
DoesNotExistException
- HonorsProgram does not exist
InvalidParameterException
- invalid Honors Program
MissingParameterException
- missing Honors Program
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public MajorDisciplineInfo getMajorDiscipline(String majorDisciplineId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
getMajorDiscipline
in interface ProgramService
majorDisciplineId
- Unique Id of the MajorDiscipline. Maps to cluId
DoesNotExistException
- MajorDiscipline does not exist
InvalidParameterException
- invalid MajorDiscipline
MissingParameterException
- missing MajorDiscipline
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failurepublic List<String> getMajorIdsByCredentialProgramType(String programType) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
getMajorIdsByCredentialProgramType
in interface ProgramService
programType
- Type of Credential Program
DoesNotExistException
- program type not found
InvalidParameterException
- invalid program type
MissingParameterException
- program type is not specified
OperationFailedException
- unable to complete requestpublic MinorDisciplineInfo getMinorDiscipline(String minorDisciplineId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
getMinorDiscipline
in interface ProgramService
minorDisciplineId
- Unique Id of the MinorDiscipline. Maps to cluId
DoesNotExistException
- MinorDiscipline does not exist
InvalidParameterException
- invalid MinorDiscipline
MissingParameterException
- missing MinorDiscipline
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failurepublic List<String> getMinorsByCredentialProgramType(String programType) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
getMinorsByCredentialProgramType
in interface ProgramService
programType
- Type of Credential Program
DoesNotExistException
- program type not found
InvalidParameterException
- invalid program type
MissingParameterException
- program type is not specified
OperationFailedException
- unable to complete request@Transactional(readOnly=true) public ProgramRequirementInfo getProgramRequirement(String programRequirementId, String nlUsageTypeKey, String language) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
getProgramRequirement
in interface ProgramService
programRequirementId
- Unique Id of the ProgramRequirement. Maps to cluIdnlUsageTypeKey
- Natural language usage type key (context)language
- Translation language e.g en, es, gr
DoesNotExistException
- Program Requirement does not exist
InvalidParameterException
- invalid Program Requirement
MissingParameterException
- missing Program Requirement
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<ProgramVariationInfo> getVariationsByMajorDisciplineId(String majorDisciplineId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
getVariationsByMajorDisciplineId
in interface ProgramService
majorDisciplineId
- Major Discipline Identifier
DoesNotExistException
- Major not found
InvalidParameterException
- invalid majorDisciplineId
MissingParameterException
- majorDisciplineId not specified
OperationFailedException
- unable to complete request@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CredentialProgramInfo updateCredentialProgram(CredentialProgramInfo credentialProgramInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException
ProgramService
updateCredentialProgram
in interface ProgramService
credentialProgramInfo
- credentialProgramInfo
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Credential Program not found
InvalidParameterException
- invalid Credential Program
MissingParameterException
- missing Credential Program
VersionMismatchException
- The action was attempted on an out of date version
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public HonorsProgramInfo updateHonorsProgram(HonorsProgramInfo honorsProgramInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException
ProgramService
updateHonorsProgram
in interface ProgramService
honorsProgramInfo
- honorsProgramInfo
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Honors Program not found
InvalidParameterException
- invalid Honors Program
MissingParameterException
- missing Honors Program
VersionMismatchException
- The action was attempted on an out of date version
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public MajorDisciplineInfo updateMajorDiscipline(MajorDisciplineInfo majorDisciplineInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException
ProgramService
updateMajorDiscipline
in interface ProgramService
majorDisciplineInfo
- majorDisciplineInfo
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Major not found
InvalidParameterException
- invalid Major
MissingParameterException
- missing Major
VersionMismatchException
- The action was attempted on an out of date version
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public MinorDisciplineInfo updateMinorDiscipline(MinorDisciplineInfo minorDisciplineInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException
ProgramService
updateMinorDiscipline
in interface ProgramService
minorDisciplineInfo
- minorDisciplineInfo
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Minor not found
InvalidParameterException
- invalid Minor
MissingParameterException
- missing Minor
VersionMismatchException
- The action was attempted on an out of date version
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public ProgramRequirementInfo updateProgramRequirement(ProgramRequirementInfo programRequirementInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException
ProgramService
updateProgramRequirement
in interface ProgramService
programRequirementInfo
- programRequirementInfo
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Program Requirement not found
InvalidParameterException
- invalid Program Requirement
MissingParameterException
- missing Program Requirement
VersionMismatchException
- The action was attempted on an out of date version
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failurepublic List<ValidationResultInfo> validateCredentialProgram(String validationType, CredentialProgramInfo credentialProgramInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
validateCredentialProgram
in interface ProgramService
validationType
- identifier of the extent of validationcredentialProgramInfo
- Credential Program information to be tested
InvalidParameterException
- invalid validationTypeKey, cluInfo
MissingParameterException
- missing validationTypeKey, cluInfo
OperationFailedException
- unable to complete requestpublic List<ValidationResultInfo> validateHonorsProgram(String validationType, HonorsProgramInfo honorsProgramInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
validateHonorsProgram
in interface ProgramService
validationType
- identifier of the extent of validationhonorsProgramInfo
- Honors Program information to be tested
InvalidParameterException
- invalid validationTypeKey, cluInfo
MissingParameterException
- missing validationTypeKey, cluInfo
OperationFailedException
- unable to complete requestpublic List<ValidationResultInfo> validateMajorDiscipline(String validationType, MajorDisciplineInfo majorDisciplineInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
validateMajorDiscipline
in interface ProgramService
validationType
- identifier of the extent of validationmajorDisciplineInfo
- Major discipline information to be tested
InvalidParameterException
- invalid validationTypeKey, cluInfo
MissingParameterException
- missing validationTypeKey, cluInfo
OperationFailedException
- unable to complete requestpublic List<ValidationResultInfo> validateMinorDiscipline(String validationType, MinorDisciplineInfo minorDisciplineInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
validateMinorDiscipline
in interface ProgramService
validationType
- identifier of the extent of validationminorDisciplineInfo
- Minor discipline information to be tested
InvalidParameterException
- invalid validationTypeKey, cluInfo
MissingParameterException
- missing validationTypeKey, cluInfo
OperationFailedException
- unable to complete requestpublic List<ValidationResultInfo> validateProgramRequirement(String validationType, ProgramRequirementInfo programRequirementInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
validateProgramRequirement
in interface ProgramService
validationType
- identifier of the extent of validationprogramRequirementInfo
- Program Requirement information to be tested
InvalidParameterException
- invalid validationTypeKey, cluInfo
MissingParameterException
- missing validationTypeKey, cluInfo
OperationFailedException
- unable to complete requestpublic ObjectStructureDefinition getObjectStructure(String objectTypeKey)
getObjectStructure
in interface DictionaryService
public List<String> getObjectTypes()
getObjectTypes
in interface DictionaryService
public SearchCriteriaTypeInfo getSearchCriteriaType(String searchCriteriaTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
SearchService
getSearchCriteriaType
in interface SearchService
searchCriteriaTypeKey
- identifier of the search criteria type
DoesNotExistException
- specified searchCriteriaTypeKey not found
InvalidParameterException
- invalid searchCriteriaTypeKey
MissingParameterException
- searchCriteriaTypeKey not specified
OperationFailedException
- unable to complete requestpublic List<SearchCriteriaTypeInfo> getSearchCriteriaTypes() throws OperationFailedException
SearchService
getSearchCriteriaTypes
in interface SearchService
OperationFailedException
- unable to complete requestpublic SearchResultTypeInfo getSearchResultType(String searchResultTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
SearchService
getSearchResultType
in interface SearchService
searchResultTypeKey
- identifier of the search result type
DoesNotExistException
- specified searchResultTypeKey not found
InvalidParameterException
- invalid searchResultTypeKey
MissingParameterException
- searchResultTypeKey not specified
OperationFailedException
- unable to complete requestpublic List<SearchResultTypeInfo> getSearchResultTypes() throws OperationFailedException
SearchService
getSearchResultTypes
in interface SearchService
OperationFailedException
- unable to complete requestpublic SearchTypeInfo getSearchType(String searchTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
SearchService
getSearchType
in interface SearchService
searchTypeKey
- identifier of the search type
DoesNotExistException
- specified searchTypeKey not found
InvalidParameterException
- invalid searchTypeKey
MissingParameterException
- searchTypeKey not specified
OperationFailedException
- unable to complete requestpublic List<SearchTypeInfo> getSearchTypes() throws OperationFailedException
SearchService
getSearchTypes
in interface SearchService
OperationFailedException
- unable to complete requestpublic List<SearchTypeInfo> getSearchTypesByCriteria(String searchCriteriaTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
SearchService
getSearchTypesByCriteria
in interface SearchService
searchCriteriaTypeKey
- identifier of the search criteria
DoesNotExistException
- specified searchCriteriaTypeKey not found
InvalidParameterException
- invalid searchCriteriaTypeKey
MissingParameterException
- searchCriteriaTypeKey not specified
OperationFailedException
- unable to complete requestpublic List<SearchTypeInfo> getSearchTypesByResult(String searchResultTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
SearchService
getSearchTypesByResult
in interface SearchService
searchResultTypeKey
- identifier of the search result type
DoesNotExistException
- specified searchResultTypeKey not found
InvalidParameterException
- invalid searchResultTypeKey
MissingParameterException
- searchResultTypeKey not specified
OperationFailedException
- unable to complete requestpublic SearchResult search(SearchRequest searchRequest) throws MissingParameterException
search
in interface SearchService
MissingParameterException
private void checkForMissingParameter(Object param, String paramName) throws MissingParameterException
param
- parameter
- name
MissingParameterException
private MajorDisciplineInfo processMajorDisciplineInfo(MajorDisciplineInfo majorDisciplineInfo, BaseDTOAssemblyNode.NodeOperation operation) throws AssemblyException
AssemblyException
private CredentialProgramInfo processCredentialProgramInfo(CredentialProgramInfo credentialProgramInfo, BaseDTOAssemblyNode.NodeOperation operation) throws AssemblyException
AssemblyException
private ProgramRequirementInfo processProgramRequirement(ProgramRequirementInfo programRequirementInfo, BaseDTOAssemblyNode.NodeOperation operation) throws AssemblyException
AssemblyException
private void invokeServiceCalls(BaseDTOAssemblyNode<?,CluInfo> results) throws AssemblyException
AssemblyException
public void setLuService(LuService luService)
public LuService getLuService()
public void setDictionaryService(DictionaryService dictionaryService)
public DictionaryService getDictionaryService()
public void setSearchManager(SearchManager searchManager)
public SearchManager getSearchManager()
public void setMajorDisciplineAssembler(MajorDisciplineAssembler majorDisciplineAssembler)
public MajorDisciplineAssembler getMajorDisciplineAssembler()
public void setCredentialProgramAssembler(CredentialProgramAssembler credentialProgramAssembler)
public CredentialProgramAssembler getCredentialProgramAssembler()
public void setProgramRequirementAssembler(ProgramRequirementAssembler programRequirementAssembler)
public ProgramRequirementAssembler getProgramRequirementAssembler()
public void setProgramServiceMethodInvoker(BusinessServiceMethodInvoker serviceMethodInvoker)
public BusinessServiceMethodInvoker getProgramServiceMethodInvoker()
public void setValidatorFactory(ValidatorFactory validatorFactory)
public ValidatorFactory getValidatorFactory()
public void setCoreProgramAssembler(CoreProgramAssembler coreProgramAssembler)
public CoreProgramAssembler getCoreProgramAssembler()
private StatusInfo getStatus()
private CoreProgramInfo processCoreProgramInfo(CoreProgramInfo coreProgramInfo, BaseDTOAssemblyNode.NodeOperation operation) throws AssemblyException
AssemblyException
@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CoreProgramInfo createCoreProgram(CoreProgramInfo coreProgramInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
createCoreProgram
in interface ProgramService
coreProgramInfo
- coreProgramInfo
AlreadyExistsException
- The Core Program already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- invalid Core Program
MissingParameterException
- missing Core Program
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CoreProgramInfo createNewCoreProgramVersion(String coreProgramId, String versionComment) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException
ProgramService
createNewCoreProgramVersion
in interface ProgramService
coreProgramId
- identifier for the Core Program to be versionedversionComment
- comment for the current version
DoesNotExistException
- Core Program does not exist
InvalidParameterException
- invalid coreProgramId
MissingParameterException
- invalid coreProgramId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- The action was attempted on an out of date version
DataValidationErrorException
@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteCoreProgram(String coreProgramId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
deleteCoreProgram
in interface ProgramService
coreProgramId
- identifier for coreProgramId.Maps to cluId
DoesNotExistException
- Core Program does not exist
InvalidParameterException
- invalid coreProgramId
MissingParameterException
- invalid coreProgramId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public CoreProgramInfo getCoreProgram(String coreProgramId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
ProgramService
getCoreProgram
in interface ProgramService
coreProgramId
- Unique Id of the Core Program. Maps to cluId
DoesNotExistException
- Program Requirement does not exist
InvalidParameterException
- invalid Program Requirement
MissingParameterException
- missing Program Requirement
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CoreProgramInfo updateCoreProgram(CoreProgramInfo coreProgramInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException
ProgramService
updateCoreProgram
in interface ProgramService
coreProgramInfo
- coreProgramInfo
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Core Program not found
InvalidParameterException
- invalid Core Program
MissingParameterException
- missing Core Program
VersionMismatchException
- The action was attempted on an out of date version
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failurepublic List<ValidationResultInfo> validateCoreProgram(String validationType, CoreProgramInfo coreProgramInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
ProgramService
validateCoreProgram
in interface ProgramService
validationType
- identifier of the extent of validationcoreProgramInfo
- Core Program information to be tested
InvalidParameterException
- invalid validationTypeKey, cluInfo
MissingParameterException
- missing validationTypeKey, cluInfo
OperationFailedException
- unable to complete request@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CredentialProgramInfo createNewCredentialProgramVersion(String credentialProgramId, String versionComment) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException
ProgramService
createNewCredentialProgramVersion
in interface ProgramService
credentialProgramId
- identifier for the Credential Program to be versionedversionComment
- comment for the current version
DoesNotExistException
- Credential Program does not exist
InvalidParameterException
- invalid credentialProgramId
MissingParameterException
- invalid credentialProgramId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- The action was attempted on an out of date version
DataValidationErrorException
@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo setCurrentCoreProgramVersion(String coreProgramId, Date currentVersionStart) throws DoesNotExistException, InvalidParameterException, MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException
ProgramService
setCurrentCoreProgramVersion
in interface ProgramService
coreProgramId
- Version Specific Id of the Core ProgramcurrentVersionStart
- Date when this Core Program becomes current. Must be in the future and be after the most current major's start date.
DoesNotExistException
- Core Program for coreProgramId does not exist
InvalidParameterException
- invalid coreProgramId, currentVersionStart
MissingParameterException
- invalid coreProgramId
IllegalVersionSequencingException
- a CoreProgram with higher sequence number from the one provided is marked current
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo setCurrentCredentialProgramVersion(String credentialProgramId, Date currentVersionStart) throws DoesNotExistException, InvalidParameterException, MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException
ProgramService
setCurrentCredentialProgramVersion
in interface ProgramService
currentVersionStart
- Date when this Credential Program becomes current. Must be in the future and be after the most current Credential Program's start date.
DoesNotExistException
- Credential Program for credentialProgramId does not exist
InvalidParameterException
- invalid credentialProgramId, currentVersionStart
MissingParameterException
- invalid credentialProgramId
IllegalVersionSequencingException
- a Credential Program with higher sequence number from the one provided is marked current
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getCurrentVersion
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Id
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI
MissingParameterException
- refObjectId, refObjectTypeURI not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public VersionDisplayInfo getCurrentVersionOnDate(String refObjectTypeURI, String refObjectId, Date date) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getCurrentVersionOnDate
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Iddate
- date
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI, date
MissingParameterException
- refObjectId, refObjectTypeURI, date not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public VersionDisplayInfo getFirstVersion(String refObjectTypeURI, String refObjectId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getFirstVersion
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Id
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI
MissingParameterException
- refObjectId, refObjectTypeURI not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public VersionDisplayInfo getLatestVersion(String refObjectTypeURI, String refObjectId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getLatestVersion
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Id
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI
MissingParameterException
- refObjectId, refObjectTypeURI not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public VersionDisplayInfo getVersionBySequenceNumber(String refObjectTypeURI, String refObjectId, Long sequence) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getVersionBySequenceNumber
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Idsequence
- sequence number
DoesNotExistException
- specified refObjectId, refObjectTypeURI, sequence not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI, sequence
MissingParameterException
- refObjectId, refObjectTypeURI, sequence not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<VersionDisplayInfo> getVersions(String refObjectTypeURI, String refObjectId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getVersions
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Id
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI
MissingParameterException
- refObjectId, refObjectTypeURI not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<VersionDisplayInfo> getVersionsInDateRange(String refObjectTypeURI, String refObjectId, Date from, Date to) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
VersionManagementService
getVersionsInDateRange
in interface VersionManagementService
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Idfrom
- from dateto
- to date
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI, date
MissingParameterException
- refObjectId, refObjectTypeURI, date not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failurepublic void setAtpService(AtpService atpService)
public AtpService getAtpService()
private void validateMajorDisciplineAtps(MajorDisciplineInfo majorDisciplineInfo, List<ValidationResultInfo> validationResults) throws InvalidParameterException, MissingParameterException, OperationFailedException
InvalidParameterException
MissingParameterException
OperationFailedException
private void validateVariationAtps(ProgramVariationInfo programVariationInfo, List<ValidationResultInfo> validationResults, int idx) throws InvalidParameterException, MissingParameterException, OperationFailedException
InvalidParameterException
MissingParameterException
OperationFailedException
private AtpInfo getAtpInfo(String atpKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
private void compareAtps(String aptKey1, String aptKey2, List<ValidationResultInfo> validationResults, String field, String path) throws InvalidParameterException, MissingParameterException, OperationFailedException
InvalidParameterException
MissingParameterException
OperationFailedException
private boolean isEmpty(String value)
public void setDocumentService(DocumentService documentService)
public DocumentService getDocumentService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |