public class StatementServiceMock extends Object implements StatementService
Constructor and Description |
---|
StatementServiceMock() |
public StatementServiceMock()
public void clear()
public List<String> getObjectTypes()
getObjectTypes
in interface DictionaryService
public ObjectStructureDefinition getObjectStructure(String objectTypeKey)
getObjectStructure
in interface DictionaryService
public List<String> getRefObjectTypes() throws OperationFailedException
getRefObjectTypes
in interface StatementService
OperationFailedException
public List<String> getRefObjectSubTypes(String objectTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getRefObjectSubTypes
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<NlUsageTypeInfo> getNlUsageTypes() throws OperationFailedException
getNlUsageTypes
in interface StatementService
OperationFailedException
public NlUsageTypeInfo getNlUsageType(String nlUsageTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getNlUsageType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public RefStatementRelationInfo createRefStatementRelation(RefStatementRelationInfo refStatementRelationInfo) throws AlreadyExistsException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
public RefStatementRelationInfo updateRefStatementRelation(String refStatementRelationId, RefStatementRelationInfo refStatementRelationInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
public StatusInfo deleteRefStatementRelation(String refStatementRelationId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
deleteRefStatementRelation
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
public List<ValidationResultInfo> validateRefStatementRelation(String validationType, RefStatementRelationInfo refStatementRelationInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validateRefStatementRelation
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public RefStatementRelationInfo getRefStatementRelation(String refStatementRelationId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getRefStatementRelation
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<RefStatementRelationInfo> getRefStatementRelationsByRef(String refObjectTypeKey, String refObjectId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getRefStatementRelationsByRef
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<RefStatementRelationInfo> getRefStatementRelationsByStatement(String statementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getRefStatementRelationsByStatement
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public String getNaturalLanguageForStatement(String statementId, String nlUsageTypeKey, String language) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getNaturalLanguageForStatement
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public String getNaturalLanguageForRefStatementRelation(String refStatementRelationId, String nlUsageTypeKey, String language) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getNaturalLanguageForRefStatementRelation
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public String getNaturalLanguageForReqComponent(String reqComponentId, String nlUsageTypeKey, String language) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getNaturalLanguageForReqComponent
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public String translateStatementTreeViewToNL(StatementTreeViewInfo statementTreeViewInfo, String nlUsageTypeKey, String language) throws InvalidParameterException, MissingParameterException, OperationFailedException
translateStatementTreeViewToNL
in interface StatementService
InvalidParameterException
MissingParameterException
OperationFailedException
public String translateReqComponentToNL(ReqComponentInfo reqComponentInfo, String nlUsageTypeKey, String language) throws InvalidParameterException, MissingParameterException, OperationFailedException
translateReqComponentToNL
in interface StatementService
InvalidParameterException
MissingParameterException
OperationFailedException
public List<ValidationResultInfo> validateReqComponent(String validationType, ReqComponentInfo reqComponentInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validateReqComponent
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<ValidationResultInfo> validateStatement(String validationType, StatementInfo statementInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validateStatement
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public StatementInfo getStatement(String statementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatement
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<StatementInfo> getStatementsByType(String statementTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementsByType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public ReqComponentInfo getReqComponent(String reqComponentId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getReqComponent
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<ReqComponentInfo> getReqComponentsByType(String reqComponentTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getReqComponentsByType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<StatementInfo> getStatementsUsingReqComponent(String reqComponentId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementsUsingReqComponent
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<StatementInfo> getStatementsUsingStatement(String statementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementsUsingStatement
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public ReqComponentInfo createReqComponent(String reqComponentType, ReqComponentInfo reqComponentInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
public StatusInfo deleteReqComponent(String reqComponentId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
deleteReqComponent
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
public StatementInfo createStatement(String statementType, StatementInfo statementInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
public StatementInfo updateStatement(String statementId, StatementInfo statementInfo) throws CircularReferenceException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
public StatusInfo deleteStatement(String statementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
deleteStatement
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
public StatementTypeInfo getStatementType(String statementTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<StatementTypeInfo> getStatementTypes() throws OperationFailedException
getStatementTypes
in interface StatementService
OperationFailedException
public List<String> getStatementTypesForStatementType(String statementTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementTypesForStatementType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<ReqComponentTypeInfo> getReqComponentTypes() throws OperationFailedException
getReqComponentTypes
in interface StatementService
OperationFailedException
public ReqComponentTypeInfo getReqComponentType(String reqComponentTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getReqComponentType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<ReqComponentTypeInfo> getReqComponentTypesForStatementType(String statementTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getReqComponentTypesForStatementType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<RefStatementRelationTypeInfo> getRefStatementRelationTypes() throws OperationFailedException
getRefStatementRelationTypes
in interface StatementService
OperationFailedException
public RefStatementRelationTypeInfo getRefStatementRelationType(String refStatementRelationTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getRefStatementRelationType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<String> getStatementTypesForRefStatementRelationType(String refStatementRelationTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementTypesForRefStatementRelationType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public List<String> getRefStatementRelationTypesForRefObjectSubType(String refSubTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getRefStatementRelationTypesForRefObjectSubType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public ReqComponentInfo updateReqComponent(String reqComponentId, ReqComponentInfo reqComponentInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
public StatementTreeViewInfo getStatementTreeView(String statementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementTreeView
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public StatementTreeViewInfo getStatementTreeViewForNlUsageType(String statementId, String nlUsageTypeKey, String language) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getStatementTreeViewForNlUsageType
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public StatementTreeViewInfo updateStatementTreeView(String statementId, StatementTreeViewInfo statementTreeViewInfo) throws CircularReferenceException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
public StatementTreeViewInfo createStatementTreeView(StatementTreeViewInfo statementTreeViewInfo) throws CircularReferenceException, AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
public StatusInfo deleteStatementTreeView(String statementId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
deleteStatementTreeView
in interface StatementService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
public List<TypeInfo> getSearchTypes(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
getSearchTypes
in interface SearchService
InvalidParameterException
MissingParameterException
OperationFailedException
public TypeInfo getSearchType(String searchTypeKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
getSearchType
in interface SearchService
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
public SearchResultInfo search(SearchRequestInfo searchRequestInfo, ContextInfo contextInfo) throws MissingParameterException, OperationFailedException, PermissionDeniedException
search
in interface SearchService
MissingParameterException
OperationFailedException
PermissionDeniedException
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.