Liferay 6.1.2-ce-ga3

com.liferay.portal.service
Class PortalPreferencesLocalServiceWrapper

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

public class PortalPreferencesLocalServiceWrapper
extends Object
implements PortalPreferencesLocalService, ServiceWrapper<PortalPreferencesLocalService>

This class is a wrapper for PortalPreferencesLocalService.

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

Constructor Summary
PortalPreferencesLocalServiceWrapper(PortalPreferencesLocalService portalPreferencesLocalService)
           
 
Method Summary
 PortalPreferences addPortalPreferences(long companyId, long ownerId, int ownerType, String defaultPreferences)
           
 PortalPreferences addPortalPreferences(PortalPreferences portalPreferences)
          Adds the portal preferences to the database.
 PortalPreferences createPortalPreferences(long portalPreferencesId)
          Creates a new portal preferences with the primary key.
 PortalPreferences deletePortalPreferences(long portalPreferencesId)
          Deletes the portal preferences with the primary key from the database.
 PortalPreferences deletePortalPreferences(PortalPreferences portalPreferences)
          Deletes the portal preferences from the database.
 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.
 PortalPreferences fetchPortalPreferences(long portalPreferencesId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 PortalPreferences getPortalPreferences(long portalPreferencesId)
          Returns the portal preferences with the primary key.
 List<PortalPreferences> getPortalPreferenceses(int start, int end)
          Returns a range of all the portal preferenceses.
 int getPortalPreferencesesCount()
          Returns the number of portal preferenceses.
 PortletPreferences getPreferences(long companyId, long ownerId, int ownerType)
           
 PortletPreferences getPreferences(long companyId, long ownerId, int ownerType, String defaultPreferences)
           
 PortalPreferencesLocalService getWrappedPortalPreferencesLocalService()
          Deprecated. Renamed to getWrappedService()
 PortalPreferencesLocalService getWrappedService()
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedPortalPreferencesLocalService(PortalPreferencesLocalService portalPreferencesLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portal.service.PortalPreferencesLocalService)
 void setWrappedService(PortalPreferencesLocalService portalPreferencesLocalService)
           
 PortalPreferences updatePortalPreferences(PortalPreferences portalPreferences)
          Updates the portal preferences in the database or adds it if it does not yet exist.
 PortalPreferences updatePortalPreferences(PortalPreferences portalPreferences, boolean merge)
          Updates the portal preferences in the database or adds it if it does not yet exist.
 PortalPreferences updatePreferences(long ownerId, int ownerType, PortalPreferences portalPreferences)
           
 PortalPreferences updatePreferences(long ownerId, int ownerType, String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalPreferencesLocalServiceWrapper

public PortalPreferencesLocalServiceWrapper(PortalPreferencesLocalService portalPreferencesLocalService)
Method Detail

addPortalPreferences

public PortalPreferences addPortalPreferences(PortalPreferences portalPreferences)
                                       throws SystemException
Adds the portal preferences to the database. Also notifies the appropriate model listeners.

Specified by:
addPortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferences - the portal preferences
Returns:
the portal preferences that was added
Throws:
SystemException - if a system exception occurred

createPortalPreferences

public PortalPreferences createPortalPreferences(long portalPreferencesId)
Creates a new portal preferences with the primary key. Does not add the portal preferences to the database.

Specified by:
createPortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferencesId - the primary key for the new portal preferences
Returns:
the new portal preferences

deletePortalPreferences

public PortalPreferences deletePortalPreferences(long portalPreferencesId)
                                          throws PortalException,
                                                 SystemException
Deletes the portal preferences with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deletePortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferencesId - the primary key of the portal preferences
Returns:
the portal preferences that was removed
Throws:
PortalException - if a portal preferences with the primary key could not be found
SystemException - if a system exception occurred

deletePortalPreferences

public PortalPreferences deletePortalPreferences(PortalPreferences portalPreferences)
                                          throws SystemException
Deletes the portal preferences from the database. Also notifies the appropriate model listeners.

Specified by:
deletePortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferences - the portal preferences
Returns:
the portal preferences that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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 PortalPreferencesLocalService
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 PortalPreferencesLocalService
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 PortalPreferencesLocalService
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 PortalPreferencesLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchPortalPreferences

public PortalPreferences fetchPortalPreferences(long portalPreferencesId)
                                         throws SystemException
Specified by:
fetchPortalPreferences in interface PortalPreferencesLocalService
Throws:
SystemException

getPortalPreferences

public PortalPreferences getPortalPreferences(long portalPreferencesId)
                                       throws PortalException,
                                              SystemException
Returns the portal preferences with the primary key.

Specified by:
getPortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferencesId - the primary key of the portal preferences
Returns:
the portal preferences
Throws:
PortalException - if a portal preferences 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 PersistedModelLocalService
Specified by:
getPersistedModel in interface PortalPreferencesLocalService
Throws:
PortalException
SystemException

getPortalPreferenceses

public List<PortalPreferences> getPortalPreferenceses(int start,
                                                      int end)
                                               throws SystemException
Returns a range of all the portal preferenceses.

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:
getPortalPreferenceses in interface PortalPreferencesLocalService
Parameters:
start - the lower bound of the range of portal preferenceses
end - the upper bound of the range of portal preferenceses (not inclusive)
Returns:
the range of portal preferenceses
Throws:
SystemException - if a system exception occurred

getPortalPreferencesesCount

public int getPortalPreferencesesCount()
                                throws SystemException
Returns the number of portal preferenceses.

Specified by:
getPortalPreferencesesCount in interface PortalPreferencesLocalService
Returns:
the number of portal preferenceses
Throws:
SystemException - if a system exception occurred

updatePortalPreferences

public PortalPreferences updatePortalPreferences(PortalPreferences portalPreferences)
                                          throws SystemException
Updates the portal preferences in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updatePortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferences - the portal preferences
Returns:
the portal preferences that was updated
Throws:
SystemException - if a system exception occurred

updatePortalPreferences

public PortalPreferences updatePortalPreferences(PortalPreferences portalPreferences,
                                                 boolean merge)
                                          throws SystemException
Updates the portal preferences in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updatePortalPreferences in interface PortalPreferencesLocalService
Parameters:
portalPreferences - the portal preferences
merge - whether to merge the portal preferences 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 portal preferences 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 PortalPreferencesLocalService
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 PortalPreferencesLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addPortalPreferences

public PortalPreferences addPortalPreferences(long companyId,
                                              long ownerId,
                                              int ownerType,
                                              String defaultPreferences)
                                       throws SystemException
Specified by:
addPortalPreferences in interface PortalPreferencesLocalService
Throws:
SystemException

getPreferences

public PortletPreferences getPreferences(long companyId,
                                         long ownerId,
                                         int ownerType)
                                  throws SystemException
Specified by:
getPreferences in interface PortalPreferencesLocalService
Throws:
SystemException

getPreferences

public PortletPreferences getPreferences(long companyId,
                                         long ownerId,
                                         int ownerType,
                                         String defaultPreferences)
                                  throws SystemException
Specified by:
getPreferences in interface PortalPreferencesLocalService
Throws:
SystemException

updatePreferences

public PortalPreferences updatePreferences(long ownerId,
                                           int ownerType,
                                           PortalPreferences portalPreferences)
                                    throws SystemException
Specified by:
updatePreferences in interface PortalPreferencesLocalService
Throws:
SystemException

updatePreferences

public PortalPreferences updatePreferences(long ownerId,
                                           int ownerType,
                                           String xml)
                                    throws SystemException
Specified by:
updatePreferences in interface PortalPreferencesLocalService
Throws:
SystemException

getWrappedPortalPreferencesLocalService

public PortalPreferencesLocalService getWrappedPortalPreferencesLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedPortalPreferencesLocalService

public void setWrappedPortalPreferencesLocalService(PortalPreferencesLocalService portalPreferencesLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portal.service.PortalPreferencesLocalService)


getWrappedService

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

setWrappedService

public void setWrappedService(PortalPreferencesLocalService portalPreferencesLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<PortalPreferencesLocalService>

Liferay 6.1.2-ce-ga3