Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.media.type
Interface MediaObjectTypeRegistry<T extends Map<Class<? extends Media>,String>>


public interface MediaObjectTypeRegistry<T extends Map<Class<? extends Media>,String>>

A registry that manages extensions to the media framework. Certain features are relevant to content that would be an extensions of the Media interface. By registering the extension to Media and the associated implemenation of MediaObjectType the generic behavior that applies to all media types will be provided.


Method Summary
 Class<? extends Media> getMediaObjectTypeClass(int objectTypeID)
          Returns an instance of media that corresponds to the media object type with an id matching the given id
 Class<? extends Media> getMediaObjectTypeClass(String objectTypeName)
          Returns an instance of media that corresponds to the media object type with a name matching the given name.
 List<Integer> getRegisteredObjectTypeIDs()
          Returns a list of all MediaObjectType ids as defined by getID() in the JiveObjectType implementation.
 List<String> getRegisteredObjectTypeNames()
          Returns a list of all MediaObjectType names as defined by getName() in the JiveObjectType implementation.
 List<T> getRegisteredTypes()
          Returns a list of all registered types that extend the Media interface mapped to the name of the JiveObjectType implementation for each of those extensions.
 void register(T mediaType)
          Registers a specific type of media so that it can receive the behaviors with generic implementations in the media implementation of the object type framework.
 

Method Detail

register

void register(T mediaType)
Registers a specific type of media so that it can receive the behaviors with generic implementations in the media implementation of the object type framework.

Parameters:
mediaType - - a mapping of an interface (or class) that extends Media to the name of a JiveObjectType implemation. The name of an object type is the value returned from JiveObjectType.getName()

getRegisteredTypes

List<T> getRegisteredTypes()
Returns a list of all registered types that extend the Media interface mapped to the name of the JiveObjectType implementation for each of those extensions.

Returns:
a list of all registered extensions to Media and MediaObjectType

getRegisteredObjectTypeNames

List<String> getRegisteredObjectTypeNames()
Returns a list of all MediaObjectType names as defined by getName() in the JiveObjectType implementation.

Returns:
a list of all names of registered MediaObjectType's

getRegisteredObjectTypeIDs

List<Integer> getRegisteredObjectTypeIDs()
Returns a list of all MediaObjectType ids as defined by getID() in the JiveObjectType implementation.

Returns:
a list of all ids of registered MediaObjectType's

getMediaObjectTypeClass

Class<? extends Media> getMediaObjectTypeClass(int objectTypeID)
Returns an instance of media that corresponds to the media object type with an id matching the given id

Returns:
instance of media that corresponds to the media object type with an id matching the given id

getMediaObjectTypeClass

Class<? extends Media> getMediaObjectTypeClass(String objectTypeName)
Returns an instance of media that corresponds to the media object type with a name matching the given name.

Returns:
an instance of media that corresponds to the media object type with a name matching the given name.

Jive Product Page

Copyright © 1999-2007 Jive Software.