Class PortletPreferencesLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.PortletPreferencesLocalServiceBaseImpl
com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.PortletPreferences>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.PortletPreferencesLocalService

public class PortletPreferencesLocalServiceImpl extends PortletPreferencesLocalServiceBaseImpl
Author:
Brian Wing Shun Chan, Shuyang Zhou
  • Constructor Details

    • PortletPreferencesLocalServiceImpl

      public PortletPreferencesLocalServiceImpl()
  • Method Details

    • addPortletPreferences

      public com.liferay.portal.kernel.model.PortletPreferences addPortletPreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, com.liferay.portal.kernel.model.Portlet portlet, String defaultPreferences)
    • deletePortletPreferences

      public com.liferay.portal.kernel.model.PortletPreferences deletePortletPreferences(long portletPreferencesId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: PortletPreferencesLocalServiceBaseImpl
      Deletes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect PortletPreferencesLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deletePortletPreferences in interface com.liferay.portal.kernel.service.PortletPreferencesLocalService
      Overrides:
      deletePortletPreferences in class PortletPreferencesLocalServiceBaseImpl
      Parameters:
      portletPreferencesId - the primary key of the portlet preferences
      Returns:
      the portlet preferences that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a portlet preferences with the primary key could not be found
    • deletePortletPreferences

      public void deletePortletPreferences(long ownerId, int ownerType, long plid)
    • deletePortletPreferences

      public void deletePortletPreferences(long ownerId, int ownerType, long plid, String portletId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePortletPreferences

      public com.liferay.portal.kernel.model.PortletPreferences deletePortletPreferences(com.liferay.portal.kernel.model.PortletPreferences portletPreferences)
      Description copied from class: PortletPreferencesLocalServiceBaseImpl
      Deletes the portlet preferences from the database. Also notifies the appropriate model listeners.

      Important: Inspect PortletPreferencesLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deletePortletPreferences in interface com.liferay.portal.kernel.service.PortletPreferencesLocalService
      Overrides:
      deletePortletPreferences in class PortletPreferencesLocalServiceBaseImpl
      Parameters:
      portletPreferences - the portlet preferences
      Returns:
      the portlet preferences that was removed
    • deletePortletPreferencesByOwnerId

      public void deletePortletPreferencesByOwnerId(long ownerId)
    • deletePortletPreferencesByPlid

      public void deletePortletPreferencesByPlid(long plid)
    • fetchPortletPreferences

      public com.liferay.portal.kernel.model.PortletPreferences fetchPortletPreferences(long ownerId, int ownerType, long plid, String portletId)
    • fetchPreferences

      public PortletPreferences fetchPreferences(long companyId, long ownerId, int ownerType, long plid, String portletId)
    • fetchPreferences

      public PortletPreferences fetchPreferences(com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds)
    • getDefaultPreferences

      @Transactional(enabled=false) public PortletPreferences getDefaultPreferences(long companyId, String portletId)
    • getPortletInstanceSettings

      public com.liferay.portal.kernel.settings.Settings getPortletInstanceSettings(long companyId, long groupId, String portletId, com.liferay.portal.kernel.settings.PortletInstanceSettingsLocator portletInstanceSettingsLocator, com.liferay.portal.kernel.settings.Settings portalPreferencesSettings)
    • getPortletPreferences

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences()
    • getPortletPreferences

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(int ownerType, long plid, String portletId)
    • getPortletPreferences

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(long ownerId, int ownerType, long plid)
    • getPortletPreferences

      public com.liferay.portal.kernel.model.PortletPreferences getPortletPreferences(long ownerId, int ownerType, long plid, String portletId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPortletPreferences

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(long companyId, long ownerId, int ownerType, String portletId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPortletPreferences

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout)
    • getPortletPreferences

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(long plid, String portletId)
    • getPortletPreferencesByOwnerId

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferencesByOwnerId(long ownerId)
    • getPortletPreferencesByPlid

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferencesByPlid(long plid)
    • getPortletPreferencesByPortletId

      public List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferencesByPortletId(String portletId)
    • getPortletPreferencesCount

      public long getPortletPreferencesCount(int ownerType, long plid, String portletId)
    • getPortletPreferencesCount

      public long getPortletPreferencesCount(int ownerType, String portletId)
    • getPortletPreferencesCount

      public long getPortletPreferencesCount(long ownerId, int ownerType, long plid, com.liferay.portal.kernel.model.Portlet portlet, boolean excludeDefaultPreferences)
    • getPortletPreferencesCount

      public long getPortletPreferencesCount(long ownerId, int ownerType, String portletId, boolean excludeDefaultPreferences)
    • getPortletPreferencesCount

      public int getPortletPreferencesCount(long companyId, long ownerId, int ownerType, String portletId)
    • getPreferences

      @Retry(acceptor=com.liferay.portal.kernel.service.SQLStateAcceptor.class, properties=@Property(name="SQLSTATE",value="23")) public PortletPreferences getPreferences(long companyId, long ownerId, int ownerType, long plid, String portletId)
    • getPreferences

      @Retry(acceptor=com.liferay.portal.kernel.service.SQLStateAcceptor.class, properties=@Property(name="SQLSTATE",value="23")) public PortletPreferences getPreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences)
    • getPreferences

      @Retry(acceptor=com.liferay.portal.kernel.service.SQLStateAcceptor.class, properties=@Property(name="SQLSTATE",value="23")) public PortletPreferences getPreferences(com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds)
    • getStrictPreferences

      public Map<String,PortletPreferences> getStrictPreferences(com.liferay.portal.kernel.model.Layout layout, List<com.liferay.portal.kernel.model.Portlet> portlets)
    • getStrictPreferences

      public PortletPreferences getStrictPreferences(long companyId, long ownerId, int ownerType, long plid, String portletId)
    • getStrictPreferences

      public PortletPreferences getStrictPreferences(com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds)
    • updatePreferences

      public com.liferay.portal.kernel.model.PortletPreferences updatePreferences(long ownerId, int ownerType, long plid, String portletId, PortletPreferences portletPreferences)
    • updatePreferences

      public com.liferay.portal.kernel.model.PortletPreferences updatePreferences(long ownerId, int ownerType, long plid, String portletId, String xml)