|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommentService
| Method Summary | |
|---|---|
CommentInfo |
addComment(String referenceId,
String referenceTypeKey,
CommentInfo commentInfo)
Adds a comment to a reference. |
TagInfo |
addTag(String referenceId,
String referenceTypeKey,
TagInfo tagInfo)
Adds a tag to a reference. |
CommentInfo |
getComment(String commentId)
Retrieves information about a comment. |
List<CommentInfo> |
getComments(String referenceId,
String referenceTypeKey)
Retrieves comment information for a reference. |
List<CommentInfo> |
getCommentsByType(String referenceId,
String referenceTypeKey,
String commentTypeKey)
Retrieves comment information for a reference of a particular type. |
List<CommentTypeInfo> |
getCommentTypes()
Retrieves the list of comment types which can be linked to a referenced object. |
List<CommentTypeInfo> |
getCommentTypesForReferenceType(String referenceTypeKey)
Retrieves the list of comment types which can be linked to a particular type of referenced object. |
List<ReferenceTypeInfo> |
getReferenceTypes()
Retrieves the list of types which can be tagged or commented. |
TagInfo |
getTag(String tagId)
Retrieves information about a tag. |
List<TagInfo> |
getTags(String referenceId,
String referenceTypeKey)
Retrieves tag information for a reference. |
List<TagInfo> |
getTagsByType(String referenceId,
String referenceTypeKey,
String tagTypeKey)
Retrieves tag information for a reference of a particular type. |
List<TagTypeInfo> |
getTagTypes()
Retrieves the list of tag types which can be linked to a referenced object. |
StatusInfo |
removeComment(String commentId,
String referenceId,
String referenceTypeKey)
Removes a comment from a reference. |
StatusInfo |
removeComments(String referenceId)
Removes all comments associated with a single reference |
StatusInfo |
removeTag(String tagId,
String referenceId,
String referenceTypeKey)
Removes a tag from a reference. |
StatusInfo |
removeTags(String tagId)
Removes a tag from all references to which it is linked. |
CommentInfo |
updateComment(String referenceId,
String referenceTypeKey,
CommentInfo commentInfo)
Updates a comment for a reference. |
List<ValidationResultInfo> |
validateComment(String validationType,
CommentInfo commentInfo)
Validates a comment. |
| Methods inherited from interface org.kuali.student.core.dictionary.service.DictionaryService |
|---|
getObjectStructure, getObjectTypes |
| Method Detail |
|---|
List<ReferenceTypeInfo> getReferenceTypes()
throws OperationFailedException
OperationFailedException - unable to complete request
List<CommentTypeInfo> getCommentTypes()
throws OperationFailedException
OperationFailedException - unable to complete request
List<TagTypeInfo> getTagTypes()
throws OperationFailedException
OperationFailedException - unable to complete request
List<CommentTypeInfo> getCommentTypesForReferenceType(String referenceTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
referenceTypeKey - reference type
DoesNotExistException - specified referenceTypeKey not found
InvalidParameterException - invalid referenceTypeKey
MissingParameterException - referenceTypeKey not specified
OperationFailedException - unable to complete request
List<ValidationResultInfo> validateComment(String validationType,
CommentInfo commentInfo)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
validationType - identifier of the extent of validationcommentInfo - comment information to be tested.
DoesNotExistException - validationTypeKey not found
InvalidParameterException - invalid validationTypeKey, commentInfo
MissingParameterException - missing validationTypeKey, commentInfo
OperationFailedException - unable to complete request
List<CommentInfo> getComments(String referenceId,
String referenceTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - reference identifierreferenceTypeKey - reference type
DoesNotExistException - specified referenceId, referenceTypeKey not found
InvalidParameterException - invalid referenceId, referenceTypeKey
MissingParameterException - referenceId, referenceTypeKey not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<TagInfo> getTags(String referenceId,
String referenceTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - reference identifierreferenceTypeKey - reference type
DoesNotExistException - specified referenceId, referenceTypeKey not found
InvalidParameterException - invalid referenceId, referenceTypeKey
MissingParameterException - referenceId, referenceTypeKey not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<CommentInfo> getCommentsByType(String referenceId,
String referenceTypeKey,
String commentTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - reference identifierreferenceTypeKey - reference typecommentTypeKey - comment type
DoesNotExistException - specified referenceId, referenceTypeKey, commentTypeKey not found
InvalidParameterException - invalid referenceId, referenceTypeKey,commentTypeKey
MissingParameterException - referenceId, referenceTypeKey, commentTypeKey not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
List<TagInfo> getTagsByType(String referenceId,
String referenceTypeKey,
String tagTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - reference identifierreferenceTypeKey - reference typetagTypeKey - tag type
DoesNotExistException - specified referenceId, referenceTypeKey, tagTypeKey not found
InvalidParameterException - invalid referenceId, referenceTypeKey,tagTypeKey
MissingParameterException - referenceId, referenceTypeKey, tagTypeKey not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
CommentInfo getComment(String commentId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
commentId - comment identifier
DoesNotExistException - specified commentId not found
InvalidParameterException - invalid commentId
MissingParameterException - commentId not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
TagInfo getTag(String tagId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
tagId - tag identifier
DoesNotExistException - specified tagId not found
InvalidParameterException - invalid tagId
MissingParameterException - tagId not specified
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
CommentInfo addComment(String referenceId,
String referenceTypeKey,
CommentInfo commentInfo)
throws DataValidationErrorException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - identifier of referencereferenceTypeKey - reference typecommentInfo - detailed information about the comment
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
TagInfo addTag(String referenceId,
String referenceTypeKey,
TagInfo tagInfo)
throws DataValidationErrorException,
AlreadyExistsException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - identifier of referencereferenceTypeKey - reference typetagInfo - detailed information about the tag
DataValidationErrorException - One or more values invalid for this operation
AlreadyExistsException - tag of that namespace, predicate and value already exists for that reference id
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
CommentInfo updateComment(String referenceId,
String referenceTypeKey,
CommentInfo commentInfo)
throws DataValidationErrorException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
DoesNotExistException,
VersionMismatchException
referenceId - identifier of referencereferenceTypeKey - reference typecommentInfo - detailed information about the comment
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 - comment does not exist
VersionMismatchException - The action was attempted on an out of date version. *
StatusInfo removeComment(String commentId,
String referenceId,
String referenceTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
commentId - identifier of the commentreferenceId - identifier of the referencereferenceTypeKey - reference type
DoesNotExistException - commentId, referenceId does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
StatusInfo removeTag(String tagId,
String referenceId,
String referenceTypeKey)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
tagId - identifier of the tagreferenceId - identifier of the referencereferenceTypeKey - reference type
DoesNotExistException - tagId, referenceId does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
StatusInfo removeComments(String referenceId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
referenceId - identifier of the reference
DoesNotExistException - referenceId does not exist
InvalidParameterException - One or more parameters invalid
MissingParameterException - One or more parameters missing
OperationFailedException - unable to complete request
PermissionDeniedException - authorization failure
StatusInfo removeTags(String tagId)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
tagId - identifier of the tag
DoesNotExistException - tagId 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 | |||||||||