|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BinaryBodyManager
Manages binary body settings. There are three main properties that can administered with respect to document bodies:
BinaryBody| Method Summary | |
|---|---|
void |
addAllowedType(String contentType)
Adds a content type to the list of explicitly allowed types. |
void |
addDisallowedType(String contentType)
Adds a content type to the list of explicitly disallowed types. |
List<String> |
getAllowedTypes()
Returns a list of explicitly allowed types. |
List<String> |
getAllowedTypesAsFileExtensions()
Returns a list of explicitly allowed file types by extensions. |
InputStream |
getBinaryBodyByID(long binaryBodyID)
Retrieve a binary body by its ID. |
List<String> |
getDisallowedTypes()
Returns a list of explicitly disallowed types. |
List<String> |
getDisallowedTypesAsFileExtensions()
Returns a list of explicitly disallowed file types by default extensions. |
int |
getMaxBodySize()
Returns the maximum size of an individual binary document body in kilobytes. |
boolean |
isAllowAllByDefault()
Returns true if in the "allow all content types by default" mode. |
boolean |
isBinaryBodyEnabled()
Returns true if the documents can contain binary body data, false if they can only contain textual bodies. |
boolean |
isValidType(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(String contentType)
Removes a content type fromt he list of explicitly allowed types. |
void |
removeDisallowedType(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 |
setBinaryBodyEnabled(boolean enabled)
Enables or disables binary document bodies. |
void |
setMaxBodySize(int maxBodySize)
Sets the maximum size of an individual binary document body in kilobytes. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
boolean isBinaryBodyEnabled()
void setBinaryBodyEnabled(boolean enabled)
throws UnauthorizedException
enabled - true if documents can contain binary body data, false otherwise.
UnauthorizedException - if not a system administrator.int getMaxBodySize()
void setMaxBodySize(int maxBodySize)
throws UnauthorizedException
maxBodySize - the max size in kilobytes of a binary document body.
UnauthorizedException - if not an administrator.boolean isValidType(String contentType)
contentType - the content type to test.
void addAllowedType(String contentType)
throws UnauthorizedException
contentType - a content type to add to the explicitly allowed types list.
UnauthorizedException - if not an administrator.
void removeAllowedType(String contentType)
throws UnauthorizedException
contentType - a content type to remove from the explicitly allowed types list.
UnauthorizedException - if not an administrator.List<String> getAllowedTypes()
List<String> getAllowedTypesAsFileExtensions()
void addDisallowedType(String contentType)
throws UnauthorizedException
contentType - a content type to add to the explicitly disallowed types list.
UnauthorizedException - if not an administrator.
void removeDisallowedType(String contentType)
throws UnauthorizedException
contentType - a content type to remove from the explicitly disallowed types list.
UnauthorizedException - if not an administrator.List<String> getDisallowedTypes()
List<String> getDisallowedTypesAsFileExtensions()
boolean isAllowAllByDefault()
void setAllowAllByDefault(boolean allowAllByDefault)
throws UnauthorizedException
allowAllByDefault - true if all content types should be allowed by default.
UnauthorizedException - if not an administrator.InputStream getBinaryBodyByID(long binaryBodyID)
binaryBodyID - The ID of the binary body.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||