|
Clearspace API (2.0.15) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttachmentService
A web service for managing attachment settings. A clone of the com.jivesoftware.community.AttachmentManager, modified for a web service.
There are three main properties that can administered with respect to attachments:
| Method Summary | |
|---|---|
void |
addAllowedType(java.lang.String contentType)
Adds a content type to the list of explicitly allowed types. |
void |
addDisallowedType(java.lang.String contentType)
Adds a content type to the list of explicitly disallowed types. |
java.util.List<java.lang.String> |
getAllowedTypes()
Returns a List of explicitly allowed types. |
java.util.List<java.lang.String> |
getDisallowedTypes()
Returns a List of explicitly disallowed types. |
int |
getImagePreviewMaxSize()
Returns the max dimension of generated thumbnails (ie, the max value for the width or height). |
int |
getMaxAttachmentSize()
Returns the maximum size of an individual attachment in kilobytes. |
int |
getMaxAttachmentsPerBlogPost()
Returns the maximum number of attachments per blog post. |
int |
getMaxAttachmentsPerDocument()
Returns the maximum number of attachments per document. |
int |
getMaxAttachmentsPerMessage()
Returns the maximum number of attachments per message. |
boolean |
isAllowAllByDefault()
Returns true if in the "allow all content types by default" mode. |
boolean |
isAttachmentsEnabled()
Returns true if attachments are enabled, false otherwise. |
boolean |
isImagePreviewEnabled()
Returns true if image preview support is enabled. |
boolean |
isImagePreviewRatioEnabled()
Returns true if the aspect ratio of thumbnails should be preserved. |
boolean |
isValidType(java.lang.String contentType)
Returns true if the content type is valid based on the current settings of the allowAllByDefault flag and the allowed and disallowed types list. |
WSJiveObject |
noOp()
Hack to elimite SEVERE errors logged by celtix because the UnauthorizedException isn't getting registered properly in the generated schema and can't be found as an xml type when searching by QName. |
void |
removeAllowedType(java.lang.String contentType)
Removes a content type fromt he list of explicitly allowed types. |
void |
removeDisallowedType(java.lang.String contentType)
Removes a content type from the list of explicitly disallowed types. |
void |
setAllowAllByDefault(boolean allowAllByDefault)
Sets the default allowed content types mode. |
void |
setAttachmentsEnabled(boolean attachmentsEnabled)
Sets whether attachments are attachmentsEnabled, false otherwise. |
void |
setImagePreviewEnabled(boolean imagePreviewEnabled)
Toggles whether image preview support is enabled. |
void |
setImagePreviewMaxSize(int imagePreviewMaxSize)
Sets the max dimension of generated thumbnails (ie, the max value for the width or height). |
void |
setImagePreviewRatioEnabled(boolean imagePreviewRatioEnabled)
Toggles whether the aspect ratio of thumbnails should be preserved. |
void |
setMaxAttachmentSize(int maxAttachmentSize)
Sets the maximum size of an individual attachment in kilobytes. |
void |
setMaxAttachmentsPerBlogPost(int maxAttachmentsPerBlogPost)
Sets the maximum number of attachments per blog post. |
void |
setMaxAttachmentsPerDocument(int maxAttachmentsPerDocument)
Sets the maximum number of attachments per document. |
void |
setMaxAttachmentsPerMessage(int maxAttachmentsPerMessage)
Sets the maximum number of attachments per message. |
| Method Detail |
|---|
boolean isAttachmentsEnabled()
void setAttachmentsEnabled(boolean attachmentsEnabled)
throws UnauthorizedException
attachmentsEnabled - true if attachments are attachmentsEnabled, false otherwise.
UnauthorizedException - if not a system administrator.int getMaxAttachmentSize()
void setMaxAttachmentSize(int maxAttachmentSize)
throws UnauthorizedException
maxAttachmentSize - the max size in kilobytes of any single attachment.
UnauthorizedException - if not an administrator.int getMaxAttachmentsPerDocument()
void setMaxAttachmentsPerDocument(int maxAttachmentsPerDocument)
throws UnauthorizedException
maxAttachmentsPerDocument - the max number of attachments allowed per document.
UnauthorizedException - if not an administrator.int getMaxAttachmentsPerBlogPost()
void setMaxAttachmentsPerBlogPost(int maxAttachmentsPerBlogPost)
throws UnauthorizedException
maxAttachmentsPerBlogPost - the max number of attachments allowed per blog post.
UnauthorizedException - if not an administrator.boolean isValidType(java.lang.String contentType)
contentType - the content type to test.
void addAllowedType(java.lang.String contentType)
throws UnauthorizedException
contentType - a content type to add to the explicitly allowed types list.
UnauthorizedException - if not an administrator.
void removeAllowedType(java.lang.String contentType)
throws UnauthorizedException
contentType - a content type to remove from the explicitly allowed types list.
UnauthorizedException - if not an administrator.java.util.List<java.lang.String> getAllowedTypes()
void addDisallowedType(java.lang.String contentType)
throws UnauthorizedException
contentType - a content type to add to the explicitly disallowed types list.
UnauthorizedException - if not an administrator.
void removeDisallowedType(java.lang.String contentType)
throws UnauthorizedException
contentType - a content type to remove from the explicitly disallowed types list.
UnauthorizedException - if not an administrator.java.util.List<java.lang.String> getDisallowedTypes()
boolean isAllowAllByDefault()
void setAllowAllByDefault(boolean allowAllByDefault)
throws UnauthorizedException
allowAllByDefault - true if all content types should be allowed by default.
UnauthorizedException - if does not have admin permissions.boolean isImagePreviewEnabled()
void setImagePreviewEnabled(boolean imagePreviewEnabled)
throws UnauthorizedException
imagePreviewEnabled - true if thumbnail support should be enabled.
UnauthorizedException - if not a system administrator.int getImagePreviewMaxSize()
void setImagePreviewMaxSize(int imagePreviewMaxSize)
throws UnauthorizedException
imagePreviewMaxSize - the max dimension of a thumbnail.
UnauthorizedException - if not a system administrator.boolean isImagePreviewRatioEnabled()
void setImagePreviewRatioEnabled(boolean imagePreviewRatioEnabled)
throws UnauthorizedException
imagePreviewRatioEnabled - true if the aspect ration should be preserved.
UnauthorizedException - if not a system administrator.int getMaxAttachmentsPerMessage()
void setMaxAttachmentsPerMessage(int maxAttachmentsPerMessage)
throws UnauthorizedException
maxAttachmentsPerMessage - the max number of attachments allowed per message.
UnauthorizedException - if not an administrator.WSJiveObject noOp()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||