|
Jive API (4.5.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentObjectTypeInfoProvider
An information provider for ContentObjectTypes.
ContentObjectType| Method Summary | |
|---|---|
ContainableType |
getContainableType()
Returns the containable type of this type. |
java.lang.String |
getCreateNewFormRelativeURL(JiveContainer targetContainer,
boolean isUpload,
java.lang.String tempObjectId,
java.lang.String tags,
java.lang.String subject)
This method should return the relative URL pointing to the page which will allow users to create a new instance of the type. |
long |
getUserContentCount(long userID)
Returns the number of content of the current type that a user has. |
com.jivesoftware.community.objecttype.UserProfileInfoProvider |
getUserProfileInfoProvider()
Returns a provider class helping to render objects of this type inside a user profile (container). |
boolean |
isBinaryBodyUploadCapable()
Returns true if this type supports the upload of binary bodies. |
boolean |
userHasCreatePermsFor(JiveContainer container)
Return true if the currently logged in user is allowed to create objects of this type in the specified container. |
| Method Detail |
|---|
ContainableType getContainableType()
ContainableType.
Must not return null.
boolean userHasCreatePermsFor(JiveContainer container)
container - The target container.
boolean isBinaryBodyUploadCapable()
java.lang.String getCreateNewFormRelativeURL(JiveContainer targetContainer,
boolean isUpload,
java.lang.String tempObjectId,
java.lang.String tags,
java.lang.String subject)
This method should return the relative URL pointing to the page which will allow users to create a new instance of the type. As the URL is relative, it should not contain the base URL (eg. http://www.yourhost.com/clearpsace/...). type. For example: /doc-create!input.jspa?container=1207&containerType=700&documentID=&tagSet=&tags=&subject= This method must not return null or empty string.
targetContainer - The container chosen to house the new instance of the type.isUpload - Value 'true' indicates that the body of the type is to be uploaded (rather than than
created manually via an editor).tempObjectId - The ID of a temporary instance of the new type.tags - Any tags (usually separated by a space) pre-selected for labelling the new type
instance.subject - A subject line that will be used for the new type instance.
com.jivesoftware.community.objecttype.UserProfileInfoProvider getUserProfileInfoProvider()
long getUserContentCount(long userID)
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||