Liferay 6.1.2-ce-ga3

com.liferay.portal.service
Class LayoutSetLocalServiceWrapper

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

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

This class is a wrapper for LayoutSetLocalService.

See Also:
LayoutSetLocalService

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)
           
 DynamicQuery dynamicQuery()
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator 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 that match the dynamic query.
 LayoutSet fetchLayoutSet(long layoutSetId)
           
 LayoutSet fetchLayoutSet(String virtualHostname)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 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.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 LayoutSetLocalService getWrappedLayoutSetLocalService()
          Deprecated. Renamed to getWrappedService()
 LayoutSetLocalService getWrappedService()
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedLayoutSetLocalService(LayoutSetLocalService layoutSetLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portal.service.LayoutSetLocalService)
 void setWrappedService(LayoutSetLocalService layoutSetLocalService)
           
 LayoutSet updateLayoutSet(LayoutSet layoutSet)
          Updates the layout set in the database or adds it if it does not yet exist.
 LayoutSet updateLayoutSet(LayoutSet layoutSet, boolean merge)
          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, 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(LayoutSet layoutSet)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

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 LayoutSet deleteLayoutSet(long layoutSetId)
                          throws PortalException,
                                 SystemException
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
SystemException - if a system exception occurred

deleteLayoutSet

public LayoutSet deleteLayoutSet(LayoutSet layoutSet)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface LayoutSetLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchLayoutSet

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

getLayoutSet

public LayoutSet getLayoutSet(long layoutSetId)
                       throws PortalException,
                              SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getLayoutSets

public List<LayoutSet> getLayoutSets(int start,
                                     int end)
                              throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

getLayoutSetsCount

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

Specified by:
getLayoutSetsCount in interface LayoutSetLocalService
Returns:
the number of layout sets
Throws:
SystemException - if a system exception occurred

updateLayoutSet

public LayoutSet updateLayoutSet(LayoutSet layoutSet)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

updateLayoutSet

public LayoutSet updateLayoutSet(LayoutSet layoutSet,
                                 boolean merge)
                          throws SystemException
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
merge - whether to merge the layout set with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the layout set that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface LayoutSetLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface LayoutSetLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addLayoutSet

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

deleteLayoutSet

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

fetchLayoutSet

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

getLayoutSet

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

getLayoutSet

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

getLayoutSetsByLayoutSetPrototypeUuid

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

updateLayoutSetPrototypeLinkEnabled

public void updateLayoutSetPrototypeLinkEnabled(long groupId,
                                                boolean privateLayout,
                                                boolean layoutSetPrototypeLinkEnabled)
                                         throws PortalException,
                                                SystemException
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 - if a portal exception occurred
SystemException - if a system exception occurred

updateLayoutSetPrototypeLinkEnabled

public void updateLayoutSetPrototypeLinkEnabled(long groupId,
                                                boolean privateLayout,
                                                boolean layoutSetPrototypeLinkEnabled,
                                                String layoutSetPrototypeUuid)
                                         throws PortalException,
                                                SystemException
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 - if a portal exception occurred
SystemException - if a system exception occurred

updateLogo

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

updateLogo

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

updateLogo

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

updateLookAndFeel

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

updateLookAndFeel

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

updatePageCount

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

updateSettings

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

updateVirtualHost

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

getWrappedLayoutSetLocalService

public LayoutSetLocalService getWrappedLayoutSetLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedLayoutSetLocalService

public void setWrappedLayoutSetLocalService(LayoutSetLocalService layoutSetLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portal.service.LayoutSetLocalService)


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 6.1.2-ce-ga3