com.fatwire.agent
Interface IAssetHandler


public interface IAssetHandler

Asset handler interface. This interface must be implemented by asset handler. For example, image handler implements this interface and provides ExtractMetadata() custom method which extracts thumbnails and metadata (e.g. image width and height).


Field Summary
static int DETAIL_SIZE
          Size of the detailed (medium) image.
static int PREVIEW_SIZE
          Size of the preview (largest) image.
static int THUMBNAIL_SIZE
          Size of the thumbnail (smallest) image.
 
Method Summary
 IItem extractMetadata(IItem item)
          Extracts metadata from an item (e.g.
 void initialize(IAssetHandlerContext context, Properties props)
          Called once to initialize asset handler.
 void unInitialize()
          Called once to uninitialize asset handler.
 

Field Detail

THUMBNAIL_SIZE

static final int THUMBNAIL_SIZE
Size of the thumbnail (smallest) image.

See Also:
Constant Field Values

DETAIL_SIZE

static final int DETAIL_SIZE
Size of the detailed (medium) image.

See Also:
Constant Field Values

PREVIEW_SIZE

static final int PREVIEW_SIZE
Size of the preview (largest) image.

See Also:
Constant Field Values
Method Detail

initialize

void initialize(IAssetHandlerContext context,
                Properties props)
                throws AgentException
Called once to initialize asset handler.

Parameters:
context - pointer to asset handler context.
props - custom asset handler initialization properties. They are read from types.xml section.
Throws:
AgentException

unInitialize

void unInitialize()
                  throws AgentException
Called once to uninitialize asset handler.

Throws:
AgentException

extractMetadata

IItem extractMetadata(IItem item)
                      throws AgentException
Extracts metadata from an item (e.g. width and height information for images).

Parameters:
item - item to process.
Throws:
AgentException