|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageManager
Manages image settings. There are three main properties that can administered with respect to images:
Image| 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. |
Image |
getImage(long imageID)
Returns an image given the image id. |
int |
getImageMaxHeight()
Returns the max height of images that will be displayed. |
int |
getImageMaxWidth()
Returns the max width of images that will be displayed. |
int |
getImagePreviewMaxSize()
Returns the max dimension of generated thumbnails (ie, the max value for the width or height). |
int |
getMaxImageSize()
Returns the maximum size of an individual image in kilobytes. |
int |
getMaxImagesPerObject()
Returns the maximum number of images per document. |
boolean |
isAllowAllByDefault()
Returns true if in the "allow all content types by default" mode. |
boolean |
isForceThumbnailsEnabled()
Returns true if forcing thumbnails for any images over the maximum image width/height is enabled. |
boolean |
isImagesEnabled()
Returns true if images are enabled, false otherwise. |
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. |
void |
removeAllowedType(java.lang.String contentType)
Removes a content type from the 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 |
setForceThumbnailsEnabled(boolean forceThumbnailsEnabled)
Sets the forcing of thumbnails for any images over a maximum image width/height. |
void |
setImageMaxHeight(int maxHeight)
Sets the max height of images that will be displayed. |
void |
setImageMaxWidth(int maxWidth)
Sets the max width of images that will be displayed. |
void |
setImagePreviewMaxSize(int imagePreviewMaxSize)
Sets the max dimension of generated thumbnails (ie, the max value for the width or height). |
void |
setImagesEnabled(boolean enabled)
Set to true if images should be enabled, false otherwise. |
void |
setMaxImageSize(int maxImageSize)
Sets the maximum size of an individual image in kilobytes. |
void |
setMaxImagesPerObject(int maxImagesPerDocument)
Sets the maximum number of images per document. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
boolean isImagesEnabled()
void setImagesEnabled(boolean enabled)
throws UnauthorizedException
enabled - true if images should be enabled, false otherwise
UnauthorizedException - if not an administrator.
Image getImage(long imageID)
throws NotFoundException
imageID - the id of the image to return.
Image with the given id.
NotFoundException - if no image with the given id exists.int getMaxImageSize()
void setMaxImageSize(int maxImageSize)
throws UnauthorizedException
maxImageSize - the max size in kilobytes of any single image.
UnauthorizedException - if not an administrator.int getImagePreviewMaxSize()
void setImagePreviewMaxSize(int imagePreviewMaxSize)
throws UnauthorizedException
imagePreviewMaxSize - the max dimension of a thumbnail.
UnauthorizedException - if not a system administrator.boolean isForceThumbnailsEnabled()
void setForceThumbnailsEnabled(boolean forceThumbnailsEnabled)
throws UnauthorizedException
forceThumbnailsEnabled - true to force thumbnails for images over a set size, false otherwise.
UnauthorizedException - if not a system administrator.int getImageMaxWidth()
isForceThumbnailsEnabled() is true. The default value is 450.
void setImageMaxWidth(int maxWidth)
throws UnauthorizedException
isForceThumbnailsEnabled() is true. The default value is 450.
maxWidth - the max width of an image
UnauthorizedException - if not a system administrator.int getImageMaxHeight()
isForceThumbnailsEnabled() is true. The default value is 600.
void setImageMaxHeight(int maxHeight)
throws UnauthorizedException
isForceThumbnailsEnabled() is true. The default value is 600.
maxHeight - the max height of an image
UnauthorizedException - if not a system administrator.int getMaxImagesPerObject()
void setMaxImagesPerObject(int maxImagesPerDocument)
throws UnauthorizedException
maxImagesPerDocument - the max number of images allowed per document.
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 not an administrator
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||