站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

InstanceMetaData - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.core.metadata
Class InstanceMetaData

java.lang.Object
  extended byorg.jboss.portal.core.metadata.InstanceMetaData
All Implemented Interfaces:
MetaData

public class InstanceMetaData
extends java.lang.Object
implements MetaData

Represent metadata of an instance.

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private  java.lang.String id
          The instance id.
private static org.apache.log4j.Logger log
          The logger.
private  java.lang.String portletRef
          The portlet referenced by the instance.
private  PreferencesMetaData preferences
          The specific preferences of this instance.
private  SecurityConstraintsMetaData securityConstraints
          The security constraints.
 
Constructor Summary
InstanceMetaData()
           
 
Method Summary
static InstanceMetaData buildLegacyMetaData(org.w3c.dom.Element instanceElt, java.lang.String pwaId)
           
static InstanceMetaData buildMetaData(org.w3c.dom.Element instanceElt)
           
static PreferenceMetaData buildPreferenceMetaData(org.w3c.dom.Element preferenceElt)
           
static java.util.Map buildPreferencesMetaData(org.w3c.dom.Element portletPreferencesElt)
           
 Instance create(InstancesMetaData.BuildContext buildContext)
           
 java.lang.String getId()
           
 java.lang.String getPortletRef()
           
 PreferencesMetaData getPreferences()
           
protected  SecurityConstraintsMetaData getSecurityConstraints()
           
 void setId(java.lang.String id)
           
 void setPortletRef(java.lang.String portletRef)
           
 void setPreferences(PreferencesMetaData preferences)
           
 void setSecurityConstraints(SecurityConstraintsMetaData securityConstraints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log
The logger.


id

private java.lang.String id
The instance id.


preferences

private PreferencesMetaData preferences
The specific preferences of this instance.


portletRef

private java.lang.String portletRef
The portlet referenced by the instance.


securityConstraints

private SecurityConstraintsMetaData securityConstraints
The security constraints.

Constructor Detail

InstanceMetaData

public InstanceMetaData()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getPreferences

public PreferencesMetaData getPreferences()

setPreferences

public void setPreferences(PreferencesMetaData preferences)

getPortletRef

public java.lang.String getPortletRef()

setPortletRef

public void setPortletRef(java.lang.String portletRef)

getSecurityConstraints

protected SecurityConstraintsMetaData getSecurityConstraints()

setSecurityConstraints

public void setSecurityConstraints(SecurityConstraintsMetaData securityConstraints)

buildMetaData

public static InstanceMetaData buildMetaData(org.w3c.dom.Element instanceElt)

buildLegacyMetaData

public static InstanceMetaData buildLegacyMetaData(org.w3c.dom.Element instanceElt,
                                                   java.lang.String pwaId)
Parameters:
instanceElt - the instance xml element
pwaId - the portlet application id

buildPreferencesMetaData

public static java.util.Map buildPreferencesMetaData(org.w3c.dom.Element portletPreferencesElt)

buildPreferenceMetaData

public static PreferenceMetaData buildPreferenceMetaData(org.w3c.dom.Element preferenceElt)

create

public Instance create(InstancesMetaData.BuildContext buildContext)
                throws PortletInvokerException,
                       DuplicateInstanceException,
                       SecurityConfigurationException
Throws:
PortletInvokerException
DuplicateInstanceException
SecurityConfigurationException