Liferay 6.1.2-ce-ga3

com.liferay.portlet.dynamicdatamapping.service
Class DDMTemplateLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<DDMTemplateLocalService>, DDMTemplateLocalService

public class DDMTemplateLocalServiceWrapper
extends Object
implements DDMTemplateLocalService, ServiceWrapper<DDMTemplateLocalService>

This class is a wrapper for DDMTemplateLocalService.

See Also:
DDMTemplateLocalService

Constructor Summary
DDMTemplateLocalServiceWrapper(DDMTemplateLocalService ddmTemplateLocalService)
           
 
Method Summary
 DDMTemplate addDDMTemplate(DDMTemplate ddmTemplate)
          Adds the d d m template to the database.
 DDMTemplate addTemplate(long userId, long groupId, long structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
 void addTemplateResources(DDMTemplate template, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addTemplateResources(DDMTemplate template, String[] groupPermissions, String[] guestPermissions)
           
 List<DDMTemplate> copyTemplates(long userId, long structureId, long newStructureId, String type, ServiceContext serviceContext)
           
 DDMTemplate createDDMTemplate(long templateId)
          Creates a new d d m template with the primary key.
 DDMTemplate deleteDDMTemplate(DDMTemplate ddmTemplate)
          Deletes the d d m template from the database.
 DDMTemplate deleteDDMTemplate(long templateId)
          Deletes the d d m template with the primary key from the database.
 void deleteTemplate(DDMTemplate template)
           
 void deleteTemplate(long templateId)
           
 void deleteTemplates(long groupId)
           
 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.
 DDMTemplate fetchDDMTemplate(long templateId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 DDMTemplate getDDMTemplate(long templateId)
          Returns the d d m template with the primary key.
 DDMTemplate getDDMTemplateByUuidAndGroupId(String uuid, long groupId)
          Returns the d d m template with the UUID in the group.
 List<DDMTemplate> getDDMTemplates(int start, int end)
          Returns a range of all the d d m templates.
 int getDDMTemplatesCount()
          Returns the number of d d m templates.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 DDMTemplate getTemplate(long templateId)
           
 List<DDMTemplate> getTemplates(long structureId)
           
 List<DDMTemplate> getTemplates(long structureId, String type)
           
 List<DDMTemplate> getTemplates(long structureId, String type, String mode)
           
 DDMTemplateLocalService getWrappedDDMTemplateLocalService()
          Deprecated. Renamed to getWrappedService()
 DDMTemplateLocalService getWrappedService()
           
 List<DDMTemplate> search(long companyId, long groupId, long structureId, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
 List<DDMTemplate> search(long companyId, long groupId, long structureId, String name, String description, String type, String mode, String language, boolean andOperator, int start, int end, OrderByComparator orderByComparator)
           
 int searchCount(long companyId, long groupId, long structureId, String keywords, String type, String mode)
           
 int searchCount(long companyId, long groupId, long structureId, String name, String description, String type, String mode, String language, boolean andOperator)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedDDMTemplateLocalService(DDMTemplateLocalService ddmTemplateLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService)
 void setWrappedService(DDMTemplateLocalService ddmTemplateLocalService)
           
 DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate)
          Updates the d d m template in the database or adds it if it does not yet exist.
 DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate, boolean merge)
          Updates the d d m template in the database or adds it if it does not yet exist.
 DDMTemplate updateTemplate(long templateId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMTemplateLocalServiceWrapper

public DDMTemplateLocalServiceWrapper(DDMTemplateLocalService ddmTemplateLocalService)
Method Detail

addDDMTemplate

public DDMTemplate addDDMTemplate(DDMTemplate ddmTemplate)
                           throws SystemException
Adds the d d m template to the database. Also notifies the appropriate model listeners.

Specified by:
addDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
Returns:
the d d m template that was added
Throws:
SystemException - if a system exception occurred

createDDMTemplate

public DDMTemplate createDDMTemplate(long templateId)
Creates a new d d m template with the primary key. Does not add the d d m template to the database.

Specified by:
createDDMTemplate in interface DDMTemplateLocalService
Parameters:
templateId - the primary key for the new d d m template
Returns:
the new d d m template

deleteDDMTemplate

public DDMTemplate deleteDDMTemplate(long templateId)
                              throws PortalException,
                                     SystemException
Deletes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMTemplate in interface DDMTemplateLocalService
Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template that was removed
Throws:
PortalException - if a d d m template with the primary key could not be found
SystemException - if a system exception occurred

deleteDDMTemplate

public DDMTemplate deleteDDMTemplate(DDMTemplate ddmTemplate)
                              throws SystemException
Deletes the d d m template from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
Returns:
the d d m template that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

fetchDDMTemplate

public DDMTemplate fetchDDMTemplate(long templateId)
                             throws SystemException
Specified by:
fetchDDMTemplate in interface DDMTemplateLocalService
Throws:
SystemException

getDDMTemplate

public DDMTemplate getDDMTemplate(long templateId)
                           throws PortalException,
                                  SystemException
Returns the d d m template with the primary key.

Specified by:
getDDMTemplate in interface DDMTemplateLocalService
Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template
Throws:
PortalException - if a d d m template 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 DDMTemplateLocalService
Throws:
PortalException
SystemException

getDDMTemplateByUuidAndGroupId

public DDMTemplate getDDMTemplateByUuidAndGroupId(String uuid,
                                                  long groupId)
                                           throws PortalException,
                                                  SystemException
Returns the d d m template with the UUID in the group.

Specified by:
getDDMTemplateByUuidAndGroupId in interface DDMTemplateLocalService
Parameters:
uuid - the UUID of d d m template
groupId - the group id of the d d m template
Returns:
the d d m template
Throws:
PortalException - if a d d m template with the UUID in the group could not be found
SystemException - if a system exception occurred

getDDMTemplates

public List<DDMTemplate> getDDMTemplates(int start,
                                         int end)
                                  throws SystemException
Returns a range of all the d d m templates.

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:
getDDMTemplates in interface DDMTemplateLocalService
Parameters:
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of d d m templates
Throws:
SystemException - if a system exception occurred

getDDMTemplatesCount

public int getDDMTemplatesCount()
                         throws SystemException
Returns the number of d d m templates.

Specified by:
getDDMTemplatesCount in interface DDMTemplateLocalService
Returns:
the number of d d m templates
Throws:
SystemException - if a system exception occurred

updateDDMTemplate

public DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate)
                              throws SystemException
Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
Returns:
the d d m template that was updated
Throws:
SystemException - if a system exception occurred

updateDDMTemplate

public DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate,
                                     boolean merge)
                              throws SystemException
Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
merge - whether to merge the d d m template 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 d d m template 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 DDMTemplateLocalService
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 DDMTemplateLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addTemplate

public DDMTemplate addTemplate(long userId,
                               long groupId,
                               long structureId,
                               Map<Locale,String> nameMap,
                               Map<Locale,String> descriptionMap,
                               String type,
                               String mode,
                               String language,
                               String script,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Specified by:
addTemplate in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(DDMTemplate template,
                                 boolean addGroupPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addTemplateResources in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(DDMTemplate template,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addTemplateResources in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

copyTemplates

public List<DDMTemplate> copyTemplates(long userId,
                                       long structureId,
                                       long newStructureId,
                                       String type,
                                       ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Specified by:
copyTemplates in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

deleteTemplate

public void deleteTemplate(DDMTemplate template)
                    throws PortalException,
                           SystemException
Specified by:
deleteTemplate in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

deleteTemplate

public void deleteTemplate(long templateId)
                    throws PortalException,
                           SystemException
Specified by:
deleteTemplate in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

deleteTemplates

public void deleteTemplates(long groupId)
                     throws PortalException,
                            SystemException
Specified by:
deleteTemplates in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

getTemplate

public DDMTemplate getTemplate(long templateId)
                        throws PortalException,
                               SystemException
Specified by:
getTemplate in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long structureId)
                               throws SystemException
Specified by:
getTemplates in interface DDMTemplateLocalService
Throws:
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long structureId,
                                      String type)
                               throws SystemException
Specified by:
getTemplates in interface DDMTemplateLocalService
Throws:
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long structureId,
                                      String type,
                                      String mode)
                               throws SystemException
Specified by:
getTemplates in interface DDMTemplateLocalService
Throws:
SystemException

search

public List<DDMTemplate> search(long companyId,
                                long groupId,
                                long structureId,
                                String keywords,
                                String type,
                                String mode,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Specified by:
search in interface DDMTemplateLocalService
Throws:
SystemException

search

public List<DDMTemplate> search(long companyId,
                                long groupId,
                                long structureId,
                                String name,
                                String description,
                                String type,
                                String mode,
                                String language,
                                boolean andOperator,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Specified by:
search in interface DDMTemplateLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long groupId,
                       long structureId,
                       String keywords,
                       String type,
                       String mode)
                throws SystemException
Specified by:
searchCount in interface DDMTemplateLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long groupId,
                       long structureId,
                       String name,
                       String description,
                       String type,
                       String mode,
                       String language,
                       boolean andOperator)
                throws SystemException
Specified by:
searchCount in interface DDMTemplateLocalService
Throws:
SystemException

updateTemplate

public DDMTemplate updateTemplate(long templateId,
                                  Map<Locale,String> nameMap,
                                  Map<Locale,String> descriptionMap,
                                  String type,
                                  String mode,
                                  String language,
                                  String script,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Specified by:
updateTemplate in interface DDMTemplateLocalService
Throws:
PortalException
SystemException

getWrappedDDMTemplateLocalService

public DDMTemplateLocalService getWrappedDDMTemplateLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedDDMTemplateLocalService

public void setWrappedDDMTemplateLocalService(DDMTemplateLocalService ddmTemplateLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService)


getWrappedService

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

setWrappedService

public void setWrappedService(DDMTemplateLocalService ddmTemplateLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<DDMTemplateLocalService>

Liferay 6.1.2-ce-ga3