com.sap.portal.wpc.api.content.provider

Class ContentDescriptor

java.lang.Object
  extended by com.sap.portal.wpc.api.content.provider.ContentDescriptor

public class ContentDescriptor
extends Object

Provides a descriptor for a content item of a custom content provider. Used by the IContentProvider for describing the content it provides.


Field Summary
static String CREATION_METHOD_COPY
           
static String CREATION_METHOD_DELTA_LINK
           
 
Constructor Summary
ContentDescriptor(String ID, String name, String description, String iconURI, String contentHandlerID, String templateID)
           
ContentDescriptor(String ID, String name, String description, String iconURI, String contentHandlerID, String templateID, String creationMethod)
           
 
Method Summary
 String getContentHandlerID()
          Returns the ID of the IContentHandler
 String getCreationMethod()
          Returns the creation method used when adding the content item to a page.
 String getCustomProperty(String key)
          Returns the value that corresponds to the provided key from the custom properties map.
 String getDescription()
          Returns the description of the content item.
 String getIconURI()
          Returns the URI of the icon to display for the content item.
 String getID()
          Returns the ID of this content descriptor object.
 String getName()
          Returns the display name of the content item.
 String getTemplateID()
          Returns the ID of the template of the content item.
 void setContentHandlerID(String contentHandlerID)
          Sets the ID of the IContentHandler
 void setCreationMethod(String creationMethod)
          Sets the creation method used when adding the content item to a page.
 void setCustomProperty(String key, String value)
          A custom property represented by , to save in the custom properties map for later use.
 void setDescription(String description)
          Sets the description of the content item.
 void setIconURI(String iconURI)
          Sets the URI of the icon to display for the content item.
 void setID(String ID)
          Sets the ID of this content descriptor object.
 void setName(String name)
          Sets the display name of the content item.
 void setTemplateID(String templateID)
          Sets the ID of the template of the content item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATION_METHOD_DELTA_LINK

public static final String CREATION_METHOD_DELTA_LINK
See Also:
Constant Field Values

CREATION_METHOD_COPY

public static final String CREATION_METHOD_COPY
See Also:
Constant Field Values
Constructor Detail

ContentDescriptor

public ContentDescriptor(String ID,
                         String name,
                         String description,
                         String iconURI,
                         String contentHandlerID,
                         String templateID)

ContentDescriptor

public ContentDescriptor(String ID,
                         String name,
                         String description,
                         String iconURI,
                         String contentHandlerID,
                         String templateID,
                         String creationMethod)
Method Detail

getID

public String getID()
Returns the ID of this content descriptor object.

Returns:
the ID of this content descriptor

setID

public void setID(String ID)
Sets the ID of this content descriptor object.

Parameters:
ID - the ID of this content descriptor

getTemplateID

public String getTemplateID()
Returns the ID of the template of the content item.

Returns:
the ID of the template of the content item

setTemplateID

public void setTemplateID(String templateID)
Sets the ID of the template of the content item.

Parameters:
templateID - the ID of the template of the content item

getDescription

public String getDescription()
Returns the description of the content item.

Returns:
the description of the content item

setDescription

public void setDescription(String description)
Sets the description of the content item.

Parameters:
description - the description of the content item

getContentHandlerID

public String getContentHandlerID()
Returns the ID of the IContentHandler

Returns:
the ID of the IContentHandler

setContentHandlerID

public void setContentHandlerID(String contentHandlerID)
Sets the ID of the IContentHandler

Parameters:
contentHandlerID - the ID of the IContentHandler

getName

public String getName()
Returns the display name of the content item.

Returns:
the display name of the content item

setName

public void setName(String name)
Sets the display name of the content item.

Parameters:
name - the display name of the content item

getIconURI

public String getIconURI()
Returns the URI of the icon to display for the content item.

Returns:
the URI of the icon to display for the content item

setIconURI

public void setIconURI(String iconURI)
                throws IllegalArgumentException
Sets the URI of the icon to display for the content item.

Parameters:
iconURI - the URI of the icon to display for the content item
Throws:
IllegalArgumentException - if the URI is not a valid icon

getCreationMethod

public String getCreationMethod()
Returns the creation method used when adding the content item to a page.

Returns:
the creation method used when adding the content item to a page Valid values are (static members of this class): CREATE_METHOD_DELTA_LINK - create as delta link CREATE_METHOD_COPY - create as copy

setCreationMethod

public void setCreationMethod(String creationMethod)
Sets the creation method used when adding the content item to a page.

Parameters:
creationMethod - the creation method used when adding the content item to a page

setCustomProperty

public void setCustomProperty(String key,
                              String value)
A custom property represented by , to save in the custom properties map for later use.

Parameters:
key -
value -

getCustomProperty

public String getCustomProperty(String key)
Returns the value that corresponds to the provided key from the custom properties map.

Parameters:
key -
Returns:
the value that corresponds to the provided key from the custom properties map
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-WPC [sap.com] tc/ep/wpc/api api EP-PIN-WPC


Copyright 2015 SAP AG Complete Copyright Notice