|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.core.impl.model.instance.AbstractInstance
public abstract class AbstractInstance
Field Summary | |
---|---|
protected PortletContext |
portletContext
Composite representation of portletRef + state. |
protected java.lang.String |
portletRef
. |
protected byte[] |
state
. |
Fields inherited from interface org.jboss.portal.core.model.instance.Instance |
---|
INSTANCE_ID_ATTRIBUTE |
Constructor Summary | |
---|---|
protected |
AbstractInstance()
|
Method Summary | |
---|---|
protected abstract void |
cloned(PortletContext portletContext)
|
void |
destroyCustomization(java.lang.String customizationId)
Destroy the customization |
protected abstract AccessMode |
getAccessMode()
|
InstanceContainer |
getContainer()
Return the container of this object. |
protected abstract InstanceContainerContext |
getContainerContext()
|
InstanceCustomization |
getCustomization(java.lang.String customizationId)
Return a customization of this instance related to the provided customization id. |
InstanceDefinition |
getDefinition()
|
protected abstract java.lang.String |
getInstanceId()
|
protected abstract org.apache.log4j.Logger |
getLogger()
|
protected abstract AbstractInstanceDefinition |
getOwner()
|
Portlet |
getPortlet()
Return the runtime metadata for this portlet. |
PortletContext |
getPortletContext()
|
java.lang.String |
getPortletRef()
|
PropertyMap |
getProperties()
Return the instance preferences. |
PropertyMap |
getProperties(java.util.Set keys)
Return the instance preferences. |
byte[] |
getState()
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke the instance |
boolean |
isModifiable()
|
protected abstract boolean |
isMutable()
|
protected void |
modified(PortletContext portletContext)
|
protected abstract void |
setMutable(boolean modifiable)
|
void |
setPortletRef(java.lang.String portletRef)
|
void |
setProperties(PropertyChange[] changes)
Update the prefs of this instance. |
void |
setState(byte[] state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.portal.core.model.instance.Instance |
---|
getDisplayName, getId |
Field Detail |
---|
protected java.lang.String portletRef
protected byte[] state
protected PortletContext portletContext
Constructor Detail |
---|
protected AbstractInstance()
Method Detail |
---|
public java.lang.String getPortletRef()
public void setPortletRef(java.lang.String portletRef)
public byte[] getState()
public void setState(byte[] state)
public final PortletContext getPortletContext()
public final boolean isModifiable()
protected abstract boolean isMutable()
protected abstract void setMutable(boolean modifiable)
protected abstract org.apache.log4j.Logger getLogger()
protected abstract AccessMode getAccessMode()
protected abstract void cloned(PortletContext portletContext)
protected abstract AbstractInstanceDefinition getOwner()
protected abstract InstanceContainerContext getContainerContext()
protected abstract java.lang.String getInstanceId()
protected final void modified(PortletContext portletContext)
public final InstanceDefinition getDefinition()
public final Portlet getPortlet() throws PortletInvokerException
Instance
getPortlet
in interface Instance
PortletInvokerException
public final InstanceContainer getContainer()
Instance
getContainer
in interface Instance
public final void setProperties(PropertyChange[] changes) throws PortletInvokerException
Instance
setProperties
in interface Instance
changes
- the changes
PortletInvokerException
public final PropertyMap getProperties() throws PortletInvokerException
Instance
getProperties
in interface Instance
PortletInvokerException
public final PropertyMap getProperties(java.util.Set keys) throws PortletInvokerException
Instance
getProperties
in interface Instance
PortletInvokerException
public final PortletInvocationResponse invoke(PortletInvocation invocation) throws PortletInvokerException
Instance
invoke
in interface Instance
invocation
- the invocation
PortletInvokerException
public final InstanceCustomization getCustomization(java.lang.String customizationId)
Instance
getCustomization
in interface Instance
public final void destroyCustomization(java.lang.String customizationId)
Instance
destroyCustomization
in interface Instance
customizationId
- the id of the customization to destroy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |