|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.journal.service.JournalTemplateLocalServiceWrapper
public class JournalTemplateLocalServiceWrapper
This class is a wrapper for JournalTemplateLocalService
.
JournalTemplateLocalService
Constructor Summary | |
---|---|
JournalTemplateLocalServiceWrapper(JournalTemplateLocalService journalTemplateLocalService)
|
Method Summary | |
---|---|
JournalTemplate |
addJournalTemplate(JournalTemplate journalTemplate)
Adds the journal template to the database. |
JournalTemplate |
addTemplate(long userId,
long groupId,
String templateId,
boolean autoTemplateId,
String structureId,
String name,
String description,
String xsl,
boolean formatXsl,
String langType,
boolean cacheable,
boolean smallImage,
String smallImageURL,
File smallFile,
ServiceContext serviceContext)
|
void |
addTemplateResources(JournalTemplate template,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addTemplateResources(JournalTemplate template,
String[] communityPermissions,
String[] guestPermissions)
|
void |
addTemplateResources(long groupId,
String templateId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addTemplateResources(long groupId,
String templateId,
String[] communityPermissions,
String[] guestPermissions)
|
void |
checkNewLine(long groupId,
String templateId)
|
JournalTemplate |
copyTemplate(long userId,
long groupId,
String oldTemplateId,
String newTemplateId,
boolean autoTemplateId)
|
JournalTemplate |
createJournalTemplate(long id)
Creates a new journal template with the primary key. |
void |
deleteJournalTemplate(JournalTemplate journalTemplate)
Deletes the journal template from the database. |
void |
deleteJournalTemplate(long id)
Deletes the journal template with the primary key from the database. |
void |
deleteTemplate(JournalTemplate template)
|
void |
deleteTemplate(long groupId,
String templateId)
|
void |
deleteTemplates(long groupId)
|
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)
Counts the number of rows that match the dynamic query. |
JournalTemplate |
getJournalTemplate(long id)
Gets the journal template with the primary key. |
JournalTemplate |
getJournalTemplateByUuidAndGroupId(String uuid,
long groupId)
Gets the journal template with the UUID and group id. |
List<JournalTemplate> |
getJournalTemplates(int start,
int end)
Gets a range of all the journal templates. |
int |
getJournalTemplatesCount()
Gets the number of journal templates. |
List<JournalTemplate> |
getStructureTemplates(long groupId,
String structureId)
|
List<JournalTemplate> |
getStructureTemplates(long groupId,
String structureId,
int start,
int end)
|
int |
getStructureTemplatesCount(long groupId,
String structureId)
|
JournalTemplate |
getTemplate(long id)
|
JournalTemplate |
getTemplate(long groupId,
String templateId)
|
JournalTemplate |
getTemplateBySmallImageId(long smallImageId)
|
List<JournalTemplate> |
getTemplates()
|
List<JournalTemplate> |
getTemplates(long groupId)
|
List<JournalTemplate> |
getTemplates(long groupId,
int start,
int end)
|
int |
getTemplatesCount(long groupId)
|
JournalTemplateLocalService |
getWrappedJournalTemplateLocalService()
|
boolean |
hasTemplate(long groupId,
String templateId)
|
List<JournalTemplate> |
search(long companyId,
long groupId,
String keywords,
String structureId,
String structureIdComparator,
int start,
int end,
OrderByComparator obc)
|
List<JournalTemplate> |
search(long companyId,
long groupId,
String templateId,
String structureId,
String structureIdComparator,
String name,
String description,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
|
int |
searchCount(long companyId,
long groupId,
String keywords,
String structureId,
String structureIdComparator)
|
int |
searchCount(long companyId,
long groupId,
String templateId,
String structureId,
String structureIdComparator,
String name,
String description,
boolean andOperator)
|
JournalTemplate |
updateJournalTemplate(JournalTemplate journalTemplate)
Updates the journal template in the database. |
JournalTemplate |
updateJournalTemplate(JournalTemplate journalTemplate,
boolean merge)
Updates the journal template in the database. |
JournalTemplate |
updateTemplate(long groupId,
String templateId,
String structureId,
String name,
String description,
String xsl,
boolean formatXsl,
String langType,
boolean cacheable,
boolean smallImage,
String smallImageURL,
File smallFile,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JournalTemplateLocalServiceWrapper(JournalTemplateLocalService journalTemplateLocalService)
Method Detail |
---|
public JournalTemplate addJournalTemplate(JournalTemplate journalTemplate) throws SystemException
addJournalTemplate
in interface JournalTemplateLocalService
journalTemplate
- the journal template to add
SystemException
- if a system exception occurredpublic JournalTemplate createJournalTemplate(long id)
createJournalTemplate
in interface JournalTemplateLocalService
id
- the primary key for the new journal template
public void deleteJournalTemplate(long id) throws PortalException, SystemException
deleteJournalTemplate
in interface JournalTemplateLocalService
id
- the primary key of the journal template to delete
PortalException
- if a journal template with the primary key could not be found
SystemException
- if a system exception occurredpublic void deleteJournalTemplate(JournalTemplate journalTemplate) throws SystemException
deleteJournalTemplate
in interface JournalTemplateLocalService
journalTemplate
- the journal template to delete
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface JournalTemplateLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
in interface JournalTemplateLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
in interface JournalTemplateLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface JournalTemplateLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic JournalTemplate getJournalTemplate(long id) throws PortalException, SystemException
getJournalTemplate
in interface JournalTemplateLocalService
id
- the primary key of the journal template to get
PortalException
- if a journal template with the primary key could not be found
SystemException
- if a system exception occurredpublic JournalTemplate getJournalTemplateByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
getJournalTemplateByUuidAndGroupId
in interface JournalTemplateLocalService
uuid
- the UUID of journal template to getgroupId
- the group id of the journal template to get
PortalException
- if a journal template with the UUID and group id could not be found
SystemException
- if a system exception occurredpublic List<JournalTemplate> getJournalTemplates(int start, int end) throws SystemException
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.
getJournalTemplates
in interface JournalTemplateLocalService
start
- the lower bound of the range of journal templates to returnend
- the upper bound of the range of journal templates to return (not inclusive)
SystemException
- if a system exception occurredpublic int getJournalTemplatesCount() throws SystemException
getJournalTemplatesCount
in interface JournalTemplateLocalService
SystemException
- if a system exception occurredpublic JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate) throws SystemException
updateJournalTemplate
in interface JournalTemplateLocalService
journalTemplate
- the journal template to update
SystemException
- if a system exception occurredpublic JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate, boolean merge) throws SystemException
updateJournalTemplate
in interface JournalTemplateLocalService
journalTemplate
- the journal template to updatemerge
- whether to merge the journal template with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic JournalTemplate addTemplate(long userId, long groupId, String templateId, boolean autoTemplateId, String structureId, String name, String description, String xsl, boolean formatXsl, String langType, boolean cacheable, boolean smallImage, String smallImageURL, File smallFile, ServiceContext serviceContext) throws PortalException, SystemException
addTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public void addTemplateResources(long groupId, String templateId, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
addTemplateResources
in interface JournalTemplateLocalService
PortalException
SystemException
public void addTemplateResources(JournalTemplate template, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
addTemplateResources
in interface JournalTemplateLocalService
PortalException
SystemException
public void addTemplateResources(long groupId, String templateId, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
addTemplateResources
in interface JournalTemplateLocalService
PortalException
SystemException
public void addTemplateResources(JournalTemplate template, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
addTemplateResources
in interface JournalTemplateLocalService
PortalException
SystemException
public void checkNewLine(long groupId, String templateId) throws PortalException, SystemException
checkNewLine
in interface JournalTemplateLocalService
PortalException
SystemException
public JournalTemplate copyTemplate(long userId, long groupId, String oldTemplateId, String newTemplateId, boolean autoTemplateId) throws PortalException, SystemException
copyTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public void deleteTemplate(long groupId, String templateId) throws PortalException, SystemException
deleteTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public void deleteTemplate(JournalTemplate template) throws PortalException, SystemException
deleteTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public void deleteTemplates(long groupId) throws PortalException, SystemException
deleteTemplates
in interface JournalTemplateLocalService
PortalException
SystemException
public List<JournalTemplate> getStructureTemplates(long groupId, String structureId) throws SystemException
getStructureTemplates
in interface JournalTemplateLocalService
SystemException
public List<JournalTemplate> getStructureTemplates(long groupId, String structureId, int start, int end) throws SystemException
getStructureTemplates
in interface JournalTemplateLocalService
SystemException
public int getStructureTemplatesCount(long groupId, String structureId) throws SystemException
getStructureTemplatesCount
in interface JournalTemplateLocalService
SystemException
public JournalTemplate getTemplate(long id) throws PortalException, SystemException
getTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public JournalTemplate getTemplate(long groupId, String templateId) throws PortalException, SystemException
getTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public JournalTemplate getTemplateBySmallImageId(long smallImageId) throws PortalException, SystemException
getTemplateBySmallImageId
in interface JournalTemplateLocalService
PortalException
SystemException
public List<JournalTemplate> getTemplates() throws SystemException
getTemplates
in interface JournalTemplateLocalService
SystemException
public List<JournalTemplate> getTemplates(long groupId) throws SystemException
getTemplates
in interface JournalTemplateLocalService
SystemException
public List<JournalTemplate> getTemplates(long groupId, int start, int end) throws SystemException
getTemplates
in interface JournalTemplateLocalService
SystemException
public int getTemplatesCount(long groupId) throws SystemException
getTemplatesCount
in interface JournalTemplateLocalService
SystemException
public boolean hasTemplate(long groupId, String templateId) throws SystemException
hasTemplate
in interface JournalTemplateLocalService
SystemException
public List<JournalTemplate> search(long companyId, long groupId, String keywords, String structureId, String structureIdComparator, int start, int end, OrderByComparator obc) throws SystemException
search
in interface JournalTemplateLocalService
SystemException
public List<JournalTemplate> search(long companyId, long groupId, String templateId, String structureId, String structureIdComparator, String name, String description, boolean andOperator, int start, int end, OrderByComparator obc) throws SystemException
search
in interface JournalTemplateLocalService
SystemException
public int searchCount(long companyId, long groupId, String keywords, String structureId, String structureIdComparator) throws SystemException
searchCount
in interface JournalTemplateLocalService
SystemException
public int searchCount(long companyId, long groupId, String templateId, String structureId, String structureIdComparator, String name, String description, boolean andOperator) throws SystemException
searchCount
in interface JournalTemplateLocalService
SystemException
public JournalTemplate updateTemplate(long groupId, String templateId, String structureId, String name, String description, String xsl, boolean formatXsl, String langType, boolean cacheable, boolean smallImage, String smallImageURL, File smallFile, ServiceContext serviceContext) throws PortalException, SystemException
updateTemplate
in interface JournalTemplateLocalService
PortalException
SystemException
public JournalTemplateLocalService getWrappedJournalTemplateLocalService()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |