com.sap.workspaces.content

Class ContentDescriptor

java.lang.Object
  extended by com.sap.workspaces.content.ContentDescriptor

public class ContentDescriptor
extends Object

Provides a descriptor of a content item for the purposes of its integration in the content galleries and instantiation on a page

Since:
1.1

Constructor Summary
ContentDescriptor(String name, String description, String iconURL, String ID, String[] categories, Date creationDate, String URL)
          Constructor of the content descriptor
 
Method Summary
 String[] getCategories()
          Returns an array of the module categories to which this content item belongs
 String getContentID()
          Returns the ID of the content item in its source system; should not exceed 340 characters
 Date getCreationDate()
          Optional; returns the date when this content item was created in the source system; if not specified, the null value is passed
 String getDescription()
          Returns the content item's description
 String getIconURL()
          Returns the URL of the icon associated with the content item
 String getName()
          Returns the content item's name that appears in the content galleries
 String getURL()
          Returns the navigation URL of this content item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentDescriptor

public ContentDescriptor(String name,
                         String description,
                         String iconURL,
                         String ID,
                         String[] categories,
                         Date creationDate,
                         String URL)
Constructor of the content descriptor

Parameters:
name - the content item's name
description - the content item's description
iconURL - the URL of the icon associated with the content item
ID - the content item's ID, defined in the source system
categories - an array of categories to which the content item belongs
creationDate - the date when the content item was created in the source system; optional, default is null
URL - the direct URL of the content item
Method Detail

getContentID

public String getContentID()
Returns the ID of the content item in its source system; should not exceed 340 characters

Returns:
The ID of the content item in its source system

getDescription

public String getDescription()
Returns the content item's description

Returns:
The content item's description

getName

public String getName()
Returns the content item's name that appears in the content galleries

Returns:
The content item's name

getIconURL

public String getIconURL()
Returns the URL of the icon associated with the content item

Returns:
the URL of the icon

getCategories

public String[] getCategories()
Returns an array of the module categories to which this content item belongs

Returns:
An array of the module categories

getCreationDate

public Date getCreationDate()
Optional; returns the date when this content item was created in the source system; if not specified, the null value is passed

Returns:
The creation date of this content item

getURL

public String getURL()
Returns the navigation URL of this content item

Returns:
The navigation URL of this content item


Copyright 2011 SAP AG Complete Copyright Notice