com.liferay.portal.service.persistence
Class LayoutUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.LayoutUtil

public class LayoutUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
LayoutUtil()
           
 
Method Summary
static int countAll()
           
static int countByDLF(long dlFolderId)
           
static int countByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
static int countByG_P(long groupId, boolean privateLayout)
           
static com.liferay.portal.model.Layout create(long plid)
           
static com.liferay.portal.model.Layout fetchByDLF(long dlFolderId)
           
static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout findByDLF(long dlFolderId)
           
static com.liferay.portal.model.Layout findByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static com.liferay.portal.model.Layout findByG_P_First(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static com.liferay.portal.model.Layout findByG_P_Last(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout findByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout findByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
static java.util.List findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int begin, int end)
           
static java.util.List findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByG_P(long groupId, boolean privateLayout)
           
static java.util.List findByG_P(long groupId, boolean privateLayout, int begin, int end)
           
static java.util.List findByG_P(long groupId, boolean privateLayout, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Layout findByPrimaryKey(long plid)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static LayoutPersistence getPersistence()
           
static com.liferay.portal.model.Layout remove(com.liferay.portal.model.Layout layout)
           
static com.liferay.portal.model.Layout remove(long plid)
           
static void removeAll()
           
static void removeByDLF(long dlFolderId)
           
static void removeByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
static void removeByG_P(long groupId, boolean privateLayout)
           
 void setPersistence(LayoutPersistence persistence)
           
static com.liferay.portal.model.Layout update(com.liferay.portal.model.Layout layout)
           
static com.liferay.portal.model.Layout update(com.liferay.portal.model.Layout layout, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtil

public LayoutUtil()
Method Detail

create

public static com.liferay.portal.model.Layout create(long plid)

remove

public static com.liferay.portal.model.Layout remove(long plid)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

remove

public static com.liferay.portal.model.Layout remove(com.liferay.portal.model.Layout layout)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Layout update(com.liferay.portal.model.Layout layout)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Layout update(com.liferay.portal.model.Layout layout,
                                                     boolean merge)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portal.model.Layout findByPrimaryKey(long plid)
                                                        throws com.liferay.portal.SystemException,
                                                               com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

fetchByPrimaryKey

public static com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByDLF

public static com.liferay.portal.model.Layout findByDLF(long dlFolderId)
                                                 throws com.liferay.portal.SystemException,
                                                        com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

fetchByDLF

public static com.liferay.portal.model.Layout fetchByDLF(long dlFolderId)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

public static java.util.List findByG_P(long groupId,
                                       boolean privateLayout)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

public static java.util.List findByG_P(long groupId,
                                       boolean privateLayout,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

public static java.util.List findByG_P(long groupId,
                                       boolean privateLayout,
                                       int begin,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_First

public static com.liferay.portal.model.Layout findByG_P_First(long groupId,
                                                              boolean privateLayout,
                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                       throws com.liferay.portal.SystemException,
                                                              com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

findByG_P_Last

public static com.liferay.portal.model.Layout findByG_P_Last(long groupId,
                                                             boolean privateLayout,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      throws com.liferay.portal.SystemException,
                                                             com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

findByG_P_PrevAndNext

public static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
                                                                      long groupId,
                                                                      boolean privateLayout,
                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                               throws com.liferay.portal.SystemException,
                                                                      com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

findByG_P_L

public static com.liferay.portal.model.Layout findByG_P_L(long groupId,
                                                          boolean privateLayout,
                                                          long layoutId)
                                                   throws com.liferay.portal.SystemException,
                                                          com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

fetchByG_P_L

public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
                                                           boolean privateLayout,
                                                           long layoutId)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P

public static java.util.List findByG_P_P(long groupId,
                                         boolean privateLayout,
                                         long parentLayoutId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P

public static java.util.List findByG_P_P(long groupId,
                                         boolean privateLayout,
                                         long parentLayoutId,
                                         int begin,
                                         int end)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P

public static java.util.List findByG_P_P(long groupId,
                                         boolean privateLayout,
                                         long parentLayoutId,
                                         int begin,
                                         int end,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P_First

public static com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
                                                                boolean privateLayout,
                                                                long parentLayoutId,
                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                         throws com.liferay.portal.SystemException,
                                                                com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

findByG_P_P_Last

public static com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
                                                               boolean privateLayout,
                                                               long parentLayoutId,
                                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                                        throws com.liferay.portal.SystemException,
                                                               com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

findByG_P_P_PrevAndNext

public static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(long plid,
                                                                        long groupId,
                                                                        boolean privateLayout,
                                                                        long parentLayoutId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                 throws com.liferay.portal.SystemException,
                                                                        com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

findByG_P_F

public static com.liferay.portal.model.Layout findByG_P_F(long groupId,
                                                          boolean privateLayout,
                                                          java.lang.String friendlyURL)
                                                   throws com.liferay.portal.SystemException,
                                                          com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

fetchByG_P_F

public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
                                                           boolean privateLayout,
                                                           java.lang.String friendlyURL)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByDLF

public static void removeByDLF(long dlFolderId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

removeByG_P

public static void removeByG_P(long groupId,
                               boolean privateLayout)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P_L

public static void removeByG_P_L(long groupId,
                                 boolean privateLayout,
                                 long layoutId)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

removeByG_P_P

public static void removeByG_P_P(long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P_F

public static void removeByG_P_F(long groupId,
                                 boolean privateLayout,
                                 java.lang.String friendlyURL)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchLayoutException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByDLF

public static int countByDLF(long dlFolderId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P

public static int countByG_P(long groupId,
                             boolean privateLayout)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_L

public static int countByG_P_L(long groupId,
                               boolean privateLayout,
                               long layoutId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_P

public static int countByG_P_P(long groupId,
                               boolean privateLayout,
                               long parentLayoutId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_F

public static int countByG_P_F(long groupId,
                               boolean privateLayout,
                               java.lang.String friendlyURL)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static LayoutPersistence getPersistence()

setPersistence

public void setPersistence(LayoutPersistence persistence)