Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class LayoutRevisionLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.LayoutRevisionLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.LayoutRevisionLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, LayoutRevisionLocalService, PersistedModelLocalService

public class LayoutRevisionLocalServiceImpl
extends LayoutRevisionLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.LayoutRevisionLocalServiceBaseImpl
counterLocalService, imageLocalService, imagePersistence, layoutBranchLocalService, layoutBranchPersistence, layoutFinder, layoutLocalService, layoutPersistence, layoutRevisionLocalService, layoutRevisionPersistence, layoutSetBranchLocalService, layoutSetBranchPersistence, layoutSetLocalService, layoutSetPersistence, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, recentLayoutRevisionLocalService, recentLayoutRevisionPersistence, resourceLocalService, userFinder, userLocalService, userPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
LayoutRevisionLocalServiceImpl()
           
 
Method Summary
 LayoutRevision addLayoutRevision(long userId, long layoutSetBranchId, long layoutBranchId, long parentLayoutRevisionId, boolean head, long plid, long portletPreferencesPlid, boolean privateLayout, String name, String title, String description, String keywords, String robots, String typeSettings, boolean iconImage, long iconImageId, String themeId, String colorSchemeId, String wapThemeId, String wapColorSchemeId, String css, ServiceContext serviceContext)
           
protected  void copyPortletPreferences(LayoutRevision layoutRevision, long parentLayoutRevisionId)
           
 void deleteLayoutLayoutRevisions(long plid)
           
 LayoutRevision deleteLayoutRevision(LayoutRevision layoutRevision)
          Deletes the layout revision from the database.
 LayoutRevision deleteLayoutRevision(long layoutRevisionId)
          Deletes the layout revision with the primary key from the database.
 void deleteLayoutRevisions(long layoutSetBranchId, long plid)
           
 void deleteLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid)
           
 void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId)
           
 LayoutRevision fetchLastLayoutRevision(long plid, boolean head)
           
 LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId, long plid)
           
 LayoutRevision fetchLayoutRevision(long layoutSetBranchId, boolean head, long plid)
           
 List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevisionId, long plid)
           
 List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevision, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
           
 int getChildLayoutRevisionsCount(long layoutSetBranchId, long parentLayoutRevision, long plid)
           
 LayoutRevision getLayoutRevision(long layoutSetBranchId, long plid, boolean head)
           
 LayoutRevision getLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid)
           
 List<LayoutRevision> getLayoutRevisions(long plid)
           
 List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head)
           
 List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, int status)
           
 List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid)
           
 List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int status)
           
 List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
           
 List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
           
 int getLayoutRevisionsCount(long layoutSetBranchId, long layoutBranchId, long plid)
           
protected  long getParentLayoutRevisionId(long layoutSetBranchId, long parentLayoutRevisionId, long plid)
           
protected  boolean isWorkflowEnabled(long plid)
           
 LayoutRevision updateLayoutRevision(long userId, long layoutRevisionId, long layoutBranchId, String name, String title, String description, String keywords, String robots, String typeSettings, boolean iconImage, long iconImageId, String themeId, String colorSchemeId, String wapThemeId, String wapColorSchemeId, String css, ServiceContext serviceContext)
           
protected  LayoutRevision updateMajor(LayoutRevision layoutRevision)
           
 LayoutRevision updateStatus(long userId, long layoutRevisionId, int status, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portal.service.base.LayoutRevisionLocalServiceBaseImpl
addLayoutRevision, afterPropertiesSet, createLayoutRevision, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchLayoutRevision, getActionableDynamicQuery, getCounterLocalService, getImageLocalService, getImagePersistence, getIndexableActionableDynamicQuery, getLayoutBranchLocalService, getLayoutBranchPersistence, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutRevision, getLayoutRevisionLocalService, getLayoutRevisionPersistence, getLayoutRevisions, getLayoutRevisionsCount, getLayoutSetBranchLocalService, getLayoutSetBranchPersistence, getLayoutSetLocalService, getLayoutSetPersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getRecentLayoutRevisionLocalService, getRecentLayoutRevisionPersistence, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setCounterLocalService, setImageLocalService, setImagePersistence, setLayoutBranchLocalService, setLayoutBranchPersistence, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutRevisionLocalService, setLayoutRevisionPersistence, setLayoutSetBranchLocalService, setLayoutSetBranchPersistence, setLayoutSetLocalService, setLayoutSetPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setRecentLayoutRevisionLocalService, setRecentLayoutRevisionPersistence, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateLayoutRevision
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutRevisionLocalServiceImpl

public LayoutRevisionLocalServiceImpl()
Method Detail

addLayoutRevision

public LayoutRevision addLayoutRevision(long userId,
                                        long layoutSetBranchId,
                                        long layoutBranchId,
                                        long parentLayoutRevisionId,
                                        boolean head,
                                        long plid,
                                        long portletPreferencesPlid,
                                        boolean privateLayout,
                                        String name,
                                        String title,
                                        String description,
                                        String keywords,
                                        String robots,
                                        String typeSettings,
                                        boolean iconImage,
                                        long iconImageId,
                                        String themeId,
                                        String colorSchemeId,
                                        String wapThemeId,
                                        String wapColorSchemeId,
                                        String css,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

deleteLayoutLayoutRevisions

public void deleteLayoutLayoutRevisions(long plid)
                                 throws PortalException
Throws:
PortalException

deleteLayoutRevision

public LayoutRevision deleteLayoutRevision(LayoutRevision layoutRevision)
                                    throws PortalException
Description copied from class: LayoutRevisionLocalServiceBaseImpl
Deletes the layout revision from the database. Also notifies the appropriate model listeners.

Specified by:
deleteLayoutRevision in interface LayoutRevisionLocalService
Overrides:
deleteLayoutRevision in class LayoutRevisionLocalServiceBaseImpl
Parameters:
layoutRevision - the layout revision
Returns:
the layout revision that was removed
Throws:
PortalException

deleteLayoutRevision

public LayoutRevision deleteLayoutRevision(long layoutRevisionId)
                                    throws PortalException
Description copied from class: LayoutRevisionLocalServiceBaseImpl
Deletes the layout revision with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteLayoutRevision in interface LayoutRevisionLocalService
Overrides:
deleteLayoutRevision in class LayoutRevisionLocalServiceBaseImpl
Parameters:
layoutRevisionId - the primary key of the layout revision
Returns:
the layout revision that was removed
Throws:
PortalException - if a layout revision with the primary key could not be found

deleteLayoutRevisions

public void deleteLayoutRevisions(long layoutSetBranchId,
                                  long plid)
                           throws PortalException
Throws:
PortalException

deleteLayoutRevisions

public void deleteLayoutRevisions(long layoutSetBranchId,
                                  long layoutBranchId,
                                  long plid)
                           throws PortalException
Throws:
PortalException

deleteLayoutSetBranchLayoutRevisions

public void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId)
                                          throws PortalException
Throws:
PortalException

fetchLastLayoutRevision

public LayoutRevision fetchLastLayoutRevision(long plid,
                                              boolean head)

fetchLatestLayoutRevision

public LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId,
                                                long plid)

fetchLayoutRevision

public LayoutRevision fetchLayoutRevision(long layoutSetBranchId,
                                          boolean head,
                                          long plid)

getChildLayoutRevisions

public List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId,
                                                    long parentLayoutRevisionId,
                                                    long plid)

getChildLayoutRevisions

public List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId,
                                                    long parentLayoutRevision,
                                                    long plid,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<LayoutRevision> orderByComparator)

getChildLayoutRevisionsCount

public int getChildLayoutRevisionsCount(long layoutSetBranchId,
                                        long parentLayoutRevision,
                                        long plid)

getLayoutRevision

public LayoutRevision getLayoutRevision(long layoutSetBranchId,
                                        long plid,
                                        boolean head)
                                 throws PortalException
Throws:
PortalException

getLayoutRevision

public LayoutRevision getLayoutRevision(long layoutSetBranchId,
                                        long layoutBranchId,
                                        long plid)
                                 throws PortalException
Throws:
PortalException

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long plid)

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId,
                                               boolean head)

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId,
                                               int status)

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId,
                                               long plid)

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId,
                                               long plid,
                                               int status)

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId,
                                               long plid,
                                               int start,
                                               int end,
                                               OrderByComparator<LayoutRevision> orderByComparator)

getLayoutRevisions

public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId,
                                               long layoutBranchId,
                                               long plid,
                                               int start,
                                               int end,
                                               OrderByComparator<LayoutRevision> orderByComparator)

getLayoutRevisionsCount

public int getLayoutRevisionsCount(long layoutSetBranchId,
                                   long layoutBranchId,
                                   long plid)

updateLayoutRevision

public LayoutRevision updateLayoutRevision(long userId,
                                           long layoutRevisionId,
                                           long layoutBranchId,
                                           String name,
                                           String title,
                                           String description,
                                           String keywords,
                                           String robots,
                                           String typeSettings,
                                           boolean iconImage,
                                           long iconImageId,
                                           String themeId,
                                           String colorSchemeId,
                                           String wapThemeId,
                                           String wapColorSchemeId,
                                           String css,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException

updateStatus

public LayoutRevision updateStatus(long userId,
                                   long layoutRevisionId,
                                   int status,
                                   ServiceContext serviceContext)
                            throws PortalException
Throws:
PortalException

copyPortletPreferences

protected void copyPortletPreferences(LayoutRevision layoutRevision,
                                      long parentLayoutRevisionId)

getParentLayoutRevisionId

protected long getParentLayoutRevisionId(long layoutSetBranchId,
                                         long parentLayoutRevisionId,
                                         long plid)

isWorkflowEnabled

protected boolean isWorkflowEnabled(long plid)
                             throws PortalException
Throws:
PortalException

updateMajor

protected LayoutRevision updateMajor(LayoutRevision layoutRevision)
                              throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4