|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.netuix.application.definition.PortletDefinition
This class represents a persistant portlet.
Field Summary | |
static byte |
CLONE_BEFORE_WRITE
|
protected PortletInstance |
portletInstance
|
static byte |
READ_ONLY
|
static byte |
READ_WRITE
|
Constructor Summary | |
|
PortletDefinition(LocalizationResource localizationResource,
MarkupDefinitionId markupDefinitionId,
String contentUri,
String backingFile,
String definitionLabel,
String instanceLabel,
boolean forkable,
boolean _public,
ThemeDefinitionId themeDefinitionId,
short titlebarOrientation,
boolean defaultMinimized,
boolean renderCacheable,
int cacheExpires,
boolean forkRender,
String portletFile,
boolean deleted,
String helpUri,
String editUri,
String webAppName)
Contructor to create a new PortletDefinition object. |
|
PortletDefinition(LocalizationResource localizationResource,
MarkupDefinitionId markupDefinitionId,
String contentUri,
String backingFile,
String definitionLabel,
String instanceLabel,
boolean forkable,
boolean _public,
ThemeDefinitionId themeDefinitionId,
short titlebarOrientation,
boolean defaultMinimized,
boolean renderCacheable,
int cacheExpires,
boolean forkRender,
String portletFile,
boolean deleted,
String helpUri,
String editUri,
String webAppName,
String producerHandle,
String portletHandle,
byte stateChangeFlag,
boolean requiresUrlTemplates,
boolean templatesStoredInSession,
byte[] portletState,
boolean producerOfferedPortlet)
Overloaded constructor |
protected |
PortletDefinition(MarkupDefinitionId markupDefinitionId,
String contentUri,
String backingFile,
boolean forkable,
boolean _public,
boolean renderCacheable,
int cacheExpires,
boolean forkRender,
String portletFile,
boolean deleted,
String helpUri,
String editUri,
String definitionLabel,
String webAppName,
PortletInstance portletInstance)
Overloaded constructor that takes a PortletInstance . |
protected |
PortletDefinition(MarkupDefinitionId markupDefinitionId,
String contentUri,
String backingFile,
boolean forkable,
boolean _public,
boolean renderCacheable,
int cacheExpires,
boolean forkRender,
String portletFile,
boolean deleted,
String helpUri,
String editUri,
String definitionLabel,
String webAppName,
PortletInstance portletInstance,
String producerHandle,
String portletHandle,
byte stateChangeFlag,
boolean requiresUrlTemplates,
boolean templatesStoredInSession,
byte[] portletState,
boolean producerOfferedPortlet)
Overloaded constructor |
Method Summary | |
String |
getBackingFile()
Returns the name of the backing file for this portlet, if present, NULL otherwise. |
int |
getCacheExpires()
Getter for cache TTL |
String |
getContentUri()
Returns the content uri for this portlet. |
String |
getDefinitionLabel()
Returns the definition label for this portlet. |
String |
getDescription()
Retrieves this portlet's localized description from it's LocalizationResource . |
String |
getEditUri()
Getter for the edit content. |
String |
getHelpUri()
Getter for the help content. |
String |
getInstanceLabel()
Returns the instance label for this portlet. |
LocalizationIntersectionId |
getLocalizationIntersectionId()
Returns the LocalizationIntersectionId for this portlet.
|
LocalizationResource |
getLocalizationResource()
Returns the LocalizationResource associated with this
PortletDefinition based on the locale of the request used
for retrieving the PortletDefinition . |
MarkupDefinitionId |
getMarkupDefinitionId()
Returns the MarkupDefinitionId for the MarkupDefinition
associated with this portlet. |
PlaceableDefinitionId |
getPlaceableDefinitionId()
Returns the PlaceableDefinitionId associated with this portlet.
|
PlacementId |
getPlacementId()
Returns the PlacementId for this portlet.
|
PortletDefinitionId |
getPortletDefinitionId()
Returns the PortletDefinitionId for this portlet.
|
String |
getPortletFile()
Getter for returning the relative path of the .portlet file representing this portlet. |
String |
getPortletHandle()
Returns the portlet handle associated with this portlet if it is a WSRP remote portlet, NULL otherwise. |
byte[] |
getPortletState()
Returns the portlet state for a WSRP remote portlet |
PortletInstanceId |
getPrimaryInstanceId()
Returns the primary instance id of the portlet. |
String |
getProducerHandle()
Returns the producer handle associated with this portlet if it is a WSRP remote portlet, NULL otherwise. |
byte |
getStateChangeFlag()
Returns state change flag associated with this portlet if it is a WSRP remote portlet. |
ThemeDefinitionId |
getThemeDefinitionId()
Returns the ThemeDefinitionId of theme associated with this
PortletDefinition . |
String |
getTitle()
Retrieves this portlet's localized title from it's LocalizationResource . |
short |
getTitlebarOrientation()
Returns the titlebar orientation for this PortletDefinition |
String |
getWebAppName()
Returns the name of the J2EE web application this portlet is scoped to. |
boolean |
isDefaultMinimized()
Returns if this portlet is minimized by default. |
boolean |
isDeleted()
Getter to determined if this portet definition has been deleted. |
boolean |
isForkable()
Getter for the boolean indicating if this portlet is forkable. |
boolean |
isForkRender()
Getter for property forkRender. |
boolean |
isProducerOfferedPortlet()
Returns whether a WSRP remote portlet has not been customized by a WSRP consumer |
boolean |
isPublic()
Returns whether this portlet is end-user created. |
boolean |
isRenderCacheable()
Getter for property renderCacheable. |
boolean |
isRequiresUrlTemplates()
Returns whether a WSRP remote portlet requires url templates |
boolean |
isTemplatesStoredInSession()
Returns whether url templates are stored in the HttpSession for a WSRP remote portlet |
void |
setBackingFile(String backingFile)
Sets the backing file for this portlet. |
void |
setCacheExpires(int cacheExpires)
Setter for the cache TTL. -1 indacates not to cache |
void |
setContentUri(String contentUri)
Sets the content uri for this portlet. |
void |
setDefaultMinimized(boolean defaultMinimized)
Sets whether this portlet is default minimized. |
void |
setDefinitionLabel(String definitionLabel)
Sets the definition label for this portlet. |
void |
setDeleted(boolean deleted)
Getter to determined if this portet definition has been deleted. |
void |
setEditUri(String editUri)
Setter for the edit content. |
void |
setForkable(boolean forkable)
setter for the boolean indicating if this portlet is forkable. |
void |
setForkRender(boolean forkRender)
Setter for property forkRender. |
void |
setHelpUri(String helpUri)
Setter for the help content. |
void |
setInstanceLabel(String instanceLabel)
Sets the instance label for this portlet. |
void |
setLocalizationResource(LocalizationResource localizationResource)
Sets the LocalizationResource for this portlet. |
void |
setMarkupDefinitionId(MarkupDefinitionId markupDefinitionId)
Sets the MarkupDefinitionId for this portlet. |
void |
setPortletFile(String portletFile)
Setter for setting the relative path of the .portlet file representing this portlet. |
void |
setPortletHandle(String portletHandle)
Sets the portlet handle for this portlet |
void |
setPortletState(byte[] portletState)
Sets the portlet state for a WSRP remote portlet |
void |
setProducerHandle(String producerHandle)
Sets the producer handle for this portlet |
void |
setProducerOfferedPortlet(boolean producerOfferedPortlet)
Sets whether a WSRP remote portlet is customized by a WSRP consumer |
void |
setPublic(boolean _public)
Sets whether this portlet is end-user created. |
void |
setRenderCacheable(boolean renderCacheable)
Setter for property renderCacheable. |
void |
setRequiresUrlTemplates(boolean requiresUrlTemplates)
Sets whether a WSRP remote portlet requires url templates |
void |
setStateChangeFlag(byte stateChangeFlag)
Sets state change flag |
void |
setTemplatesStoredInSession(boolean templatesStoredInSession)
Sets whether url templates are stored in the HttpSession for a WSRP remote portlet |
void |
setThemeDefinitionId(ThemeDefinitionId themeDefinitionId)
Associates a theme with this portlet. |
void |
setTitlebarOrientation(short titlebarOrientation)
Sets the titlebar orientation for this portlet |
void |
setWebAppName(String webAppName)
Scopes this portlet to specified J2EE web application |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte CLONE_BEFORE_WRITE
protected PortletInstance portletInstance
public static final byte READ_ONLY
public static final byte READ_WRITE
Constructor Detail |
public PortletDefinition(LocalizationResource localizationResource, MarkupDefinitionId markupDefinitionId, String contentUri, String backingFile, String definitionLabel, String instanceLabel, boolean forkable, boolean _public, ThemeDefinitionId themeDefinitionId, short titlebarOrientation, boolean defaultMinimized, boolean renderCacheable, int cacheExpires, boolean forkRender, String portletFile, boolean deleted, String helpUri, String editUri, String webAppName)
PortletDefinition
object.
public PortletDefinition(LocalizationResource localizationResource, MarkupDefinitionId markupDefinitionId, String contentUri, String backingFile, String definitionLabel, String instanceLabel, boolean forkable, boolean _public, ThemeDefinitionId themeDefinitionId, short titlebarOrientation, boolean defaultMinimized, boolean renderCacheable, int cacheExpires, boolean forkRender, String portletFile, boolean deleted, String helpUri, String editUri, String webAppName, String producerHandle, String portletHandle, byte stateChangeFlag, boolean requiresUrlTemplates, boolean templatesStoredInSession, byte[] portletState, boolean producerOfferedPortlet)
protected PortletDefinition(MarkupDefinitionId markupDefinitionId, String contentUri, String backingFile, boolean forkable, boolean _public, boolean renderCacheable, int cacheExpires, boolean forkRender, String portletFile, boolean deleted, String helpUri, String editUri, String definitionLabel, String webAppName, PortletInstance portletInstance)
PortletInstance
.
protected PortletDefinition(MarkupDefinitionId markupDefinitionId, String contentUri, String backingFile, boolean forkable, boolean _public, boolean renderCacheable, int cacheExpires, boolean forkRender, String portletFile, boolean deleted, String helpUri, String editUri, String definitionLabel, String webAppName, PortletInstance portletInstance, String producerHandle, String portletHandle, byte stateChangeFlag, boolean requiresUrlTemplates, boolean templatesStoredInSession, byte[] portletState, boolean producerOfferedPortlet)
Method Detail |
public String getBackingFile()
NULL
otherwise.
public int getCacheExpires()
public String getContentUri()
public String getDefinitionLabel()
getDefinitionLabel
in interface PlaceableDefinition
public String getDescription()
LocalizationResource
.
getDescription
in interface PlaceableDefinition
public String getEditUri()
Getter for the edit content. The Edit uri is the uri to the JSP or HTML page to be displayed when the portlet is in edit mode.
public String getHelpUri()
Getter for the help content. The Help uri is the uri to the JSP or HTML page to be displayed when the portlet is in help mode.
public String getInstanceLabel()
NULL
if this portlet has not been
retrieved using the persistence API.
public LocalizationIntersectionId getLocalizationIntersectionId()
LocalizationIntersectionId
for this portlet.
Returns NULL
if no LocalizationResource is associated with
this portlet. A LocalizationIntersectionId
is a reference to all
localized versions of title and description for an entity.
LocalizationIntersectionId
for this portletpublic LocalizationResource getLocalizationResource()
LocalizationResource
associated with this
PortletDefinition
based on the locale of the request used
for retrieving the PortletDefinition
.
getLocalizationResource
in interface PlaceableDefinition
LocalizationResource
associated with this portletpublic MarkupDefinitionId getMarkupDefinitionId()
MarkupDefinitionId
for the MarkupDefinition
associated with this portlet.
MarkupDefinitionId
MarkupDefinition
public PlaceableDefinitionId getPlaceableDefinitionId()
PlaceableDefinitionId
associated with this portlet.
Returns NULL
when the PortletDefinition has not been retrieved
by using the persistence API.
getPlaceableDefinitionId
in interface PlaceableDefinition
PlaceableDefinitionId
associated with this portletPlaceableDefinition
public PlacementId getPlacementId()
PlacementId
for this portlet.
May be NULL
if this portlet is not placed
or if it has not been retrieved using the persistence API.
getPlacementId
in interface PlaceableDefinition
PlacementId
for this portlet
public PortletDefinitionId getPortletDefinitionId()
PortletDefinitionId
for this portlet.
Returns NULL
when the PortletDefinition has not been retrieved
by using the persistence API.
PortletDefinitionId
for this portletpublic String getPortletFile()
public String getPortletHandle()
NULL
otherwise.
public byte[] getPortletState()
public PortletInstanceId getPrimaryInstanceId()
NULL
if this portlet has not been
retrieved using the persistence API.
PortletInstanceId
public String getProducerHandle()
NULL
otherwise.
public byte getStateChangeFlag()
public ThemeDefinitionId getThemeDefinitionId()
ThemeDefinitionId
of theme associated with this
PortletDefinition
.
ThemeDefinitionId
public String getTitle()
LocalizationResource
.
getTitle
in interface PlaceableDefinition
public short getTitlebarOrientation()
PortletDefinition
public String getWebAppName()
getWebAppName
in interface PlaceableDefinition
public boolean isDefaultMinimized()
public boolean isDeleted()
Getter to determined if this portet definition has been deleted. This is set by the system if the .portlet file has been removed from the file system. Because the consequences of deleting the porteltDefinition and all it's instances would be a costly and perminent, we just mark the portlet definition as being deleted and then the admin can permanently delete it via his admin tools.
public boolean isForkable()
public boolean isForkRender()
public boolean isProducerOfferedPortlet()
public boolean isPublic()
public boolean isRenderCacheable()
public boolean isRequiresUrlTemplates()
public boolean isTemplatesStoredInSession()
public void setBackingFile(String backingFile)
backingFile
- public void setCacheExpires(int cacheExpires)
cacheExpires
- number of seconds before the cache expires.public void setContentUri(String contentUri)
contentUri
- public void setDefaultMinimized(boolean defaultMinimized)
defaultMinimized
- true to set the portlet to minimized by defaultpublic void setDefinitionLabel(String definitionLabel)
definitionLabel
- public void setDeleted(boolean deleted)
deleted
- true if the portlet has been marked deleted.public void setEditUri(String editUri)
Setter for the edit content. The Edit uri is the uri to the JSP or HTML page to be displayed when the portlet is in edit mode.
editUri
- a relative path to the JSP or html page.public void setForkable(boolean forkable)
forkable
- true if this portlet can be forked.public void setForkRender(boolean forkRender)
forkRender
- true mean we will fork (multithred) the renderer.public void setHelpUri(String helpUri)
Setter for the help content. The Help uri is the uri to the JSP or HTML page to be displayed when the portlet is in help mode.
helpUri
- a relative path to the JSP or html page.public void setInstanceLabel(String instanceLabel)
instanceLabel
- public void setLocalizationResource(LocalizationResource localizationResource)
LocalizationResource
for this portlet.
localizationResource
- public void setMarkupDefinitionId(MarkupDefinitionId markupDefinitionId)
MarkupDefinitionId
for this portlet.
markupDefinitionId
- public void setPortletFile(String portletFile)
portletFile
- the relative path name of the .portlet file.public void setPortletHandle(String portletHandle)
portletHandle
- public void setPortletState(byte[] portletState)
portletState
- public void setProducerHandle(String producerHandle)
producerHandle
- public void setProducerOfferedPortlet(boolean producerOfferedPortlet)
producerOfferedPortlet
- public void setPublic(boolean _public)
_public
- public void setRenderCacheable(boolean renderCacheable)
renderCacheable
- true if the portlet can be cached.public void setRequiresUrlTemplates(boolean requiresUrlTemplates)
requiresUrlTemplates
- public void setStateChangeFlag(byte stateChangeFlag)
stateChangeFlag
- public void setTemplatesStoredInSession(boolean templatesStoredInSession)
templatesStoredInSession
- public void setThemeDefinitionId(ThemeDefinitionId themeDefinitionId)
themeDefinitionId
- of theme associated with this portletpublic void setTitlebarOrientation(short titlebarOrientation)
titlebarOrientation
- public void setWebAppName(String webAppName)
webAppName
- name of the web application to scope this portlet topublic String toString()
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |