public class PortletImpl extends PortletBaseImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, ID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, ORDER_BY_JPQL, ORDER_BY_SQL, PORTLETID_COLUMN_BITMASK, SESSION_FACTORY, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
Constructor and Description |
---|
PortletImpl()
Constructs a portlet with no parameters.
|
PortletImpl(long companyId,
String portletId)
Constructs a portlet with the specified parameters.
|
PortletImpl(String portletId,
com.liferay.portal.kernel.model.Portlet rootPortlet,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage,
com.liferay.portal.kernel.model.PluginSetting pluginSetting,
long companyId,
String icon,
String virtualPath,
String strutsPath,
String parentStrutsPath,
String portletName,
String displayName,
String portletClass,
String configurationActionClass,
List<String> indexerClasses,
String openSearchClass,
List<com.liferay.portal.kernel.scheduler.SchedulerEntry> schedulerEntries,
String portletURLClass,
String friendlyURLMapperClass,
String friendlyURLMapping,
String friendlyURLRoutes,
String urlEncoderClass,
String portletDataHandlerClass,
List<String> stagedModelDataHandlerClasses,
String templateHandlerClass,
String portletLayoutListenerClass,
String pollerProcessorClass,
String popMessageListenerClass,
List<String> socialActivityInterpreterClasses,
String socialRequestInterpreterClass,
String userNotificationDefinitions,
List<String> userNotificationHandlerClasses,
String webDAVStorageToken,
String webDAVStorageClass,
String xmlRpcMethodClass,
String controlPanelEntryCategory,
double controlPanelEntryWeight,
String controlPanelClass,
List<String> assetRendererFactoryClasses,
List<String> atomCollectionAdapterClasses,
List<String> customAttributesDisplayClasses,
String permissionPropagatorClass,
List<String> trashHandlerClasses,
List<String> workflowHandlerClasses,
String defaultPreferences,
String preferencesValidator,
boolean preferencesCompanyWide,
boolean preferencesUniquePerLayout,
boolean preferencesOwnedByGroup,
boolean useDefaultTemplate,
boolean showPortletAccessDenied,
boolean showPortletInactive,
boolean actionURLRedirect,
boolean restoreCurrentView,
boolean maximizeEdit,
boolean maximizeHelp,
boolean popUpPrint,
boolean layoutCacheable,
boolean instanceable,
boolean remoteable,
boolean scopeable,
boolean singlePageApplication,
String userPrincipalStrategy,
boolean privateRequestAttributes,
boolean privateSessionAttributes,
Set<String> autopropagatedParameters,
boolean requiresNamespacedParameters,
int actionTimeout,
int renderTimeout,
int renderWeight,
boolean ajaxable,
List<String> headerPortalCss,
List<String> headerPortletCss,
List<String> headerPortalJavaScript,
List<String> headerPortletJavaScript,
List<String> footerPortalCss,
List<String> footerPortletCss,
List<String> footerPortalJavaScript,
List<String> footerPortletJavaScript,
String cssClassWrapper,
String facebookIntegration,
boolean addDefaultResource,
String roles,
Set<String> unlinkedRoles,
Map<String,String> roleMappers,
boolean system,
boolean active,
boolean include,
Map<String,String> initParams,
Integer expCache,
Map<String,Set<String>> portletModes,
Map<String,Set<String>> windowStates,
Set<String> supportedLocales,
String resourceBundle,
com.liferay.portal.kernel.model.PortletInfo portletInfo,
Map<String,com.liferay.portal.kernel.model.PortletFilter> portletFilters,
Set<com.liferay.portal.kernel.xml.QName> processingEvents,
Set<com.liferay.portal.kernel.xml.QName> publishingEvents,
Set<com.liferay.portal.kernel.model.PublicRenderParameter> publicRenderParameters,
com.liferay.portal.kernel.model.PortletApp portletApp)
Constructs a portlet with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addApplicationType(com.liferay.portal.kernel.application.type.ApplicationType applicationType)
Adds an application type.
|
void |
addProcessingEvent(com.liferay.portal.kernel.xml.QName processingEvent)
Adds a processing event.
|
void |
addPublicRenderParameter(com.liferay.portal.kernel.model.PublicRenderParameter publicRenderParameter)
Adds a public render parameter.
|
void |
addPublishingEvent(com.liferay.portal.kernel.xml.QName publishingEvent)
Adds a publishing event.
|
void |
addSchedulerEntry(com.liferay.portal.kernel.scheduler.SchedulerEntry schedulerEntry)
Adds a scheduler entry.
|
Object |
clone()
Creates and returns a copy of this object.
|
int |
compareTo(com.liferay.portal.kernel.model.Portlet portlet)
Compares this portlet to the specified object.
|
boolean |
equals(Object obj)
Checks whether this portlet is equal to the specified object.
|
int |
getActionTimeout()
Returns the action timeout of the portlet.
|
boolean |
getActionURLRedirect()
Returns
true if an action URL for this portlet should cause
an auto redirect. |
boolean |
getAddDefaultResource()
Returns
true if default resources for the portlet are added
to a page. |
boolean |
getAjaxable()
Returns
true if the portlet can be displayed via Ajax. |
Set<String> |
getAllPortletModes()
Returns the portlet modes of the portlet.
|
Set<String> |
getAllWindowStates()
Returns the window states of the portlet.
|
Set<com.liferay.portal.kernel.application.type.ApplicationType> |
getApplicationTypes()
Returns the application types of the portlet.
|
List<String> |
getAssetRendererFactoryClasses()
Returns the names of the classes that represent asset types associated
with the portlet.
|
List<com.liferay.asset.kernel.model.AssetRendererFactory<?>> |
getAssetRendererFactoryInstances()
Returns the asset type instances of the portlet.
|
List<String> |
getAtomCollectionAdapterClasses()
Returns the names of the classes that represent atom collection adapters
associated with the portlet.
|
List<com.liferay.portal.kernel.atom.AtomCollectionAdapter<?>> |
getAtomCollectionAdapterInstances()
Returns the atom collection adapter instances of the portlet.
|
Set<String> |
getAutopropagatedParameters()
Returns the names of the parameters that will be automatically propagated
through the portlet.
|
com.liferay.portal.kernel.model.Portlet |
getClonedInstance(String portletId)
Returns
true if the portlet is found in a WAR file. |
String |
getConfigurationActionClass()
Returns the configuration action class of the portlet.
|
com.liferay.portal.kernel.portlet.ConfigurationAction |
getConfigurationActionInstance()
Returns the configuration action instance of the portlet.
|
String |
getContextName()
Returns the servlet context name of the portlet.
|
String |
getContextPath()
Returns the servlet context path of the portlet.
|
String |
getControlPanelEntryCategory()
Returns the name of the category of the Control Panel where the portlet
will be shown.
|
String |
getControlPanelEntryClass()
Returns the name of the class that will control when the portlet will be
shown in the Control Panel.
|
com.liferay.portal.kernel.portlet.ControlPanelEntry |
getControlPanelEntryInstance()
Returns an instance of the class that will control when the portlet will
be shown in the Control Panel.
|
double |
getControlPanelEntryWeight()
Returns the relative weight of the portlet with respect to the other
portlets in the same category of the Control Panel.
|
String |
getCssClassWrapper()
Returns the name of the CSS class that will be injected in the DIV that
wraps this portlet.
|
List<String> |
getCustomAttributesDisplayClasses()
Returns the names of the classes that represent custom attribute displays
associated with the portlet.
|
List<com.liferay.expando.kernel.model.CustomAttributesDisplay> |
getCustomAttributesDisplayInstances()
Returns the custom attribute display instances of the portlet.
|
com.liferay.portal.kernel.model.PluginSetting |
getDefaultPluginSetting()
Get the default plugin settings of the portlet.
|
String |
getDefaultPreferences()
Returns the default preferences of the portlet.
|
String |
getDisplayName()
Returns the display name of the portlet.
|
Integer |
getExpCache()
Returns expiration cache of the portlet.
|
String |
getFacebookIntegration()
Returns the Facebook integration method of the portlet.
|
List<String> |
getFooterPortalCss()
Returns a list of CSS files that will be referenced from the page's
footer relative to the portal's context path.
|
List<String> |
getFooterPortalJavaScript()
Returns a list of JavaScript files that will be referenced from the
page's footer relative to the portal's context path.
|
List<String> |
getFooterPortletCss()
Returns a list of CSS files that will be referenced from the page's
footer relative to the portlet's context path.
|
List<String> |
getFooterPortletJavaScript()
Returns a list of JavaScript files that will be referenced from the
page's footer relative to the portlet's context path.
|
String |
getFriendlyURLMapperClass()
Returns the name of the friendly URL mapper class of the portlet.
|
com.liferay.portal.kernel.portlet.FriendlyURLMapper |
getFriendlyURLMapperInstance()
Returns the friendly URL mapper instance of the portlet.
|
String |
getFriendlyURLMapping()
Returns the name of the friendly URL mapping of the portlet.
|
String |
getFriendlyURLRoutes()
Returns the class loader resource path to the friendly URL routes of the
portlet.
|
List<String> |
getHeaderPortalCss()
Returns a list of CSS files that will be referenced from the page's
header relative to the portal's context path.
|
List<String> |
getHeaderPortalJavaScript()
Returns a list of JavaScript files that will be referenced from the
page's header relative to the portal's context path.
|
List<String> |
getHeaderPortletCss()
Returns a list of CSS files that will be referenced from the page's
header relative to the portlet's context path.
|
List<String> |
getHeaderPortletJavaScript()
Returns a list of JavaScript files that will be referenced from the
page's header relative to the portlet's context path.
|
String |
getIcon()
Returns the icon of the portlet.
|
boolean |
getInclude()
Returns
true to include the portlet and make it available to
be made active. |
List<String> |
getIndexerClasses()
Returns the names of the classes that represent indexers associated with
the portlet.
|
List<com.liferay.portal.kernel.search.Indexer<?>> |
getIndexerInstances()
Returns the indexer instances of the portlet.
|
Map<String,String> |
getInitParams()
Returns the init parameters of the portlet.
|
boolean |
getInstanceable()
Returns
true if the portlet can be added multiple times to a
layout. |
String |
getInstanceId()
Returns the instance ID of the portlet.
|
boolean |
getLayoutCacheable()
Returns
true to allow the portlet to be cached within the
layout. |
boolean |
getMaximizeEdit()
Returns
true if the portlet goes into the maximized state
when the user goes into the edit mode. |
boolean |
getMaximizeHelp()
Returns
true if the portlet goes into the maximized state
when the user goes into the help mode. |
String |
getOpenSearchClass()
Returns the name of the open search class of the portlet.
|
com.liferay.portal.kernel.search.OpenSearch |
getOpenSearchInstance()
Returns the indexer instance of the portlet.
|
String |
getParentStrutsPath()
Returns the parent struts path of the portlet.
|
String |
getPermissionPropagatorClass()
Returns the name of the permission propagator class of the portlet.
|
com.liferay.portal.kernel.security.permission.PermissionPropagator |
getPermissionPropagatorInstance()
Returns the permission propagator instance of the portlet.
|
String |
getPluginId()
Returns the plugin ID of the portlet.
|
com.liferay.portal.kernel.plugin.PluginPackage |
getPluginPackage()
Returns this portlet's plugin package.
|
String |
getPluginType()
Returns the plugin type of the portlet.
|
String |
getPollerProcessorClass()
Returns the name of the poller processor class of the portlet.
|
com.liferay.portal.kernel.poller.PollerProcessor |
getPollerProcessorInstance()
Returns the poller processor instance of the portlet.
|
String |
getPopMessageListenerClass()
Returns the name of the POP message listener class of the portlet.
|
com.liferay.portal.kernel.pop.MessageListener |
getPopMessageListenerInstance()
Returns the POP message listener instance of the portlet.
|
boolean |
getPopUpPrint()
Returns
true if the portlet goes into the pop up state when
the user goes into the print mode. |
com.liferay.portal.kernel.model.PortletApp |
getPortletApp()
Returns this portlet's application.
|
String |
getPortletClass()
Returns the name of the portlet class of the portlet.
|
String |
getPortletDataHandlerClass()
Returns the name of the portlet data handler class of the portlet.
|
com.liferay.exportimport.kernel.lar.PortletDataHandler |
getPortletDataHandlerInstance()
Returns the portlet data handler instance of the portlet.
|
Map<String,com.liferay.portal.kernel.model.PortletFilter> |
getPortletFilters()
Returns the filters of the portlet.
|
com.liferay.portal.kernel.model.PortletInfo |
getPortletInfo()
Returns the portlet info of the portlet.
|
String |
getPortletLayoutListenerClass()
Returns the name of the portlet layout listener class of the portlet.
|
com.liferay.portal.kernel.portlet.PortletLayoutListener |
getPortletLayoutListenerInstance()
Returns the portlet layout listener instance of the portlet.
|
Map<String,Set<String>> |
getPortletModes()
Returns the portlet modes of the portlet.
|
String |
getPortletName()
Returns the name of the portlet.
|
String |
getPortletURLClass()
Returns the name of the portlet URL class of the portlet.
|
boolean |
getPreferencesCompanyWide()
Returns
true if preferences are shared across the entire
company. |
boolean |
getPreferencesOwnedByGroup()
Returns
true if preferences are owned by the group when the
portlet is shown in a group layout. |
boolean |
getPreferencesUniquePerLayout()
Returns
true if preferences are unique per layout. |
String |
getPreferencesValidator()
Returns the name of the preferences validator class of the portlet.
|
boolean |
getPrivateRequestAttributes()
Returns
true if the portlet does not share request
attributes with the portal or portlets from another WAR. |
boolean |
getPrivateSessionAttributes()
Returns
true if the portlet does not share session
attributes with the portal. |
com.liferay.portal.kernel.xml.QName |
getProcessingEvent(String uri,
String localPart)
Returns the processing event from a namespace URI and a local part.
|
Set<com.liferay.portal.kernel.xml.QName> |
getProcessingEvents()
Returns the processing events of the portlet.
|
com.liferay.portal.kernel.model.PublicRenderParameter |
getPublicRenderParameter(String identifier)
Returns the public render parameter from an identifier.
|
com.liferay.portal.kernel.model.PublicRenderParameter |
getPublicRenderParameter(String uri,
String localPart)
Returns the spublic render parameter from a namespace URI and a local
part.
|
Set<com.liferay.portal.kernel.model.PublicRenderParameter> |
getPublicRenderParameters()
Returns the public render parameters of the portlet.
|
Set<com.liferay.portal.kernel.xml.QName> |
getPublishingEvents()
Returns the publishing events of the portlet.
|
boolean |
getReady()
Returns
true if the portlet is ready to be used. |
boolean |
getRemoteable()
Returns
true if the portlet supports remoting. |
int |
getRenderTimeout()
Returns the render timeout of the portlet.
|
int |
getRenderWeight()
Returns the render weight of the portlet.
|
String |
getResourceBundle()
Returns the resource bundle of the portlet.
|
boolean |
getRestoreCurrentView()
Returns
true if the portlet restores to the current view
from the maximized state. |
Map<String,String> |
getRoleMappers()
Returns the role mappers of the portlet.
|
String[] |
getRolesArray()
Returns an array of required roles of the portlet.
|
com.liferay.portal.kernel.model.Portlet |
getRootPortlet()
Returns the root portlet of this portlet instance.
|
String |
getRootPortletId()
Returns the root portlet ID of the portlet.
|
List<com.liferay.portal.kernel.scheduler.SchedulerEntry> |
getSchedulerEntries()
Returns the scheduler entries of the portlet.
|
boolean |
getScopeable()
Returns
true if the portlet supports scoping of data. |
boolean |
getShowPortletAccessDenied()
Returns
true if users are shown that they do not have access
to the portlet. |
boolean |
getShowPortletInactive()
Returns
true if users are shown that the portlet is
inactive. |
boolean |
getSinglePageApplication()
Returns
true if the portlet uses Single Page Application. |
List<String> |
getSocialActivityInterpreterClasses()
Returns the names of the classes that represent social activity
interpreters associated with the portlet.
|
List<com.liferay.social.kernel.model.SocialActivityInterpreter> |
getSocialActivityInterpreterInstances()
Returns the social activity interpreter instances of the portlet.
|
String |
getSocialRequestInterpreterClass()
Returns the name of the social request interpreter class of the portlet.
|
com.liferay.social.kernel.model.SocialRequestInterpreter |
getSocialRequestInterpreterInstance()
Returns the name of the social request interpreter instance of the
portlet.
|
List<String> |
getStagedModelDataHandlerClasses()
Returns the names of the classes that represent staged model data
handlers associated with the portlet.
|
List<com.liferay.exportimport.kernel.lar.StagedModelDataHandler<?>> |
getStagedModelDataHandlerInstances()
Returns the staged model data handler instances of the portlet.
|
boolean |
getStatic()
Returns
true if the portlet is a static portlet that is
cannot be moved. |
boolean |
getStaticEnd()
Returns
true if the portlet is a static portlet at the end
of a list of portlets. |
String |
getStaticResourcePath()
Returns the path for static resources served by this portlet.
|
boolean |
getStaticStart()
Returns
true if the portlet is a static portlet at the start
of a list of portlets. |
String |
getStrutsPath()
Returns the struts path of the portlet.
|
Set<String> |
getSupportedLocales()
Returns the supported locales of the portlet.
|
boolean |
getSystem()
Returns
true if the portlet is a system portlet that a user
cannot manually add to their page. |
String |
getTemplateHandlerClass()
Returns the name of the template handler class of the portlet.
|
com.liferay.portal.kernel.template.TemplateHandler |
getTemplateHandlerInstance()
Returns the template handler instance of the portlet.
|
long |
getTimestamp()
Returns the timestamp of the portlet.
|
List<String> |
getTrashHandlerClasses()
Returns the names of the classes that represent trash handlers associated
with the portlet.
|
List<com.liferay.portal.kernel.trash.TrashHandler> |
getTrashHandlerInstances()
Returns the trash handler instances of the portlet.
|
boolean |
getUndeployedPortlet()
Returns
true if the portlet is an undeployed portlet. |
Set<String> |
getUnlinkedRoles()
Returns the unlinked roles of the portlet.
|
String |
getURLEncoderClass()
Returns the name of the URL encoder class of the portlet.
|
com.liferay.portal.kernel.servlet.URLEncoder |
getURLEncoderInstance()
Returns the URL encoder instance of the portlet.
|
boolean |
getUseDefaultTemplate()
Returns
true if the portlet uses the default template. |
long |
getUserId()
Returns the user ID of the portlet.
|
String |
getUserNotificationDefinitions()
Returns the class loader resource path to the use notification
definitions of the portlet.
|
List<String> |
getUserNotificationHandlerClasses()
Returns the names of the classes that represent user notification
handlers associated with the portlet.
|
List<com.liferay.portal.kernel.notifications.UserNotificationHandler> |
getUserNotificationHandlerInstances()
Returns the user notification handler instances of the portlet.
|
String |
getUserPrincipalStrategy()
Returns the user principal strategy of the portlet.
|
String |
getVirtualPath()
Returns the virtual path of the portlet.
|
String |
getWebDAVStorageClass()
Returns the name of the WebDAV storage class of the portlet.
|
com.liferay.portal.kernel.webdav.WebDAVStorage |
getWebDAVStorageInstance()
Returns the name of the WebDAV storage instance of the portlet.
|
String |
getWebDAVStorageToken()
Returns the name of the WebDAV storage token of the portlet.
|
Map<String,Set<String>> |
getWindowStates()
Returns the window states of the portlet.
|
List<String> |
getWorkflowHandlerClasses()
Returns the names of the classes that represent workflow handlers
associated with the portlet.
|
List<com.liferay.portal.kernel.workflow.WorkflowHandler<?>> |
getWorkflowHandlerInstances()
Returns the workflow handler instances of the portlet.
|
String |
getXmlRpcMethodClass()
Returns the name of the XML-RPC method class of the portlet.
|
com.liferay.portal.kernel.xmlrpc.Method |
getXmlRpcMethodInstance()
Returns the name of the XML-RPC method instance of the portlet.
|
boolean |
hasAddPortletPermission(long userId)
Returns
true if the user has the permission to add the
portlet to a layout. |
boolean |
hasFooterPortalCss() |
boolean |
hasFooterPortalJavaScript() |
boolean |
hasFooterPortletCss() |
boolean |
hasFooterPortletJavaScript() |
int |
hashCode() |
boolean |
hasHeaderPortalCss() |
boolean |
hasHeaderPortalJavaScript() |
boolean |
hasHeaderPortletCss() |
boolean |
hasHeaderPortletJavaScript() |
boolean |
hasMultipleMimeTypes()
Returns
true if the portlet supports more than one mime
type. |
boolean |
hasPortletMode(String mimeType,
PortletMode portletMode)
Returns
true if the portlet supports the specified mime type
and portlet mode. |
boolean |
hasRoleWithName(String roleName)
Returns
true if the portlet has a role with the specified
name. |
boolean |
hasWindowState(String mimeType,
WindowState windowState)
Returns
true if the portlet supports the specified mime type
and window state. |
boolean |
isActionURLRedirect()
Returns
true if an action URL for this portlet should cause
an auto redirect. |
boolean |
isAddDefaultResource()
Returns
true if default resources for the portlet are added
to a page. |
boolean |
isAjaxable()
Returns
true if the portlet can be displayed via Ajax. |
boolean |
isFullPageDisplayable() |
boolean |
isInclude()
Returns
true to include the portlet and make it available to
be made active. |
boolean |
isInstanceable()
Returns
true if the portlet can be added multiple times to a
layout. |
boolean |
isLayoutCacheable()
Returns
true to allow the portlet to be cached within the
layout. |
boolean |
isMaximizeEdit()
Returns
true if the portlet goes into the maximized state
when the user goes into the edit mode. |
boolean |
isMaximizeHelp()
Returns
true if the portlet goes into the maximized state
when the user goes into the help mode. |
boolean |
isPopUpPrint()
Returns
true if the portlet goes into the pop up state when
the user goes into the print mode. |
boolean |
isPreferencesCompanyWide()
Returns
true if preferences are shared across the entire
company. |
boolean |
isPreferencesOwnedByGroup()
Returns
true if preferences are owned by the group when the
portlet is shown in a group layout. |
boolean |
isPreferencesUniquePerLayout()
Returns
true if preferences are unique per layout. |
boolean |
isPrivateRequestAttributes()
Returns
true if the portlet does not share request
attributes with the portal or portlets from another WAR. |
boolean |
isPrivateSessionAttributes()
Returns
true if the portlet does not share session
attributes with the portal. |
boolean |
isReady()
Returns
true if the portlet is ready to be used. |
boolean |
isRemoteable()
Returns
true if the portlet supports remoting. |
boolean |
isRequiresNamespacedParameters()
Returns
true if the portlet will only process namespaced
parameters. |
boolean |
isRestoreCurrentView()
Returns
true if the portlet restores to the current view
from the maximized state. |
boolean |
isScopeable()
Returns
true if the portlet supports scoping of data. |
boolean |
isShowPortletAccessDenied()
Returns
true if users are shown that they do not have access
to the portlet. |
boolean |
isShowPortletInactive()
Returns
true if users are shown that the portlet is
inactive. |
boolean |
isSinglePageApplication()
Returns
true if the portlet uses Single Page Application. |
boolean |
isStatic()
Returns
true if the portlet is a static portlet that is
cannot be moved. |
boolean |
isStaticEnd()
Returns
true if the portlet is a static portlet at the end
of a list of portlets. |
boolean |
isStaticStart()
Returns
true if the portlet is a static portlet at the start
of a list of portlets. |
boolean |
isSystem()
Returns
true if the portlet is a system portlet that a user
cannot manually add to their page. |
boolean |
isUndeployedPortlet()
Returns
true if the portlet is an undeployed portlet. |
boolean |
isUseDefaultTemplate()
Returns
true if the portlet uses the default template. |
void |
linkRoles()
Link the role names set in portlet.xml with the Liferay roles set in
liferay-portlet.xml.
|
void |
setActionTimeout(int actionTimeout)
Sets the action timeout of the portlet.
|
void |
setActionURLRedirect(boolean actionURLRedirect)
Set to
true if an action URL for this portlet should cause
an auto redirect. |
void |
setAddDefaultResource(boolean addDefaultResource)
Set to
true if default resources for the portlet are added
to a page. |
void |
setAjaxable(boolean ajaxable)
Set to
true if the portlet can be displayed via Ajax. |
void |
setApplicationTypes(Set<com.liferay.portal.kernel.application.type.ApplicationType> applicationTypes)
Sets the application types of the portlet.
|
void |
setAssetRendererFactoryClasses(List<String> assetRendererFactoryClasses)
Sets the names of the classes that represent asset types associated with
the portlet.
|
void |
setAtomCollectionAdapterClasses(List<String> atomCollectionAdapterClasses)
Sets the names of the classes that represent atom collection adapters
associated with the portlet.
|
void |
setAutopropagatedParameters(Set<String> autopropagatedParameters)
Sets the names of the parameters that will be automatically propagated
through the portlet.
|
void |
setConfigurationActionClass(String configurationActionClass)
Sets the configuration action class of the portlet.
|
void |
setControlPanelEntryCategory(String controlPanelEntryCategory)
Set the name of the category of the Control Panel where the portlet will
be shown.
|
void |
setControlPanelEntryClass(String controlPanelEntryClass)
Sets the name of the class that will control when the portlet will be
shown in the Control Panel.
|
void |
setControlPanelEntryWeight(double controlPanelEntryWeight)
Sets the relative weight of the portlet with respect to the other
portlets in the same category of the Control Panel.
|
void |
setCssClassWrapper(String cssClassWrapper)
Sets the name of the CSS class that will be injected in the DIV that
wraps this portlet.
|
void |
setCustomAttributesDisplayClasses(List<String> customAttributesDisplayClasses)
Sets the names of the classes that represent custom attribute displays
associated with the portlet.
|
void |
setDefaultPluginSetting(com.liferay.portal.kernel.model.PluginSetting pluginSetting)
Sets the default plugin settings of the portlet.
|
void |
setDefaultPreferences(String defaultPreferences)
Sets the default preferences of the portlet.
|
void |
setDisplayName(String displayName)
Sets the display name of the portlet.
|
void |
setExpCache(Integer expCache)
Sets expiration cache of the portlet.
|
void |
setFacebookIntegration(String facebookIntegration)
Sets the Facebook integration method of the portlet.
|
void |
setFooterPortalCss(List<String> footerPortalCss)
Sets a list of CSS files that will be referenced from the page's footer
relative to the portal's context path.
|
void |
setFooterPortalJavaScript(List<String> footerPortalJavaScript)
Sets a list of JavaScript files that will be referenced from the page's
footer relative to the portal's context path.
|
void |
setFooterPortletCss(List<String> footerPortletCss)
Sets a list of CSS files that will be referenced from the page's footer
relative to the portlet's context path.
|
void |
setFooterPortletJavaScript(List<String> footerPortletJavaScript)
Sets a list of JavaScript files that will be referenced from the page's
footer relative to the portlet's context path.
|
void |
setFriendlyURLMapperClass(String friendlyURLMapperClass)
Sets the name of the friendly URL mapper class of the portlet.
|
void |
setFriendlyURLMapping(String friendlyURLMapping)
Sets the name of the friendly URL mapping of the portlet.
|
void |
setFriendlyURLRoutes(String friendlyURLRoutes)
Sets the class loader resource path to the friendly URL routes of the
portlet.
|
void |
setHeaderPortalCss(List<String> headerPortalCss)
Sets a list of CSS files that will be referenced from the page's header
relative to the portal's context path.
|
void |
setHeaderPortalJavaScript(List<String> headerPortalJavaScript)
Sets a list of JavaScript files that will be referenced from the page's
header relative to the portal's context path.
|
void |
setHeaderPortletCss(List<String> headerPortletCss)
Sets a list of CSS files that will be referenced from the page's header
relative to the portlet's context path.
|
void |
setHeaderPortletJavaScript(List<String> headerPortletJavaScript)
Sets a list of JavaScript files that will be referenced from the page's
header relative to the portlet's context path.
|
void |
setIcon(String icon)
Sets the icon of the portlet.
|
void |
setInclude(boolean include)
Set to
true to include the portlet and make it available to
be made active. |
void |
setIndexerClasses(List<String> indexerClasses)
Sets the names of the classes that represent indexers associated with the
portlet.
|
void |
setInitParams(Map<String,String> initParams)
Sets the init parameters of the portlet.
|
void |
setInstanceable(boolean instanceable)
Set to
true if the portlet can be added multiple times to a
layout. |
void |
setLayoutCacheable(boolean layoutCacheable)
Set to
true to allow the portlet to be cached within the
layout. |
void |
setMaximizeEdit(boolean maximizeEdit)
Set to
true if the portlet goes into the maximized state
when the user goes into the edit mode. |
void |
setMaximizeHelp(boolean maximizeHelp)
Set to
true if the portlet goes into the maximized state
when the user goes into the help mode. |
void |
setOpenSearchClass(String openSearchClass)
Sets the name of the open search class of the portlet.
|
void |
setParentStrutsPath(String parentStrutsPath)
Sets the parent struts path of the portlet.
|
void |
setPermissionPropagatorClass(String permissionPropagatorClass)
Sets the name of the permission propagator class of the portlet.
|
void |
setPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
Sets this portlet's plugin package.
|
void |
setPollerProcessorClass(String pollerProcessorClass)
Sets the name of the poller processor class of the portlet.
|
void |
setPopMessageListenerClass(String popMessageListenerClass)
Sets the name of the POP message listener class of the portlet.
|
void |
setPopUpPrint(boolean popUpPrint)
Set to
true if the portlet goes into the pop up state when
the user goes into the print mode. |
void |
setPortletApp(com.liferay.portal.kernel.model.PortletApp portletApp)
Sets this portlet's application.
|
void |
setPortletClass(String portletClass)
Sets the name of the portlet class of the portlet.
|
void |
setPortletDataHandlerClass(String portletDataHandlerClass)
Sets the name of the portlet data handler class of the portlet.
|
void |
setPortletFilters(Map<String,com.liferay.portal.kernel.model.PortletFilter> portletFilters)
Sets the filters of the portlet.
|
void |
setPortletId(String portletId) |
void |
setPortletInfo(com.liferay.portal.kernel.model.PortletInfo portletInfo)
Sets the portlet info of the portlet.
|
void |
setPortletLayoutListenerClass(String portletLayoutListenerClass)
Sets the name of the portlet layout listener class of the portlet.
|
void |
setPortletModes(Map<String,Set<String>> portletModes)
Sets the portlet modes of the portlet.
|
void |
setPortletName(String portletName)
Sets the name of the portlet.
|
void |
setPortletURLClass(String portletURLClass)
Sets the name of the portlet URL class of the portlet.
|
void |
setPreferencesCompanyWide(boolean preferencesCompanyWide)
Set to
true if preferences are shared across the entire
company. |
void |
setPreferencesOwnedByGroup(boolean preferencesOwnedByGroup)
Set to
true if preferences are owned by the group when the
portlet is shown in a group layout. |
void |
setPreferencesUniquePerLayout(boolean preferencesUniquePerLayout)
Set to
true if preferences are unique per layout. |
void |
setPreferencesValidator(String preferencesValidator)
Sets the name of the preferences validator class of the portlet.
|
void |
setPrivateRequestAttributes(boolean privateRequestAttributes)
Set to
true if the portlet does not share request attributes
with the portal or portlets from another WAR. |
void |
setPrivateSessionAttributes(boolean privateSessionAttributes)
Set to
true if the portlet does not share session attributes
with the portal. |
void |
setProcessingEvents(Set<com.liferay.portal.kernel.xml.QName> processingEvents)
Sets the processing events of the portlet.
|
void |
setPublicRenderParameters(Set<com.liferay.portal.kernel.model.PublicRenderParameter> publicRenderParameters)
Sets the public render parameters of the portlet.
|
void |
setPublishingEvents(Set<com.liferay.portal.kernel.xml.QName> publishingEvents)
Sets the publishing events of the portlet.
|
void |
setReady(boolean ready)
Set to
true if the portlet is ready to be used. |
void |
setRemoteable(boolean remoteable)
Set to
true if the portlet supports remoting |
void |
setRenderTimeout(int renderTimeout)
Sets the render timeout of the portlet.
|
void |
setRenderWeight(int renderWeight)
Sets the render weight of the portlet.
|
void |
setRequiresNamespacedParameters(boolean requiresNamespacedParameters)
Set to
true if the portlet will only process namespaced
parameters. |
void |
setResourceBundle(String resourceBundle)
Sets the resource bundle of the portlet.
|
void |
setRestoreCurrentView(boolean restoreCurrentView)
Set to
true if the portlet restores to the current view from
the maximized state. |
void |
setRoleMappers(Map<String,String> roleMappers)
Sets the role mappers of the portlet.
|
void |
setRoles(String roles)
Sets a string of ordered comma delimited portlet IDs.
|
void |
setRolesArray(String[] rolesArray)
Sets an array of required roles of the portlet.
|
void |
setSchedulerEntries(List<com.liferay.portal.kernel.scheduler.SchedulerEntry> schedulerEntries)
Sets the scheduler entries of the portlet.
|
void |
setScopeable(boolean scopeable)
Set to
true if the portlet supports scoping of data. |
void |
setShowPortletAccessDenied(boolean showPortletAccessDenied)
Set to
true if users are shown that they do not have access
to the portlet. |
void |
setShowPortletInactive(boolean showPortletInactive)
Set to
true if users are shown that the portlet is inactive. |
void |
setSinglePageApplication(boolean singlePageApplication)
Set to
true if the portlet uses Single Page Application. |
void |
setSocialActivityInterpreterClasses(List<String> socialActivityInterpreterClasses)
Sets the names of the classes that represent social activity interpreters
associated with the portlet.
|
void |
setSocialRequestInterpreterClass(String socialRequestInterpreterClass)
Sets the name of the social request interpreter class of the portlet.
|
void |
setStagedModelDataHandlerClasses(List<String> stagedModelDataHandlerClasses)
Sets the names of the classes that represent staged model data handlers
associated with the portlet.
|
void |
setStatic(boolean staticPortlet)
Set to
true if the portlet is a static portlet that is
cannot be moved. |
void |
setStaticStart(boolean staticPortletStart)
Set to
true if the portlet is a static portlet at the start
of a list of portlets. |
void |
setStrutsPath(String strutsPath)
Sets the struts path of the portlet.
|
void |
setSupportedLocales(Set<String> supportedLocales)
Sets the supported locales of the portlet.
|
void |
setSystem(boolean system)
Set to
true if the portlet is a system portlet that a user
cannot manually add to their page. |
void |
setTemplateHandlerClass(String templateHandlerClass)
Sets the name of the template handler class of the portlet.
|
void |
setTrashHandlerClasses(List<String> trashHandlerClasses)
Sets the names of the classes that represent trash handlers associated to
the portlet.
|
void |
setUndeployedPortlet(boolean undeployedPortlet)
Set to
true if the portlet is an undeployed portlet. |
void |
setUnlinkedRoles(Set<String> unlinkedRoles)
Sets the unlinked roles of the portlet.
|
void |
setURLEncoderClass(String urlEncoderClass)
Sets the name of the URL encoder class of the portlet.
|
void |
setUseDefaultTemplate(boolean useDefaultTemplate)
Set to
true if the portlet uses the default template. |
void |
setUserNotificationDefinitions(String userNotificationDefinitions)
Sets the class loader resource path to the user notification definitions
of the portlet.
|
void |
setUserNotificationHandlerClasses(List<String> userNotificationHandlerClasses)
Sets the names of the classes that represent user notification handlers
associated with the portlet.
|
void |
setUserPrincipalStrategy(String userPrincipalStrategy)
Sets the user principal strategy of the portlet.
|
void |
setVirtualPath(String virtualPath)
Sets the virtual path of the portlet.
|
void |
setWebDAVStorageClass(String webDAVStorageClass)
Sets the name of the WebDAV storage class of the portlet.
|
void |
setWebDAVStorageToken(String webDAVStorageToken)
Sets the name of the WebDAV storage token of the portlet.
|
void |
setWindowStates(Map<String,Set<String>> windowStates)
Sets the window states of the portlet.
|
void |
setWorkflowHandlerClasses(List<String> workflowHandlerClasses)
Sets the names of the classes that represent workflow handlers associated
to the portlet.
|
void |
setXmlRpcMethodClass(String xmlRpcMethodClass)
Sets the name of the XML-RPC method class of the portlet.
|
void |
unsetReady() |
persist
getActive, getColumnBitmask, getCompanyId, getExpandoBridge, getId, getModelAttributes, getModelClass, getModelClassName, getMvccVersion, getOriginalCompanyId, getOriginalPortletId, getPortletId, getPrimaryKey, getPrimaryKeyObj, getRoles, isActive, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setActive, setCompanyId, setExpandoBridgeAttributes, setId, setModelAttributes, setMvccVersion, setPrimaryKey, setPrimaryKeyObj, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
getActive, getCompanyId, getExpandoBridge, getId, getMvccVersion, getPortletId, getPrimaryKey, getPrimaryKeyObj, getRoles, isActive, isCachedModel, isEscapedModel, isNew, setActive, setCachedModel, setCompanyId, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setId, setMvccVersion, setNew, setPrimaryKey, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
public PortletImpl()
public PortletImpl(long companyId, String portletId)
public PortletImpl(String portletId, com.liferay.portal.kernel.model.Portlet rootPortlet, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage, com.liferay.portal.kernel.model.PluginSetting pluginSetting, long companyId, String icon, String virtualPath, String strutsPath, String parentStrutsPath, String portletName, String displayName, String portletClass, String configurationActionClass, List<String> indexerClasses, String openSearchClass, List<com.liferay.portal.kernel.scheduler.SchedulerEntry> schedulerEntries, String portletURLClass, String friendlyURLMapperClass, String friendlyURLMapping, String friendlyURLRoutes, String urlEncoderClass, String portletDataHandlerClass, List<String> stagedModelDataHandlerClasses, String templateHandlerClass, String portletLayoutListenerClass, String pollerProcessorClass, String popMessageListenerClass, List<String> socialActivityInterpreterClasses, String socialRequestInterpreterClass, String userNotificationDefinitions, List<String> userNotificationHandlerClasses, String webDAVStorageToken, String webDAVStorageClass, String xmlRpcMethodClass, String controlPanelEntryCategory, double controlPanelEntryWeight, String controlPanelClass, List<String> assetRendererFactoryClasses, List<String> atomCollectionAdapterClasses, List<String> customAttributesDisplayClasses, String permissionPropagatorClass, List<String> trashHandlerClasses, List<String> workflowHandlerClasses, String defaultPreferences, String preferencesValidator, boolean preferencesCompanyWide, boolean preferencesUniquePerLayout, boolean preferencesOwnedByGroup, boolean useDefaultTemplate, boolean showPortletAccessDenied, boolean showPortletInactive, boolean actionURLRedirect, boolean restoreCurrentView, boolean maximizeEdit, boolean maximizeHelp, boolean popUpPrint, boolean layoutCacheable, boolean instanceable, boolean remoteable, boolean scopeable, boolean singlePageApplication, String userPrincipalStrategy, boolean privateRequestAttributes, boolean privateSessionAttributes, Set<String> autopropagatedParameters, boolean requiresNamespacedParameters, int actionTimeout, int renderTimeout, int renderWeight, boolean ajaxable, List<String> headerPortalCss, List<String> headerPortletCss, List<String> headerPortalJavaScript, List<String> headerPortletJavaScript, List<String> footerPortalCss, List<String> footerPortletCss, List<String> footerPortalJavaScript, List<String> footerPortletJavaScript, String cssClassWrapper, String facebookIntegration, boolean addDefaultResource, String roles, Set<String> unlinkedRoles, Map<String,String> roleMappers, boolean system, boolean active, boolean include, Map<String,String> initParams, Integer expCache, Map<String,Set<String>> portletModes, Map<String,Set<String>> windowStates, Set<String> supportedLocales, String resourceBundle, com.liferay.portal.kernel.model.PortletInfo portletInfo, Map<String,com.liferay.portal.kernel.model.PortletFilter> portletFilters, Set<com.liferay.portal.kernel.xml.QName> processingEvents, Set<com.liferay.portal.kernel.xml.QName> publishingEvents, Set<com.liferay.portal.kernel.model.PublicRenderParameter> publicRenderParameters, com.liferay.portal.kernel.model.PortletApp portletApp)
public void addApplicationType(com.liferay.portal.kernel.application.type.ApplicationType applicationType)
applicationType
- an application typepublic void addProcessingEvent(com.liferay.portal.kernel.xml.QName processingEvent)
public void addPublicRenderParameter(com.liferay.portal.kernel.model.PublicRenderParameter publicRenderParameter)
publicRenderParameter
- a public render parameterpublic void addPublishingEvent(com.liferay.portal.kernel.xml.QName publishingEvent)
public void addSchedulerEntry(com.liferay.portal.kernel.scheduler.SchedulerEntry schedulerEntry)
public Object clone()
clone
in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
clone
in interface com.liferay.portal.kernel.model.PortletModel
clone
in class PortletModelImpl
public int compareTo(com.liferay.portal.kernel.model.Portlet portlet)
compareTo
in interface com.liferay.portal.kernel.model.PortletModel
compareTo
in interface Comparable<com.liferay.portal.kernel.model.Portlet>
compareTo
in class PortletModelImpl
portlet
- the portlet to compare this portlet againstpublic boolean equals(Object obj)
equals
in interface com.liferay.portal.kernel.model.Portlet
equals
in class PortletModelImpl
obj
- the object to compare this portlet againsttrue
if the portlet is equal to the specified objectpublic int getActionTimeout()
public boolean getActionURLRedirect()
true
if an action URL for this portlet should cause
an auto redirect.true
if an action URL for this portlet should cause
an auto redirectpublic boolean getAddDefaultResource()
true
if default resources for the portlet are added
to a page.true
if default resources for the portlet are added
to a pagepublic boolean getAjaxable()
true
if the portlet can be displayed via Ajax.true
if the portlet can be displayed via Ajaxpublic Set<String> getAllPortletModes()
public Set<String> getAllWindowStates()
public Set<com.liferay.portal.kernel.application.type.ApplicationType> getApplicationTypes()
public List<String> getAssetRendererFactoryClasses()
public List<com.liferay.asset.kernel.model.AssetRendererFactory<?>> getAssetRendererFactoryInstances()
public List<String> getAtomCollectionAdapterClasses()
public List<com.liferay.portal.kernel.atom.AtomCollectionAdapter<?>> getAtomCollectionAdapterInstances()
public Set<String> getAutopropagatedParameters()
public com.liferay.portal.kernel.model.Portlet getClonedInstance(String portletId)
true
if the portlet is found in a WAR file.portletId
- the cloned instance portlet IDpublic String getConfigurationActionClass()
public com.liferay.portal.kernel.portlet.ConfigurationAction getConfigurationActionInstance()
public String getContextName()
public String getContextPath()
public String getControlPanelEntryCategory()
public String getControlPanelEntryClass()
public com.liferay.portal.kernel.portlet.ControlPanelEntry getControlPanelEntryInstance()
public double getControlPanelEntryWeight()
public String getCssClassWrapper()
public List<String> getCustomAttributesDisplayClasses()
public List<com.liferay.expando.kernel.model.CustomAttributesDisplay> getCustomAttributesDisplayInstances()
public com.liferay.portal.kernel.model.PluginSetting getDefaultPluginSetting()
public String getDefaultPreferences()
public String getDisplayName()
public Integer getExpCache()
public String getFacebookIntegration()
public List<String> getFooterPortalCss()
public List<String> getFooterPortalJavaScript()
public List<String> getFooterPortletCss()
public List<String> getFooterPortletJavaScript()
public String getFriendlyURLMapperClass()
public com.liferay.portal.kernel.portlet.FriendlyURLMapper getFriendlyURLMapperInstance()
public String getFriendlyURLMapping()
public String getFriendlyURLRoutes()
public List<String> getHeaderPortalCss()
public List<String> getHeaderPortalJavaScript()
public List<String> getHeaderPortletCss()
public List<String> getHeaderPortletJavaScript()
public String getIcon()
public boolean getInclude()
true
to include the portlet and make it available to
be made active.true
to include the portlet and make it available to
be made activepublic List<String> getIndexerClasses()
public List<com.liferay.portal.kernel.search.Indexer<?>> getIndexerInstances()
public Map<String,String> getInitParams()
public boolean getInstanceable()
true
if the portlet can be added multiple times to a
layout.true
if the portlet can be added multiple times to a
layoutpublic String getInstanceId()
public boolean getLayoutCacheable()
true
to allow the portlet to be cached within the
layout.true
if the portlet can be cached within the layoutpublic boolean getMaximizeEdit()
true
if the portlet goes into the maximized state
when the user goes into the edit mode.true
if the portlet goes into the maximized state
when the user goes into the edit modepublic boolean getMaximizeHelp()
true
if the portlet goes into the maximized state
when the user goes into the help mode.true
if the portlet goes into the maximized state
when the user goes into the help modepublic String getOpenSearchClass()
public com.liferay.portal.kernel.search.OpenSearch getOpenSearchInstance()
public String getParentStrutsPath()
public String getPermissionPropagatorClass()
public com.liferay.portal.kernel.security.permission.PermissionPropagator getPermissionPropagatorInstance()
public String getPluginId()
public com.liferay.portal.kernel.plugin.PluginPackage getPluginPackage()
public String getPluginType()
public String getPollerProcessorClass()
public com.liferay.portal.kernel.poller.PollerProcessor getPollerProcessorInstance()
public String getPopMessageListenerClass()
public com.liferay.portal.kernel.pop.MessageListener getPopMessageListenerInstance()
public boolean getPopUpPrint()
true
if the portlet goes into the pop up state when
the user goes into the print mode.true
if the portlet goes into the pop up state when
the user goes into the print modepublic com.liferay.portal.kernel.model.PortletApp getPortletApp()
public String getPortletClass()
public String getPortletDataHandlerClass()
public com.liferay.exportimport.kernel.lar.PortletDataHandler getPortletDataHandlerInstance()
public Map<String,com.liferay.portal.kernel.model.PortletFilter> getPortletFilters()
public com.liferay.portal.kernel.model.PortletInfo getPortletInfo()
public String getPortletLayoutListenerClass()
public com.liferay.portal.kernel.portlet.PortletLayoutListener getPortletLayoutListenerInstance()
public Map<String,Set<String>> getPortletModes()
public String getPortletName()
public String getPortletURLClass()
public boolean getPreferencesCompanyWide()
true
if preferences are shared across the entire
company.true
if preferences are shared across the entire
companypublic boolean getPreferencesOwnedByGroup()
true
if preferences are owned by the group when the
portlet is shown in a group layout. Returns false
if
preferences are owned by the user at all times.true
if preferences are owned by the group when the
portlet is shown in a group layout; false
if
preferences are owned by the user at all times.public boolean getPreferencesUniquePerLayout()
true
if preferences are unique per layout.true
if preferences are unique per layoutpublic String getPreferencesValidator()
public boolean getPrivateRequestAttributes()
true
if the portlet does not share request
attributes with the portal or portlets from another WAR.true
if the portlet does not share request
attributes with the portal or portlets from another WARpublic boolean getPrivateSessionAttributes()
true
if the portlet does not share session
attributes with the portal.true
if the portlet does not share session
attributes with the portalpublic com.liferay.portal.kernel.xml.QName getProcessingEvent(String uri, String localPart)
uri
- the namespace URIlocalPart
- the local partpublic Set<com.liferay.portal.kernel.xml.QName> getProcessingEvents()
public com.liferay.portal.kernel.model.PublicRenderParameter getPublicRenderParameter(String identifier)
identifier
- the identifierpublic com.liferay.portal.kernel.model.PublicRenderParameter getPublicRenderParameter(String uri, String localPart)
uri
- the namespace URIlocalPart
- the local partpublic Set<com.liferay.portal.kernel.model.PublicRenderParameter> getPublicRenderParameters()
public Set<com.liferay.portal.kernel.xml.QName> getPublishingEvents()
public boolean getReady()
true
if the portlet is ready to be used.true
if the portlet is ready to be usedpublic boolean getRemoteable()
true
if the portlet supports remoting.true
if the portlet supports remotingpublic int getRenderTimeout()
public int getRenderWeight()
public String getResourceBundle()
public boolean getRestoreCurrentView()
true
if the portlet restores to the current view
from the maximized state.true
if the portlet restores to the current view
from the maximized statepublic Map<String,String> getRoleMappers()
public String[] getRolesArray()
public com.liferay.portal.kernel.model.Portlet getRootPortlet()
public String getRootPortletId()
public List<com.liferay.portal.kernel.scheduler.SchedulerEntry> getSchedulerEntries()
public boolean getScopeable()
true
if the portlet supports scoping of data.true
if the portlet supports scoping of datapublic boolean getShowPortletAccessDenied()
true
if users are shown that they do not have access
to the portlet.true
if users are shown that they do not have access
to the portletpublic boolean getShowPortletInactive()
true
if users are shown that the portlet is
inactive.true
if users are shown that the portlet is inactivepublic boolean getSinglePageApplication()
true
if the portlet uses Single Page Application.true
if the portlet uses Single Page Applicationpublic List<String> getSocialActivityInterpreterClasses()
public List<com.liferay.social.kernel.model.SocialActivityInterpreter> getSocialActivityInterpreterInstances()
public String getSocialRequestInterpreterClass()
public com.liferay.social.kernel.model.SocialRequestInterpreter getSocialRequestInterpreterInstance()
public List<String> getStagedModelDataHandlerClasses()
public List<com.liferay.exportimport.kernel.lar.StagedModelDataHandler<?>> getStagedModelDataHandlerInstances()
public boolean getStatic()
true
if the portlet is a static portlet that is
cannot be moved.true
if the portlet is a static portlet that is
cannot be movedpublic boolean getStaticEnd()
true
if the portlet is a static portlet at the end
of a list of portlets.true
if the portlet is a static portlet at the end
of a list of portletspublic String getStaticResourcePath()
public boolean getStaticStart()
true
if the portlet is a static portlet at the start
of a list of portlets.true
if the portlet is a static portlet at the start
of a list of portletspublic String getStrutsPath()
public Set<String> getSupportedLocales()
public boolean getSystem()
true
if the portlet is a system portlet that a user
cannot manually add to their page.true
if the portlet is a system portlet that a user
cannot manually add to their pagepublic String getTemplateHandlerClass()
public com.liferay.portal.kernel.template.TemplateHandler getTemplateHandlerInstance()
public long getTimestamp()
public List<String> getTrashHandlerClasses()
public List<com.liferay.portal.kernel.trash.TrashHandler> getTrashHandlerInstances()
public boolean getUndeployedPortlet()
true
if the portlet is an undeployed portlet.true
if the portlet is a placeholder of an
undeployed portletpublic Set<String> getUnlinkedRoles()
public String getURLEncoderClass()
public com.liferay.portal.kernel.servlet.URLEncoder getURLEncoderInstance()
public boolean getUseDefaultTemplate()
true
if the portlet uses the default template.true
if the portlet uses the default templatepublic long getUserId()
public String getUserNotificationDefinitions()
public List<String> getUserNotificationHandlerClasses()
public List<com.liferay.portal.kernel.notifications.UserNotificationHandler> getUserNotificationHandlerInstances()
public String getUserPrincipalStrategy()
public String getVirtualPath()
public String getWebDAVStorageClass()
public com.liferay.portal.kernel.webdav.WebDAVStorage getWebDAVStorageInstance()
public String getWebDAVStorageToken()
public Map<String,Set<String>> getWindowStates()
public List<String> getWorkflowHandlerClasses()
public List<com.liferay.portal.kernel.workflow.WorkflowHandler<?>> getWorkflowHandlerInstances()
public String getXmlRpcMethodClass()
public com.liferay.portal.kernel.xmlrpc.Method getXmlRpcMethodInstance()
public boolean hasAddPortletPermission(long userId)
true
if the user has the permission to add the
portlet to a layout.userId
- the primary key of the usertrue
if the user has the permission to add the
portlet to a layoutpublic boolean hasFooterPortalCss()
public boolean hasFooterPortalJavaScript()
public boolean hasFooterPortletCss()
public boolean hasFooterPortletJavaScript()
public int hashCode()
hashCode
in interface com.liferay.portal.kernel.model.PortletModel
hashCode
in class PortletModelImpl
public boolean hasHeaderPortalCss()
public boolean hasHeaderPortalJavaScript()
public boolean hasHeaderPortletCss()
public boolean hasHeaderPortletJavaScript()
public boolean hasMultipleMimeTypes()
true
if the portlet supports more than one mime
type.true
if the portlet supports more than one mime typepublic boolean hasPortletMode(String mimeType, PortletMode portletMode)
true
if the portlet supports the specified mime type
and portlet mode.mimeType
- the mime typeportletMode
- the portlet modetrue
if the portlet supports the specified mime type
and portlet modepublic boolean hasRoleWithName(String roleName)
true
if the portlet has a role with the specified
name.roleName
- the role nametrue
if the portlet has a role with the specified
namepublic boolean hasWindowState(String mimeType, WindowState windowState)
true
if the portlet supports the specified mime type
and window state.mimeType
- the mime typewindowState
- the window statetrue
if the portlet supports the specified mime type
and window statepublic boolean isActionURLRedirect()
true
if an action URL for this portlet should cause
an auto redirect.true
if an action URL for this portlet should cause
an auto redirectpublic boolean isAddDefaultResource()
true
if default resources for the portlet are added
to a page.true
if default resources for the portlet are added
to a pagepublic boolean isAjaxable()
true
if the portlet can be displayed via Ajax.true
if the portlet can be displayed via Ajaxpublic boolean isFullPageDisplayable()
public boolean isInclude()
true
to include the portlet and make it available to
be made active.true
to include the portlet and make it available to
be made activepublic boolean isInstanceable()
true
if the portlet can be added multiple times to a
layout.true
if the portlet can be added multiple times to a
layoutpublic boolean isLayoutCacheable()
true
to allow the portlet to be cached within the
layout.true
if the portlet can be cached within the layoutpublic boolean isMaximizeEdit()
true
if the portlet goes into the maximized state
when the user goes into the edit mode.true
if the portlet goes into the maximized state
when the user goes into the edit modepublic boolean isMaximizeHelp()
true
if the portlet goes into the maximized state
when the user goes into the help mode.true
if the portlet goes into the maximized state
when the user goes into the help modepublic boolean isPopUpPrint()
true
if the portlet goes into the pop up state when
the user goes into the print mode.true
if the portlet goes into the pop up state when
the user goes into the print modepublic boolean isPreferencesCompanyWide()
true
if preferences are shared across the entire
company.true
if preferences are shared across the entire
companypublic boolean isPreferencesOwnedByGroup()
true
if preferences are owned by the group when the
portlet is shown in a group layout. Returns false
if
preferences are owned by the user at all times.true
if preferences are owned by the group when the
portlet is shown in a group layout; false
if
preferences are owned by the user at all times.public boolean isPreferencesUniquePerLayout()
true
if preferences are unique per layout.true
if preferences are unique per layoutpublic boolean isPrivateRequestAttributes()
true
if the portlet does not share request
attributes with the portal or portlets from another WAR.true
if the portlet does not share request
attributes with the portal or portlets from another WARpublic boolean isPrivateSessionAttributes()
true
if the portlet does not share session
attributes with the portal.true
if the portlet does not share session
attributes with the portalpublic boolean isReady()
true
if the portlet is ready to be used.true
if the portlet is ready to be usedpublic boolean isRemoteable()
true
if the portlet supports remoting.true
if the portlet supports remotingpublic boolean isRequiresNamespacedParameters()
true
if the portlet will only process namespaced
parameters.true
if the portlet will only process namespaced
parameterspublic boolean isRestoreCurrentView()
true
if the portlet restores to the current view
from the maximized state.true
if the portlet restores to the current view
from the maximized statepublic boolean isScopeable()
true
if the portlet supports scoping of data.true
if the portlet supports scoping of datapublic boolean isShowPortletAccessDenied()
true
if users are shown that they do not have access
to the portlet.true
if users are shown that they do not have access
to the portletpublic boolean isShowPortletInactive()
true
if users are shown that the portlet is
inactive.true
if users are shown that the portlet is inactivepublic boolean isSinglePageApplication()
true
if the portlet uses Single Page Application.true
if the portlet uses Single Page Applicationpublic boolean isStatic()
true
if the portlet is a static portlet that is
cannot be moved.true
if the portlet is a static portlet that is
cannot be movedpublic boolean isStaticEnd()
true
if the portlet is a static portlet at the end
of a list of portlets.true
if the portlet is a static portlet at the end
of a list of portletspublic boolean isStaticStart()
true
if the portlet is a static portlet at the start
of a list of portlets.true
if the portlet is a static portlet at the start
of a list of portletspublic boolean isSystem()
true
if the portlet is a system portlet that a user
cannot manually add to their page.true
if the portlet is a system portlet that a user
cannot manually add to their pagepublic boolean isUndeployedPortlet()
true
if the portlet is an undeployed portlet.true
if the portlet is a placeholder of an
undeployed portletpublic boolean isUseDefaultTemplate()
true
if the portlet uses the default template.true
if the portlet uses the default templatepublic void linkRoles()
public void setActionTimeout(int actionTimeout)
actionTimeout
- the action timeout of the portletpublic void setActionURLRedirect(boolean actionURLRedirect)
true
if an action URL for this portlet should cause
an auto redirect.actionURLRedirect
- boolean value for whether an action URL for this
portlet should cause an auto redirectpublic void setAddDefaultResource(boolean addDefaultResource)
true
if default resources for the portlet are added
to a page.addDefaultResource
- boolean value for whether or not default
resources for the portlet are added to a pagepublic void setAjaxable(boolean ajaxable)
true
if the portlet can be displayed via Ajax.ajaxable
- boolean value for whether the portlet can be displayed
via Ajaxpublic void setApplicationTypes(Set<com.liferay.portal.kernel.application.type.ApplicationType> applicationTypes)
applicationTypes
- the application types of the portletpublic void setAssetRendererFactoryClasses(List<String> assetRendererFactoryClasses)
assetRendererFactoryClasses
- the names of the classes that
represent asset types associated with the portletpublic void setAtomCollectionAdapterClasses(List<String> atomCollectionAdapterClasses)
atomCollectionAdapterClasses
- the names of the classes that
represent atom collection adapters associated with the portletpublic void setAutopropagatedParameters(Set<String> autopropagatedParameters)
autopropagatedParameters
- the names of the parameters that will be
automatically propagated through the portletpublic void setConfigurationActionClass(String configurationActionClass)
configurationActionClass
- the configuration action class of the
portletpublic void setControlPanelEntryCategory(String controlPanelEntryCategory)
controlPanelEntryCategory
- the name of the category of the Control
Panel where the portlet will be shownpublic void setControlPanelEntryClass(String controlPanelEntryClass)
controlPanelEntryClass
- the name of the class that will control
when the portlet will be shown in the Control Panelpublic void setControlPanelEntryWeight(double controlPanelEntryWeight)
controlPanelEntryWeight
- the relative weight of the portlet with
respect to the other portlets in the same category of the Control
Panelpublic void setCssClassWrapper(String cssClassWrapper)
cssClassWrapper
- the name of the CSS class that will be injected in
the DIV that wraps this portletpublic void setCustomAttributesDisplayClasses(List<String> customAttributesDisplayClasses)
customAttributesDisplayClasses
- the names of the classes that
represent custom attribute displays associated with the portletpublic void setDefaultPluginSetting(com.liferay.portal.kernel.model.PluginSetting pluginSetting)
pluginSetting
- the plugin settingpublic void setDefaultPreferences(String defaultPreferences)
defaultPreferences
- the default preferences of the portletpublic void setDisplayName(String displayName)
displayName
- the display name of the portletpublic void setExpCache(Integer expCache)
expCache
- expiration cache of the portletpublic void setFacebookIntegration(String facebookIntegration)
facebookIntegration
- the Facebook integration method of the portletpublic void setFooterPortalCss(List<String> footerPortalCss)
footerPortalCss
- a list of CSS files that will be referenced from
the page's footer relative to the portal's context pathpublic void setFooterPortalJavaScript(List<String> footerPortalJavaScript)
footerPortalJavaScript
- a list of JavaScript files that will be
referenced from the page's footer relative to the portal's context
pathpublic void setFooterPortletCss(List<String> footerPortletCss)
footerPortletCss
- a list of CSS files that will be referenced from
the page's footer relative to the portlet's context pathpublic void setFooterPortletJavaScript(List<String> footerPortletJavaScript)
footerPortletJavaScript
- a list of JavaScript files that will be
referenced from the page's footer relative to the portlet's
context pathpublic void setFriendlyURLMapperClass(String friendlyURLMapperClass)
friendlyURLMapperClass
- the name of the friendly URL mapper class
of the portletpublic void setFriendlyURLMapping(String friendlyURLMapping)
friendlyURLMapping
- the name of the friendly URL mapping of the
portletpublic void setFriendlyURLRoutes(String friendlyURLRoutes)
friendlyURLRoutes
- the class loader resource path to the friendly
URL routes of the portletpublic void setHeaderPortalCss(List<String> headerPortalCss)
headerPortalCss
- a list of CSS files that will be referenced from
the page's header relative to the portal's context pathpublic void setHeaderPortalJavaScript(List<String> headerPortalJavaScript)
headerPortalJavaScript
- a list of JavaScript files that will be
referenced from the page's header relative to the portal's context
pathpublic void setHeaderPortletCss(List<String> headerPortletCss)
headerPortletCss
- a list of CSS files that will be referenced from
the page's header relative to the portlet's context pathpublic void setHeaderPortletJavaScript(List<String> headerPortletJavaScript)
headerPortletJavaScript
- a list of JavaScript files that will be
referenced from the page's header relative to the portlet's
context pathpublic void setIcon(String icon)
icon
- the icon of the portletpublic void setInclude(boolean include)
true
to include the portlet and make it available to
be made active.include
- boolean value for whether to include the portlet and make
it available to be made activepublic void setIndexerClasses(List<String> indexerClasses)
indexerClasses
- the names of the classes that represent indexers
associated with the portletpublic void setInitParams(Map<String,String> initParams)
initParams
- the init parameters of the portletpublic void setInstanceable(boolean instanceable)
true
if the portlet can be added multiple times to a
layout.instanceable
- boolean value for whether the portlet can be added
multiple times to a layoutpublic void setLayoutCacheable(boolean layoutCacheable)
true
to allow the portlet to be cached within the
layout.layoutCacheable
- boolean value for whether the portlet can be
cached within the layoutpublic void setMaximizeEdit(boolean maximizeEdit)
true
if the portlet goes into the maximized state
when the user goes into the edit mode.maximizeEdit
- boolean value for whether the portlet goes into the
maximized state when the user goes into the edit modepublic void setMaximizeHelp(boolean maximizeHelp)
true
if the portlet goes into the maximized state
when the user goes into the help mode.maximizeHelp
- boolean value for whether the portlet goes into the
maximized state when the user goes into the help modepublic void setOpenSearchClass(String openSearchClass)
openSearchClass
- the name of the open search class of the portletpublic void setParentStrutsPath(String parentStrutsPath)
parentStrutsPath
- the parent struts path of the portletpublic void setPermissionPropagatorClass(String permissionPropagatorClass)
public void setPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
pluginPackage
- this portlet's plugin packagepublic void setPollerProcessorClass(String pollerProcessorClass)
pollerProcessorClass
- the name of the poller processor class of the
portletpublic void setPopMessageListenerClass(String popMessageListenerClass)
popMessageListenerClass
- the name of the POP message listener class
of the portletpublic void setPopUpPrint(boolean popUpPrint)
true
if the portlet goes into the pop up state when
the user goes into the print mode.popUpPrint
- boolean value for whether the portlet goes into the pop
up state when the user goes into the print modepublic void setPortletApp(com.liferay.portal.kernel.model.PortletApp portletApp)
portletApp
- this portlet's applicationpublic void setPortletClass(String portletClass)
portletClass
- the name of the portlet class of the portletpublic void setPortletDataHandlerClass(String portletDataHandlerClass)
portletDataHandlerClass
- the name of portlet data handler class of
the portletpublic void setPortletFilters(Map<String,com.liferay.portal.kernel.model.PortletFilter> portletFilters)
portletFilters
- the filters of the portletpublic void setPortletId(String portletId)
setPortletId
in interface com.liferay.portal.kernel.model.PortletModel
setPortletId
in class PortletModelImpl
public void setPortletInfo(com.liferay.portal.kernel.model.PortletInfo portletInfo)
portletInfo
- the portlet info of the portletpublic void setPortletLayoutListenerClass(String portletLayoutListenerClass)
portletLayoutListenerClass
- the name of the portlet layout listener
class of the portletpublic void setPortletModes(Map<String,Set<String>> portletModes)
portletModes
- the portlet modes of the portletpublic void setPortletName(String portletName)
portletName
- the name of the portletpublic void setPortletURLClass(String portletURLClass)
portletURLClass
- the name of the portlet URL class of the portletpublic void setPreferencesCompanyWide(boolean preferencesCompanyWide)
true
if preferences are shared across the entire
company.preferencesCompanyWide
- boolean value for whether preferences are
shared across the entire companypublic void setPreferencesOwnedByGroup(boolean preferencesOwnedByGroup)
true
if preferences are owned by the group when the
portlet is shown in a group layout. Set to false
if
preferences are owned by the user at all times.preferencesOwnedByGroup
- boolean value for whether preferences are
owned by the group when the portlet is shown in a group layout or
preferences are owned by the user at all timespublic void setPreferencesUniquePerLayout(boolean preferencesUniquePerLayout)
true
if preferences are unique per layout.preferencesUniquePerLayout
- boolean value for whether preferences
are unique per layoutpublic void setPreferencesValidator(String preferencesValidator)
preferencesValidator
- the name of the preferences validator class
of the portletpublic void setPrivateRequestAttributes(boolean privateRequestAttributes)
true
if the portlet does not share request attributes
with the portal or portlets from another WAR.privateRequestAttributes
- boolean value for whether the portlet
shares request attributes with the portal or portlets from another
WARpublic void setPrivateSessionAttributes(boolean privateSessionAttributes)
true
if the portlet does not share session attributes
with the portal.privateSessionAttributes
- boolean value for whether the portlet
shares session attributes with the portalpublic void setProcessingEvents(Set<com.liferay.portal.kernel.xml.QName> processingEvents)
processingEvents
- the processing events of the portletpublic void setPublicRenderParameters(Set<com.liferay.portal.kernel.model.PublicRenderParameter> publicRenderParameters)
publicRenderParameters
- the public render parameters of the portletpublic void setPublishingEvents(Set<com.liferay.portal.kernel.xml.QName> publishingEvents)
publishingEvents
- the publishing events of the portletpublic void setReady(boolean ready)
true
if the portlet is ready to be used.ready
- whether the portlet is ready to be usedpublic void setRemoteable(boolean remoteable)
true
if the portlet supports remotingremoteable
- boolean value for whether or not the the portlet
supports remotingpublic void setRenderTimeout(int renderTimeout)
renderTimeout
- the render timeout of the portletpublic void setRenderWeight(int renderWeight)
renderWeight
- int value for the render weight of the portletpublic void setRequiresNamespacedParameters(boolean requiresNamespacedParameters)
true
if the portlet will only process namespaced
parameters.requiresNamespacedParameters
- boolean value for whether the portlet
will only process namespaced parameterspublic void setResourceBundle(String resourceBundle)
resourceBundle
- the resource bundle of the portletpublic void setRestoreCurrentView(boolean restoreCurrentView)
true
if the portlet restores to the current view from
the maximized state.restoreCurrentView
- boolean value for whether the portlet restores
to the current view from the maximized statepublic void setRoleMappers(Map<String,String> roleMappers)
roleMappers
- the role mappers of the portletpublic void setRoles(String roles)
setRoles
in interface com.liferay.portal.kernel.model.PortletModel
setRoles
in class PortletModelImpl
roles
- a string of ordered comma delimited portlet IDspublic void setRolesArray(String[] rolesArray)
rolesArray
- an array of required roles of the portletpublic void setSchedulerEntries(List<com.liferay.portal.kernel.scheduler.SchedulerEntry> schedulerEntries)
schedulerEntries
- the scheduler entries of the portletpublic void setScopeable(boolean scopeable)
true
if the portlet supports scoping of data.scopeable
- boolean value for whether or not the the portlet
supports scoping of datapublic void setShowPortletAccessDenied(boolean showPortletAccessDenied)
true
if users are shown that they do not have access
to the portlet.showPortletAccessDenied
- boolean value for whether users are shown
that they do not have access to the portletpublic void setShowPortletInactive(boolean showPortletInactive)
true
if users are shown that the portlet is inactive.showPortletInactive
- boolean value for whether users are shown that
the portlet is inactivepublic void setSinglePageApplication(boolean singlePageApplication)
true
if the portlet uses Single Page Application.singlePageApplication
- boolean value for whether or not the the
portlet uses Single Page Applicationpublic void setSocialActivityInterpreterClasses(List<String> socialActivityInterpreterClasses)
socialActivityInterpreterClasses
- the names of the classes that
represent social activity interpreters associated with the portletpublic void setSocialRequestInterpreterClass(String socialRequestInterpreterClass)
socialRequestInterpreterClass
- the name of the request interpreter
class of the portletpublic void setStagedModelDataHandlerClasses(List<String> stagedModelDataHandlerClasses)
stagedModelDataHandlerClasses
- the names of the classes that
represent staged model data handlers associated with the portletpublic void setStatic(boolean staticPortlet)
true
if the portlet is a static portlet that is
cannot be moved.staticPortlet
- boolean value for whether the portlet is a static
portlet that cannot be movedpublic void setStaticStart(boolean staticPortletStart)
true
if the portlet is a static portlet at the start
of a list of portlets.staticPortletStart
- boolean value for whether the portlet is a
static portlet at the start of a list of portletspublic void setStrutsPath(String strutsPath)
strutsPath
- the struts path of the portletpublic void setSupportedLocales(Set<String> supportedLocales)
supportedLocales
- the supported locales of the portletpublic void setSystem(boolean system)
true
if the portlet is a system portlet that a user
cannot manually add to their page.system
- boolean value for whether the portlet is a system portlet
that a user cannot manually add to their pagepublic void setTemplateHandlerClass(String templateHandlerClass)
templateHandlerClass
- the name of template handler class of the
portletpublic void setTrashHandlerClasses(List<String> trashHandlerClasses)
trashHandlerClasses
- the names of the classes that represent trash
handlers associated with the portletpublic void setUndeployedPortlet(boolean undeployedPortlet)
true
if the portlet is an undeployed portlet.undeployedPortlet
- boolean value for whether the portlet is an
undeployed portletpublic void setUnlinkedRoles(Set<String> unlinkedRoles)
unlinkedRoles
- the unlinked roles of the portletpublic void setURLEncoderClass(String urlEncoderClass)
urlEncoderClass
- the name of the URL encoder class of the portletpublic void setUseDefaultTemplate(boolean useDefaultTemplate)
true
if the portlet uses the default template.useDefaultTemplate
- boolean value for whether the portlet uses the
default templatepublic void setUserNotificationDefinitions(String userNotificationDefinitions)
userNotificationDefinitions
- the class loader resource path to the
user notification definitions of the portletpublic void setUserNotificationHandlerClasses(List<String> userNotificationHandlerClasses)
userNotificationHandlerClasses
- the names of the classes that
represent user notification handlers associated with the portletpublic void setUserPrincipalStrategy(String userPrincipalStrategy)
userPrincipalStrategy
- the user principal strategy of the portletpublic void setVirtualPath(String virtualPath)
virtualPath
- the virtual path of the portletpublic void setWebDAVStorageClass(String webDAVStorageClass)
webDAVStorageClass
- the name of the WebDAV storage class of the
portletpublic void setWebDAVStorageToken(String webDAVStorageToken)
webDAVStorageToken
- the name of the WebDAV storage token of the
portletpublic void setWindowStates(Map<String,Set<String>> windowStates)
windowStates
- the window states of the portletpublic void setWorkflowHandlerClasses(List<String> workflowHandlerClasses)
workflowHandlerClasses
- the names of the classes that represent
workflow handlers associated with the portletpublic void setXmlRpcMethodClass(String xmlRpcMethodClass)
xmlRpcMethodClass
- the name of the XML-RPC method class of the
portletpublic void unsetReady()