public class PortletLocalServiceImpl extends PortletLocalServiceBaseImpl
counterLocalService, persistedModelLocalServiceRegistry, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, resourceActionLocalService, resourceActionPersistence, resourceBlockFinder, resourceBlockLocalService, resourceBlockPersistence, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, roleFinder, roleLocalService, rolePersistence
Constructor and Description |
---|
PortletLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addPortletCategory(long companyId,
String categoryName) |
void |
checkPortlet(com.liferay.portal.kernel.model.Portlet portlet) |
void |
checkPortlets(long companyId) |
void |
clearCache() |
void |
clearCompanyPortletsPool()
Deprecated.
As of Wilberforce (7.0.x), replaced by
#clearPortletsMap) |
void |
clearPortletsMap() |
com.liferay.portal.kernel.model.Portlet |
clonePortlet(String portletId) |
void |
deletePortlet(long companyId,
String portletId,
long plid) |
void |
deletePortlets(long companyId,
String[] portletIds,
long plid) |
void |
deployPortlet(com.liferay.portal.kernel.model.Portlet portlet) |
com.liferay.portal.kernel.model.Portlet |
deployRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet,
String categoryName) |
com.liferay.portal.kernel.model.Portlet |
deployRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet,
String[] categoryNames) |
com.liferay.portal.kernel.model.Portlet |
deployRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet,
String[] categoryNames,
boolean eagerDestroy) |
void |
destroyPortlet(com.liferay.portal.kernel.model.Portlet portlet) |
void |
destroyRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet) |
com.liferay.portal.kernel.model.Portlet |
fetchPortletById(long companyId,
String portletId) |
List<com.liferay.expando.kernel.model.CustomAttributesDisplay> |
getCustomAttributesDisplays() |
com.liferay.portal.kernel.model.PortletCategory |
getEARDisplay(String xml) |
List<com.liferay.portal.kernel.model.Portlet> |
getFriendlyURLMapperPortlets() |
List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> |
getFriendlyURLMappers() |
com.liferay.portal.kernel.model.PortletApp |
getPortletApp(String servletContextName) |
com.liferay.portal.kernel.model.Portlet |
getPortletById(long companyId,
String portletId) |
com.liferay.portal.kernel.model.Portlet |
getPortletById(String portletId) |
com.liferay.portal.kernel.model.Portlet |
getPortletByStrutsPath(long companyId,
String strutsPath) |
protected String |
getPortletId(String securityPath) |
List<com.liferay.portal.kernel.model.Portlet> |
getPortlets() |
List<com.liferay.portal.kernel.model.Portlet> |
getPortlets(long companyId) |
List<com.liferay.portal.kernel.model.Portlet> |
getPortlets(long companyId,
boolean showSystem,
boolean showPortal) |
protected List<com.liferay.portal.kernel.model.Portlet> |
getPortletsByPortletName(String portletName,
String servletContextName,
Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap) |
protected List<com.liferay.portal.kernel.model.Portlet> |
getPortletsByServletContextName(String servletContextName,
String portletNamePrefix,
Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap) |
protected Map<String,com.liferay.portal.kernel.model.Portlet> |
getPortletsMap(long companyId) |
List<com.liferay.portal.kernel.model.Portlet> |
getScopablePortlets() |
protected String |
getTriggerValue(com.liferay.portal.kernel.model.Portlet portlet,
String propertyKey) |
com.liferay.portal.kernel.model.PortletCategory |
getWARDisplay(String servletContextName,
String xml) |
boolean |
hasPortlet(long companyId,
String portletId) |
void |
initEAR(javax.servlet.ServletContext servletContext,
String[] xmls,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
protected void |
initPortletAddToPagePermissions(com.liferay.portal.kernel.model.Portlet portlet) |
protected void |
initPortletDefaultPermissions(com.liferay.portal.kernel.model.Portlet portlet) |
protected void |
initPortletModelDefaultPermissions(com.liferay.portal.kernel.model.Portlet portlet) |
protected void |
initPortletRootModelDefaultPermissions(com.liferay.portal.kernel.model.Portlet portlet) |
List<com.liferay.portal.kernel.model.Portlet> |
initWAR(String servletContextName,
javax.servlet.ServletContext servletContext,
String[] xmls,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
Map<String,com.liferay.portal.kernel.model.Portlet> |
loadGetPortletsMap(long companyId) |
Map<String,com.liferay.portal.kernel.model.Portlet> |
loadGetPortletsPool(long companyId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#loadGetPortletsMap(long)) |
protected void |
readLiferayDisplay(String servletContextName,
com.liferay.portal.kernel.xml.Element element,
com.liferay.portal.kernel.model.PortletCategory portletCategory,
Set<String> portletIds) |
protected com.liferay.portal.kernel.model.PortletCategory |
readLiferayDisplayXML(String xml) |
protected com.liferay.portal.kernel.model.PortletCategory |
readLiferayDisplayXML(String servletContextName,
String xml) |
protected void |
readLiferayPortletXML(String servletContextName,
javax.servlet.ServletContext servletContext,
Set<String> liferayPortletIds,
Map<String,String> roleMappers,
com.liferay.portal.kernel.xml.Element portletElement,
Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap,
Map<String,String> portletIdsByStrutsPath) |
protected Set<String> |
readLiferayPortletXML(String servletContextName,
javax.servlet.ServletContext servletContext,
String xml,
Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap,
Map<String,String> portletIdsByStrutsPath) |
protected void |
readPortletXML(String servletContextName,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage,
com.liferay.portal.kernel.model.PortletApp portletApp,
com.liferay.portal.kernel.xml.Element portletElement,
Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap,
Set<String> validCustomPortletModes) |
protected Map<String,com.liferay.portal.kernel.model.Portlet> |
readPortletXML(String servletContextName,
javax.servlet.ServletContext servletContext,
String xml,
Set<String> servletURLPatterns,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
protected Set<String> |
readWebXML(String xml) |
void |
removeCompanyPortletsPool(long companyId) |
protected void |
setSpriteImages(javax.servlet.ServletContext servletContext,
com.liferay.portal.kernel.model.PortletApp portletApp,
String resourcePath) |
protected com.liferay.portal.kernel.model.Portlet |
updatePortlet(long companyId,
String portletId,
String roles) |
com.liferay.portal.kernel.model.Portlet |
updatePortlet(long companyId,
String portletId,
String roles,
boolean active) |
void |
visitPortlets(long companyId,
Consumer<com.liferay.portal.kernel.model.Portlet> consumer) |
addPortlet, afterPropertiesSet, createPortlet, deletePersistedModel, deletePortlet, deletePortlet, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchPortlet, getActionableDynamicQuery, getCounterLocalService, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPortlet, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortlets, getPortletsCount, getResourceActionLocalService, getResourceActionPersistence, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPersistence, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getRoleFinder, getRoleLocalService, getRolePersistence, initActionableDynamicQuery, runSQL, setCounterLocalService, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setResourceActionLocalService, setResourceActionPersistence, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPersistence, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setRoleFinder, setRoleLocalService, setRolePersistence, updatePortlet
@Skip public void addPortletCategory(long companyId, String categoryName)
public void checkPortlet(com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void checkPortlets(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Skip public void clearCache()
@Clusterable @Deprecated @Transactional(enabled=false) public void clearCompanyPortletsPool()
#clearPortletsMap)
@Clusterable @Transactional(enabled=false) public void clearPortletsMap()
@Skip public com.liferay.portal.kernel.model.Portlet clonePortlet(String portletId)
public void deletePortlet(long companyId, String portletId, long plid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deletePortlets(long companyId, String[] portletIds, long plid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Skip public void deployPortlet(com.liferay.portal.kernel.model.Portlet portlet) throws Exception
Exception
public com.liferay.portal.kernel.model.Portlet deployRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet, String categoryName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Portlet deployRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet, String[] categoryNames) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Portlet deployRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet, String[] categoryNames, boolean eagerDestroy) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Skip public void destroyPortlet(com.liferay.portal.kernel.model.Portlet portlet)
@Skip public void destroyRemotePortlet(com.liferay.portal.kernel.model.Portlet portlet)
@Skip public com.liferay.portal.kernel.model.Portlet fetchPortletById(long companyId, String portletId)
@Skip public List<com.liferay.expando.kernel.model.CustomAttributesDisplay> getCustomAttributesDisplays()
@Skip public com.liferay.portal.kernel.model.PortletCategory getEARDisplay(String xml)
@Skip public List<com.liferay.portal.kernel.model.Portlet> getFriendlyURLMapperPortlets()
@Skip public List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers()
@Skip public com.liferay.portal.kernel.model.PortletApp getPortletApp(String servletContextName)
@Skip public com.liferay.portal.kernel.model.Portlet getPortletById(long companyId, String portletId)
@Skip public com.liferay.portal.kernel.model.Portlet getPortletById(String portletId)
@Skip public com.liferay.portal.kernel.model.Portlet getPortletByStrutsPath(long companyId, String strutsPath)
@Skip public List<com.liferay.portal.kernel.model.Portlet> getPortlets()
@Skip public List<com.liferay.portal.kernel.model.Portlet> getPortlets(long companyId)
@Skip public List<com.liferay.portal.kernel.model.Portlet> getPortlets(long companyId, boolean showSystem, boolean showPortal)
@Skip public List<com.liferay.portal.kernel.model.Portlet> getScopablePortlets()
@Skip public com.liferay.portal.kernel.model.PortletCategory getWARDisplay(String servletContextName, String xml)
@Skip public boolean hasPortlet(long companyId, String portletId)
@Skip public void initEAR(javax.servlet.ServletContext servletContext, String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
@Skip public List<com.liferay.portal.kernel.model.Portlet> initWAR(String servletContextName, javax.servlet.ServletContext servletContext, String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
public Map<String,com.liferay.portal.kernel.model.Portlet> loadGetPortletsMap(long companyId)
@Deprecated public Map<String,com.liferay.portal.kernel.model.Portlet> loadGetPortletsPool(long companyId)
#loadGetPortletsMap(long))
@Clusterable @Transactional(enabled=false) public void removeCompanyPortletsPool(long companyId)
public com.liferay.portal.kernel.model.Portlet updatePortlet(long companyId, String portletId, String roles, boolean active)
@Skip public void visitPortlets(long companyId, Consumer<com.liferay.portal.kernel.model.Portlet> consumer)
protected String getPortletId(String securityPath)
protected List<com.liferay.portal.kernel.model.Portlet> getPortletsByPortletName(String portletName, String servletContextName, Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap)
protected List<com.liferay.portal.kernel.model.Portlet> getPortletsByServletContextName(String servletContextName, String portletNamePrefix, Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap)
protected Map<String,com.liferay.portal.kernel.model.Portlet> getPortletsMap(long companyId)
protected String getTriggerValue(com.liferay.portal.kernel.model.Portlet portlet, String propertyKey)
protected void initPortletAddToPagePermissions(com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void initPortletDefaultPermissions(com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void initPortletModelDefaultPermissions(com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void initPortletRootModelDefaultPermissions(com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void readLiferayDisplay(String servletContextName, com.liferay.portal.kernel.xml.Element element, com.liferay.portal.kernel.model.PortletCategory portletCategory, Set<String> portletIds)
protected com.liferay.portal.kernel.model.PortletCategory readLiferayDisplayXML(String xml) throws Exception
Exception
protected com.liferay.portal.kernel.model.PortletCategory readLiferayDisplayXML(String servletContextName, String xml) throws Exception
Exception
protected void readLiferayPortletXML(String servletContextName, javax.servlet.ServletContext servletContext, Set<String> liferayPortletIds, Map<String,String> roleMappers, com.liferay.portal.kernel.xml.Element portletElement, Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap, Map<String,String> portletIdsByStrutsPath)
protected Set<String> readLiferayPortletXML(String servletContextName, javax.servlet.ServletContext servletContext, String xml, Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap, Map<String,String> portletIdsByStrutsPath) throws Exception
Exception
protected void readPortletXML(String servletContextName, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage, com.liferay.portal.kernel.model.PortletApp portletApp, com.liferay.portal.kernel.xml.Element portletElement, Map<String,com.liferay.portal.kernel.model.Portlet> portletsMap, Set<String> validCustomPortletModes) throws com.liferay.portal.kernel.exception.PortletIdException
com.liferay.portal.kernel.exception.PortletIdException
protected Map<String,com.liferay.portal.kernel.model.Portlet> readPortletXML(String servletContextName, javax.servlet.ServletContext servletContext, String xml, Set<String> servletURLPatterns, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) throws Exception
Exception
protected Set<String> readWebXML(String xml) throws Exception
Exception
protected void setSpriteImages(javax.servlet.ServletContext servletContext, com.liferay.portal.kernel.model.PortletApp portletApp, String resourcePath) throws Exception
Exception
protected com.liferay.portal.kernel.model.Portlet updatePortlet(long companyId, String portletId, String roles)