|
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 FeaturedContentManager
Allows featuring content in containers. Featured content is anything that a container admin/manager/moderator may want to highlight as important.
Currently only featured videos are the only object types exposed through the UI, though content of any type in any container can be featured. There is no assumed restriction on the types of containers in which content can be featured, the amount of featured items, or the types of content that can be featured in a container. Implementations may choose to restrict these characteristics.
| Method Summary | |
|---|---|
void |
appendFeaturedItems(JiveContainer container,
JiveObject... toFeature)
Appends items to the currently featured items in the given container |
void |
clearFeaturedItem(JiveContainer container,
JiveObject toClear)
Remove the specific featured item from the given container IMPLEMENTATION NOTE: Any new object types that are added as featured content should have their delete event add to the list of enums represented by the field itemDeleteEvents in
FeaturedContentManagerImpl. |
void |
clearFeaturedItems(JiveContainer container)
Removes all featured item entries in the given container. |
void |
clearFeaturedItems(JiveContainer container,
Integer... objectTypeFilter)
Removes all featured item entries in the given container that match the given object types IMPLEMENTATION NOTE: Any new object types that are added as featured content should have their delete event add to the list of enums represented by the field itemDeleteEvents in
FeaturedContentManagerImpl. |
JiveObject |
getFeaturedItem(JiveContainer container)
Returns a featured item of an undetermined object type from the given container. |
JiveObject |
getFeaturedItem(JiveContainer container,
Integer... objectTypeFilter)
Returns the first featured item matching the given object types from the given container. |
int |
getFeaturedItemCount(JiveContainer container)
Returns the total number of featured items in the container |
int |
getFeaturedItemCount(JiveContainer container,
Integer... objectTypeFilter)
Returns the total number of featured items in the container matching any of the given objec types |
JiveIterator<JiveObject> |
getFeaturedItems(JiveContainer container)
Returns all featured items of all object types in the given container |
JiveIterator<JiveObject> |
getFeaturedItems(JiveContainer container,
Integer... objectTypeFilter)
Returns all featured items of the given object types in the given container |
boolean |
isFeatured(JiveContainer container,
JiveObject object)
Returns true if the given item is featured in the given container, false otherwise. |
void |
setFeaturedItems(JiveContainer container,
JiveObject... toFeature)
Replaces all featured items in the given container with the given items |
| Method Detail |
|---|
void setFeaturedItems(JiveContainer container,
JiveObject... toFeature)
throws UnauthorizedException
container - to feature items intoFeature - items to feature
UnauthorizedException - if the currently authenticated user doesn't have rights to feature items in the
container
void appendFeaturedItems(JiveContainer container,
JiveObject... toFeature)
throws UnauthorizedException
container - to feature items intoFeature - items to feature
UnauthorizedException - if the currently authenticated user doesn't have rights to feature items in the
container
void clearFeaturedItems(JiveContainer container)
throws UnauthorizedException
itemDeleteEvents in
FeaturedContentManagerImpl. The default values for this list are set in the spring configuration for
the bean. If you are featuring an object type, make sure you add the delete event dispatched when instances of
that object type are deleted so that deleted items are removed as featured items. If orphaned data is found, the
problem will be logged and featured item removed during any attempts to retrieve featured content for the
container where the deleted item exists.
com.jivesoftware.community.featured.FeaturedContentManagerImpl.FeaturedItemDeleteListener
container - with featured items to be removed
UnauthorizedException - if the currently authenticated user doesn't have rights to feature items in the
container
void clearFeaturedItems(JiveContainer container,
Integer... objectTypeFilter)
throws UnauthorizedException
itemDeleteEvents in
FeaturedContentManagerImpl. The default values for this list are set in the spring configuration for
the bean. If you are featuring an object type, make sure you add the delete event dispatched when instances of
that object type are deleted so that deleted items are removed as featured items. If orphaned data is found, the
problem will be logged and featured item removed during any attempts to retrieve featured content for the
container where the deleted item exists.
com.jivesoftware.community.featured.FeaturedContentManagerImpl.FeaturedItemDeleteListener
container - with featured items to be removedobjectTypeFilter - constant id values corresponding to the set of object types to include
UnauthorizedException - if the currently authenticated user doesn't have rights to feature items in the
container
void clearFeaturedItem(JiveContainer container,
JiveObject toClear)
throws UnauthorizedException
itemDeleteEvents in
FeaturedContentManagerImpl. The default values for this list are set in the spring configuration for
the bean. If you are featuring an object type, make sure you add the delete event dispatched when instances of
that object type are deleted so that deleted items are removed as featured items. If orphaned data is found, the
problem will be logged and featured item removed during any attempts to retrieve featured content for the
container where the deleted item exists.
com.jivesoftware.community.featured.FeaturedContentManagerImpl.FeaturedItemDeleteListener
container - with featured items to be removedtoClear - JiveObject to
UnauthorizedException - if the currently authenticated user doesn't have rights to feature items in the
container
JiveIterator<JiveObject> getFeaturedItems(JiveContainer container)
throws UnauthorizedException
container - with featured items
UnauthorizedException - if the currently authenticated user doesn't have rights to view content in the
container
JiveIterator<JiveObject> getFeaturedItems(JiveContainer container,
Integer... objectTypeFilter)
throws UnauthorizedException
container - with featured itemsobjectTypeFilter - constant id values corresponding to the set of object types to include
UnauthorizedException - if the currently authenticated user doesn't have rights to view content in the
container
JiveObject getFeaturedItem(JiveContainer container)
throws UnauthorizedException
container - with featured items
UnauthorizedException - if the currently authenticated user doesn't have rights to view content in the
container
JiveObject getFeaturedItem(JiveContainer container,
Integer... objectTypeFilter)
throws UnauthorizedException
container - with featured itemsobjectTypeFilter - the object types of featured items that will be returned
UnauthorizedException - if the currently authenticated user doesn't have rights to view content in the
container
int getFeaturedItemCount(JiveContainer container)
throws UnauthorizedException
container - with featured items
UnauthorizedException - if the currently authenticated user doesn't have rights to view the
container
int getFeaturedItemCount(JiveContainer container,
Integer... objectTypeFilter)
throws UnauthorizedException
container - with featured itemsobjectTypeFilter - - object types to be included if there is a featured item of that content type
UnauthorizedException - if the currently authenticated user doesn't have rights to view the
container
boolean isFeatured(JiveContainer container,
JiveObject object)
throws UnauthorizedException
container - with featured itemsobject - - the item being checked to see if it is featured
UnauthorizedException - if the currently authenticated user doesn't have rights to view content in the
container
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||