Class PortletInstanceService

java.lang.Object
io.meeds.layout.service.PortletInstanceService

@Service public class PortletInstanceService extends Object
  • Field Details

  • Constructor Details

    • PortletInstanceService

      public PortletInstanceService()
  • Method Details

    • addPortletInstancePreferencePlugin

      public void addPortletInstancePreferencePlugin(PortletInstancePreferencePlugin plugin)
    • removePortletInstancePreferencePlugin

      public void removePortletInstancePreferencePlugin(String portletName)
    • getPortletInstances

      public List<PortletInstance> getPortletInstances(long categoryId, String username, Locale locale, boolean expand)
    • getPortletInstanceCategories

      public List<PortletInstanceCategory> getPortletInstanceCategories()
    • getPortletInstanceCategories

      public List<PortletInstanceCategory> getPortletInstanceCategories(String username, Locale locale, boolean expand)
    • getPortletInstance

      public PortletInstance getPortletInstance(long id, String username, Locale locale, boolean expand) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getPortletInstanceCategory

      public PortletInstanceCategory getPortletInstanceCategory(long id)
    • getPortletInstanceCategory

      public PortletInstanceCategory getPortletInstanceCategory(long id, String username, Locale locale, boolean expand) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getPortletInstance

      public PortletInstance getPortletInstance(long id)
    • createPortletInstance

      public PortletInstance createPortletInstance(PortletInstance portletInstance, String username) throws IllegalAccessException
      Throws:
      IllegalAccessException
    • createPortletInstance

      public PortletInstance createPortletInstance(PortletInstance portletInstance)
    • createPortletInstanceCategory

      public PortletInstanceCategory createPortletInstanceCategory(PortletInstanceCategory portletInstanceCategory, String username) throws IllegalAccessException
      Throws:
      IllegalAccessException
    • createPortletInstanceCategory

      public PortletInstanceCategory createPortletInstanceCategory(PortletInstanceCategory category)
    • deletePortletInstance

      public void deletePortletInstance(long id, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deletePortletInstance

      public void deletePortletInstance(long id) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deletePortletInstanceCategory

      public void deletePortletInstanceCategory(long id, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deletePortletInstanceCategory

      public void deletePortletInstanceCategory(long id) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • updatePortletInstance

      public PortletInstance updatePortletInstance(PortletInstance portletInstance, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updatePortletInstance

      public PortletInstance updatePortletInstance(PortletInstance portletInstance) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • updatePortletInstanceCategory

      public PortletInstanceCategory updatePortletInstanceCategory(PortletInstanceCategory portletInstanceCategory, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updatePortletInstanceCategory

      public PortletInstanceCategory updatePortletInstanceCategory(PortletInstanceCategory portletInstanceCategory) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getPortletInstanceApplication

      public org.exoplatform.portal.config.model.Application getPortletInstanceApplication(long portletInstanceId, long applicationStorageId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getPortletInstancePreferences

      public List<PortletInstancePreference> getPortletInstancePreferences(long portletInstanceId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getApplicationPreferences

      public List<PortletInstancePreference> getApplicationPreferences(long applicationId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getApplicationPortletInstanceId

      public long getApplicationPortletInstanceId(long applicationId)
    • getPortletInstanceApplicationId

      public long getPortletInstanceApplicationId(long portletInstanceId)
    • getPortletInstances

      public List<PortletInstance> getPortletInstances()
    • exportApplicationPreferences

      public void exportApplicationPreferences(org.exoplatform.portal.config.model.Application application)
    • getApplicationPortletPreferences

      public org.exoplatform.portal.pom.spi.portlet.Portlet getApplicationPortletPreferences(org.exoplatform.portal.config.model.Application application)
    • expandPortletPreferences

      public void expandPortletPreferences(org.exoplatform.portal.config.model.Application application)