Liferay 7.0-ce-b4

com.liferay.portal.service
Class LayoutSetLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.LayoutSetLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, LayoutSetLocalService, PersistedModelLocalService, ServiceWrapper<LayoutSetLocalService>

@ProviderType
public class LayoutSetLocalServiceWrapper
extends Object
implements LayoutSetLocalService, ServiceWrapper<LayoutSetLocalService>

Provides a wrapper for LayoutSetLocalService.

See Also:
LayoutSetLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
LayoutSetLocalServiceWrapper(LayoutSetLocalService layoutSetLocalService)
           
 
Method Summary
 LayoutSet addLayoutSet(LayoutSet layoutSet)
          Adds the layout set to the database.
 LayoutSet addLayoutSet(long groupId, boolean privateLayout)
           
 LayoutSet createLayoutSet(long layoutSetId)
          Creates a new layout set with the primary key.
 LayoutSet deleteLayoutSet(LayoutSet layoutSet)
          Deletes the layout set from the database.
 LayoutSet deleteLayoutSet(long layoutSetId)
          Deletes the layout set with the primary key from the database.
 void deleteLayoutSet(long groupId, boolean privateLayout, ServiceContext serviceContext)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 LayoutSet fetchLayoutSet(long layoutSetId)
           
 LayoutSet fetchLayoutSet(String virtualHostname)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 LayoutSet getLayoutSet(long layoutSetId)
          Returns the layout set with the primary key.
 LayoutSet getLayoutSet(long groupId, boolean privateLayout)
           
 LayoutSet getLayoutSet(String virtualHostname)
           
 List<LayoutSet> getLayoutSets(int start, int end)
          Returns a range of all the layout sets.
 List<LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
           
 int getLayoutSetsCount()
          Returns the number of layout sets.
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 LayoutSetLocalService getWrappedService()
           
 void setWrappedService(LayoutSetLocalService layoutSetLocalService)
           
 LayoutSet updateLayoutSet(LayoutSet layoutSet)
          Updates the layout set in the database or adds it if it does not yet exist.
 void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
          Deprecated. As of 6.1.0, replaced by updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean, String)
 void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid)
          Updates the state of the layout set prototype link.
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, byte[] bytes)
           
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, File file)
           
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, InputStream is)
           
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, InputStream is, boolean cleanUpStream)
           
 LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css, boolean wapTheme)
           
 void updateLookAndFeel(long groupId, String themeId, String colorSchemeId, String css, boolean wapTheme)
           
 LayoutSet updatePageCount(long groupId, boolean privateLayout)
           
 LayoutSet updateSettings(long groupId, boolean privateLayout, String settings)
           
 LayoutSet updateVirtualHost(long groupId, boolean privateLayout, String virtualHostname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutSetLocalServiceWrapper

public LayoutSetLocalServiceWrapper(LayoutSetLocalService layoutSetLocalService)
Method Detail

addLayoutSet

public LayoutSet addLayoutSet(long groupId,
                              boolean privateLayout)
                       throws PortalException
Specified by:
addLayoutSet in interface LayoutSetLocalService
Throws:
PortalException

addLayoutSet

public LayoutSet addLayoutSet(LayoutSet layoutSet)
Adds the layout set to the database. Also notifies the appropriate model listeners.

Specified by:
addLayoutSet in interface LayoutSetLocalService
Parameters:
layoutSet - the layout set
Returns:
the layout set that was added

createLayoutSet

public LayoutSet createLayoutSet(long layoutSetId)
Creates a new layout set with the primary key. Does not add the layout set to the database.

Specified by:
createLayoutSet in interface LayoutSetLocalService
Parameters:
layoutSetId - the primary key for the new layout set
Returns:
the new layout set

deleteLayoutSet

public void deleteLayoutSet(long groupId,
                            boolean privateLayout,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
deleteLayoutSet in interface LayoutSetLocalService
Throws:
PortalException

deleteLayoutSet

public LayoutSet deleteLayoutSet(LayoutSet layoutSet)
Deletes the layout set from the database. Also notifies the appropriate model listeners.

Specified by:
deleteLayoutSet in interface LayoutSetLocalService
Parameters:
layoutSet - the layout set
Returns:
the layout set that was removed

deleteLayoutSet

public LayoutSet deleteLayoutSet(long layoutSetId)
                          throws PortalException
Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteLayoutSet in interface LayoutSetLocalService
Parameters:
layoutSetId - the primary key of the layout set
Returns:
the layout set that was removed
Throws:
PortalException - if a layout set with the primary key could not be found

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface LayoutSetLocalService
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface LayoutSetLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface LayoutSetLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface LayoutSetLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface LayoutSetLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface LayoutSetLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface LayoutSetLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchLayoutSet

public LayoutSet fetchLayoutSet(long layoutSetId)
Specified by:
fetchLayoutSet in interface LayoutSetLocalService

fetchLayoutSet

public LayoutSet fetchLayoutSet(String virtualHostname)
Specified by:
fetchLayoutSet in interface LayoutSetLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface LayoutSetLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface LayoutSetLocalService

getLayoutSet

public LayoutSet getLayoutSet(long groupId,
                              boolean privateLayout)
                       throws PortalException
Specified by:
getLayoutSet in interface LayoutSetLocalService
Throws:
PortalException

getLayoutSet

public LayoutSet getLayoutSet(long layoutSetId)
                       throws PortalException
Returns the layout set with the primary key.

Specified by:
getLayoutSet in interface LayoutSetLocalService
Parameters:
layoutSetId - the primary key of the layout set
Returns:
the layout set
Throws:
PortalException - if a layout set with the primary key could not be found

getLayoutSet

public LayoutSet getLayoutSet(String virtualHostname)
                       throws PortalException
Specified by:
getLayoutSet in interface LayoutSetLocalService
Throws:
PortalException

getLayoutSets

public List<LayoutSet> getLayoutSets(int start,
                                     int end)
Returns a range of all the layout sets.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutSetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getLayoutSets in interface LayoutSetLocalService
Parameters:
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
Returns:
the range of layout sets

getLayoutSetsByLayoutSetPrototypeUuid

public List<LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Specified by:
getLayoutSetsByLayoutSetPrototypeUuid in interface LayoutSetLocalService

getLayoutSetsCount

public int getLayoutSetsCount()
Returns the number of layout sets.

Specified by:
getLayoutSetsCount in interface LayoutSetLocalService
Returns:
the number of layout sets

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface LayoutSetLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface LayoutSetLocalService
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException

updateLayoutSet

public LayoutSet updateLayoutSet(LayoutSet layoutSet)
Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateLayoutSet in interface LayoutSetLocalService
Parameters:
layoutSet - the layout set
Returns:
the layout set that was updated

updateLayoutSetPrototypeLinkEnabled

@Deprecated
public void updateLayoutSetPrototypeLinkEnabled(long groupId,
                                                           boolean privateLayout,
                                                           boolean layoutSetPrototypeLinkEnabled)
                                         throws PortalException
Deprecated. As of 6.1.0, replaced by updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean, String)

Updates the state of the layout set prototype link.

This method can disable the layout set prototype's link by setting layoutSetPrototypeLinkEnabled to false. However, this method can only enable the layout set prototype's link if the layout set prototype's current uuid is not null. Setting the layoutSetPrototypeLinkEnabled to true when the layout set prototype's current uuid is null will have no effect.

Specified by:
updateLayoutSetPrototypeLinkEnabled in interface LayoutSetLocalService
Parameters:
groupId - the primary key of the group
privateLayout - whether the layout set is private to the group
layoutSetPrototypeLinkEnabled - whether the layout set prototype is link enabled
Throws:
PortalException

updateLayoutSetPrototypeLinkEnabled

public void updateLayoutSetPrototypeLinkEnabled(long groupId,
                                                boolean privateLayout,
                                                boolean layoutSetPrototypeLinkEnabled,
                                                String layoutSetPrototypeUuid)
                                         throws PortalException
Updates the state of the layout set prototype link.

Specified by:
updateLayoutSetPrototypeLinkEnabled in interface LayoutSetLocalService
Parameters:
groupId - the primary key of the group
privateLayout - whether the layout set is private to the group
layoutSetPrototypeLinkEnabled - whether the layout set prototype is link enabled
layoutSetPrototypeUuid - the uuid of the layout set prototype to link with
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            byte[] bytes)
                     throws PortalException
Specified by:
updateLogo in interface LayoutSetLocalService
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            File file)
                     throws PortalException
Specified by:
updateLogo in interface LayoutSetLocalService
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            InputStream is)
                     throws PortalException
Specified by:
updateLogo in interface LayoutSetLocalService
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            InputStream is,
                            boolean cleanUpStream)
                     throws PortalException
Specified by:
updateLogo in interface LayoutSetLocalService
Throws:
PortalException

updateLookAndFeel

public LayoutSet updateLookAndFeel(long groupId,
                                   boolean privateLayout,
                                   String themeId,
                                   String colorSchemeId,
                                   String css,
                                   boolean wapTheme)
                            throws PortalException
Specified by:
updateLookAndFeel in interface LayoutSetLocalService
Throws:
PortalException

updateLookAndFeel

public void updateLookAndFeel(long groupId,
                              String themeId,
                              String colorSchemeId,
                              String css,
                              boolean wapTheme)
                       throws PortalException
Specified by:
updateLookAndFeel in interface LayoutSetLocalService
Throws:
PortalException

updatePageCount

public LayoutSet updatePageCount(long groupId,
                                 boolean privateLayout)
                          throws PortalException
Specified by:
updatePageCount in interface LayoutSetLocalService
Throws:
PortalException

updateSettings

public LayoutSet updateSettings(long groupId,
                                boolean privateLayout,
                                String settings)
                         throws PortalException
Specified by:
updateSettings in interface LayoutSetLocalService
Throws:
PortalException

updateVirtualHost

public LayoutSet updateVirtualHost(long groupId,
                                   boolean privateLayout,
                                   String virtualHostname)
                            throws PortalException
Specified by:
updateVirtualHost in interface LayoutSetLocalService
Throws:
PortalException

getWrappedService

public LayoutSetLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<LayoutSetLocalService>

setWrappedService

public void setWrappedService(LayoutSetLocalService layoutSetLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<LayoutSetLocalService>

Liferay 7.0-ce-b4