|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentService
| Method Summary | |
|---|---|
StatusInfo |
addDocumentCategoryToDocument(String documentId,
String documentCategoryKey)
Adds an existing document category to a document. |
DocumentInfo |
createDocument(String documentTypeKey,
String documentCategoryKey,
DocumentInfo documentInfo)
Creates a new document. |
RefDocRelationInfo |
createRefDocRelation(String refObjectTypeKey,
String refObjectId,
String documentId,
String refDocRelationTypeKey,
RefDocRelationInfo refDocRelationInfo)
Creates a relationship between a reference and a document. |
StatusInfo |
deleteDocument(String documentId)
Deletes an existing document. |
StatusInfo |
deleteRefDocRelation(String refDocRelationId)
Removes a relationship between a reference and a document. |
List<DocumentCategoryInfo> |
getCategoriesByDocument(String documentId)
Retrieves category information for a document. |
DocumentInfo |
getDocument(String documentId)
Retrieves information about a document. |
List<DocumentCategoryInfo> |
getDocumentCategories()
Retrieves the list of document categories known by this service |
DocumentCategoryInfo |
getDocumentCategory(String documentCategoryKey)
Retrieves information about a particular document category |
List<DocumentInfo> |
getDocumentsByIdList(List<String> documentIdList)
Retrieves information about documents from a list of identifiers. |
DocumentTypeInfo |
getDocumentType(String documentTypeKey)
Retrieves information about a particular document type |
List<DocumentTypeInfo> |
getDocumentTypes()
Retrieves the list of document types known by this service |
RefDocRelationInfo |
getRefDocRelation(String refDocRelationId)
Retrieves information about a relationship between a reference and document. |
List<RefDocRelationInfo> |
getRefDocRelationsByDoc(String documentId)
Retrieves information about reference document relationships for a particular document. |
List<RefDocRelationInfo> |
getRefDocRelationsByRef(String refObjectTypeKey,
String refObjectId)
Retrieves information about reference document relationships for a particular reference. |
List<RefDocRelationTypeInfo> |
getRefDocRelationTypes()
Retrieves the list of types for a given base type which can be connected to a document. |
List<RefDocRelationTypeInfo> |
getRefDocRelationTypesForRefObjectSubType(String refSubTypeKey)
Retrieves the list of reference document relation types which are allowed for a given reference subtype. |
List<String> |
getRefObjectSubTypes(String refObjectTypeKey)
Retrieves the list of types for a given base type which can be connected to a document. |
List<String> |
getRefObjectTypes()
Retrieves the list of base types which can be connected to a document. |
StatusInfo |
removeDocumentCategoryFromDocument(String documentId,
String documentCategoryKey)
Removes an existing category from a document. |
DocumentInfo |
updateDocument(String documentId,
DocumentInfo documentInfo)
Updates an existing document. |
RefDocRelationInfo |
updateRefDocRelation(String refDocRelationId,
RefDocRelationInfo refDocRelationInfo)
Updates a relationship between a reference and a document. |
List<ValidationResultInfo> |
validateDocument(String validationType,
DocumentInfo documentInfo)
Validates a document. |
List<ValidationResultInfo> |
validateRefDocRelation(String validationType,
RefDocRelationInfo refDocRelationInfo)
Validates a reference document relationship. |
| Methods inherited from interface org.kuali.student.common.dictionary.service.DictionaryService |
|---|
getObjectStructure, getObjectTypes |
| Method Detail |
|---|
List<DocumentTypeInfo> getDocumentTypes()
throws OperationFailedException
OperationFailedException - unable to complete request
DocumentTypeInfo getDocumentType(String documentTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
documentTypeKey - document type identifier
DoesNotExistException - specified documentTypeKey not found
InvalidParameterException - invalid documentTypeKey
MissingParameterException - documentTypeKey not specified
OperationFailedException - unable to complete request
List<DocumentCategoryInfo> getDocumentCategories()
throws OperationFailedException
OperationFailedException - unable to complete request
DocumentCategoryInfo getDocumentCategory(String documentCategoryKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
documentCategoryKey - document category identifier
DoesNotExistException - specified documentCategoryKey not found
InvalidParameterException - invalid documentCategoryKey
MissingParameterException - documentCategoryKey not specified
OperationFailedException - unable to complete request
List<String> getRefObjectTypes()
throws OperationFailedException
OperationFailedException - unable to complete request
List<String> getRefObjectSubTypes(String refObjectTypeKey)
throws MissingParameterException,
OperationFailedException
refObjectTypeKey - Reference Type Identifier
OperationFailedException - unable to complete request
MissingParameterException
List<RefDocRelationTypeInfo> getRefDocRelationTypes()
throws OperationFailedException
OperationFailedException - unable to complete request
List<RefDocRelationTypeInfo> getRefDocRelationTypesForRefObjectSubType(String refSubTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
refSubTypeKey - reference subtype
DoesNotExistException - specified refSubTypeKey not found
InvalidParameterException - invalid refSubTypeKey
MissingParameterException - refSubTypeKey not specified
OperationFailedException - unable to complete request
DocumentInfo getDocument(String documentId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
documentId - identifier of the document
DoesNotExistException - documentId not found
InvalidParameterException - invalid documentId
MissingParameterException - missing documentId
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<DocumentInfo> getDocumentsByIdList(List<String> documentIdList)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
documentIdList - list of document identifiers
DoesNotExistException - one of more documentIds not found
InvalidParameterException - one of more invalid documentIds
MissingParameterException - missing documentIdList
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<DocumentCategoryInfo> getCategoriesByDocument(String documentId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
documentId - identifier of the document
DoesNotExistException - documentId not found
InvalidParameterException - invalid documentId
MissingParameterException - missing documentId
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
RefDocRelationInfo getRefDocRelation(String refDocRelationId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
refDocRelationId - reference document relationship identifier
DoesNotExistException - specified relationship not found
InvalidParameterException - invalid refDocRelationId
MissingParameterException - refDocRelationId not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<RefDocRelationInfo> getRefDocRelationsByRef(String refObjectTypeKey,
String refObjectId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
refObjectTypeKey - reference typerefObjectId - reference identifier
DoesNotExistException - specified refId, refObjectTypeKey not found
InvalidParameterException - invalid refId, refObjectTypeKey
MissingParameterException - refId, refObjectTypeKey not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<RefDocRelationInfo> getRefDocRelationsByDoc(String documentId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
documentId - document identifier
DoesNotExistException - specified document not found
InvalidParameterException - invalid documentId
MissingParameterException - documentId not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<ValidationResultInfo> validateDocument(String validationType,
DocumentInfo documentInfo)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
validationType - identifier of the extent of validationdocumentInfo - document information to be tested.
DoesNotExistException - validationTypeKey not found
InvalidParameterException - invalid validationTypeKey, documentInfo
MissingParameterException - missing validationTypeKey, documentInfo
OperationFailedException - unable to complete request
DocumentInfo createDocument(String documentTypeKey,
String documentCategoryKey,
DocumentInfo documentInfo)
throws DataValidationErrorException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
DoesNotExistException
documentTypeKey - identifier of the document typedocumentCategoryKey - identifier of the document categorydocumentInfo - detailed information on the document
DataValidationErrorException - One or more values invalid for this operation
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
DoesNotExistException
DocumentInfo updateDocument(String documentId,
DocumentInfo documentInfo)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
documentId - identifier of the document to updatedocumentInfo - updated information for the document
DataValidationErrorException - One or more values invalid for this operation
DoesNotExistException - Document being updated does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
VersionMismatchException - The action was attempted on an out of date version.
StatusInfo deleteDocument(String documentId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
documentId - identifier of the document to delete
DoesNotExistException - Document to delete does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
StatusInfo addDocumentCategoryToDocument(String documentId,
String documentCategoryKey)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
documentId - identifier of the documentdocumentCategoryKey - identifier of the document category
DataValidationErrorException - One or more values invalid for this operation
DoesNotExistException - documentId, documentCategoryKey does not exist
InvalidParameterException - one or more parameters invalid
MissingParameterException - one or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
VersionMismatchException - action was attempted on an out of date version.
StatusInfo removeDocumentCategoryFromDocument(String documentId,
String documentCategoryKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
documentId - identifier of the documentdocumentCategoryKey - identifier of the document category
DoesNotExistException - documentId, documentCategoryKey does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<ValidationResultInfo> validateRefDocRelation(String validationType,
RefDocRelationInfo refDocRelationInfo)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
validationType - identifier of the extent of validationrefDocRelationInfo - reference document relationship information to be tested.
DoesNotExistException - validationTypeKey not found
InvalidParameterException - invalid validationTypeKey, refDocRelationInfo
MissingParameterException - missing validationTypeKey, refDocRelationInfo
OperationFailedException - unable to complete request
RefDocRelationInfo createRefDocRelation(String refObjectTypeKey,
String refObjectId,
String documentId,
String refDocRelationTypeKey,
RefDocRelationInfo refDocRelationInfo)
throws DataValidationErrorException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
refObjectTypeKey - reference typerefObjectId - identifier of the referencedocumentId - identifier of the documentrefDocRelationTypeKey - type of relationship between reference and documentrefDocRelationInfo - detailed information about the reference/document relationship
DataValidationErrorException - One or more values invalid for this operation
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
RefDocRelationInfo updateRefDocRelation(String refDocRelationId,
RefDocRelationInfo refDocRelationInfo)
throws DataValidationErrorException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException,
DoesNotExistException
refDocRelationId - identifier of a relationship between a reference and documentrefDocRelationInfo - detailed information about the relationship between a reference and document
DataValidationErrorException - One or more values invalid for this operation
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
VersionMismatchException
DoesNotExistException
StatusInfo deleteRefDocRelation(String refDocRelationId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
refDocRelationId - identifier of the relationship between the reference and document
DoesNotExistException - relationship does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||