|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface JournalTemplateLocalService
The interface for the journal template local service.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
JournalTemplateLocalServiceUtil
,
com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl
,
com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl
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,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsl,
boolean formatXsl,
String langType,
boolean cacheable,
boolean smallImage,
String smallImageURL,
File smallImageFile,
ServiceContext serviceContext)
|
void |
addTemplateResources(JournalTemplate template,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addTemplateResources(JournalTemplate template,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addTemplateResources(long groupId,
String templateId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addTemplateResources(long groupId,
String templateId,
String[] groupPermissions,
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. |
JournalTemplate |
deleteJournalTemplate(JournalTemplate journalTemplate)
Deletes the journal template from the database. |
JournalTemplate |
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)
|
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. |
JournalTemplate |
fetchJournalTemplate(long id)
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
JournalTemplate |
getJournalTemplate(long id)
Returns the journal template with the primary key. |
JournalTemplate |
getJournalTemplateByUuidAndGroupId(String uuid,
long groupId)
Returns the journal template with the UUID in the group. |
List<JournalTemplate> |
getJournalTemplates(int start,
int end)
Returns a range of all the journal templates. |
int |
getJournalTemplatesCount()
Returns the number of journal templates. |
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
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 |
getTemplate(long groupId,
String templateId,
boolean includeGlobalTemplates)
|
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)
|
boolean |
hasTemplate(long groupId,
String templateId)
|
List<JournalTemplate> |
search(long companyId,
long[] groupIds,
String keywords,
String structureId,
String structureIdComparator,
int start,
int end,
OrderByComparator obc)
|
List<JournalTemplate> |
search(long companyId,
long[] groupIds,
String templateId,
String structureId,
String structureIdComparator,
String name,
String description,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
|
int |
searchCount(long companyId,
long[] groupIds,
String keywords,
String structureId,
String structureIdComparator)
|
int |
searchCount(long companyId,
long[] groupIds,
String templateId,
String structureId,
String structureIdComparator,
String name,
String description,
boolean andOperator)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
JournalTemplate |
updateJournalTemplate(JournalTemplate journalTemplate)
Updates the journal template in the database or adds it if it does not yet exist. |
JournalTemplate |
updateJournalTemplate(JournalTemplate journalTemplate,
boolean merge)
Updates the journal template in the database or adds it if it does not yet exist. |
JournalTemplate |
updateTemplate(long groupId,
String templateId,
String structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsl,
boolean formatXsl,
String langType,
boolean cacheable,
boolean smallImage,
String smallImageURL,
File smallImageFile,
ServiceContext serviceContext)
|
Method Detail |
---|
JournalTemplate addJournalTemplate(JournalTemplate journalTemplate) throws SystemException
journalTemplate
- the journal template
SystemException
- if a system exception occurredJournalTemplate createJournalTemplate(long id)
id
- the primary key for the new journal template
JournalTemplate deleteJournalTemplate(long id) throws PortalException, SystemException
id
- the primary key of the journal template
PortalException
- if a journal template with the primary key could not be found
SystemException
- if a system exception occurredJournalTemplate deleteJournalTemplate(JournalTemplate journalTemplate) throws SystemException
journalTemplate
- the journal template
SystemException
- if a system exception occurredDynamicQuery dynamicQuery()
List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredList 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
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredList 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
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate fetchJournalTemplate(long id) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate getJournalTemplate(long id) throws PortalException, SystemException
id
- the primary key of the journal template
PortalException
- if a journal template with the primary key could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate getJournalTemplateByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of journal templategroupId
- the group id of the journal template
PortalException
- if a journal template with the UUID in the group could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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.
start
- the lower bound of the range of journal templatesend
- the upper bound of the range of journal templates (not inclusive)
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getJournalTemplatesCount() throws SystemException
SystemException
- if a system exception occurredJournalTemplate updateJournalTemplate(JournalTemplate journalTemplate) throws SystemException
journalTemplate
- the journal template
SystemException
- if a system exception occurredJournalTemplate updateJournalTemplate(JournalTemplate journalTemplate, boolean merge) throws SystemException
journalTemplate
- the journal templatemerge
- 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 occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanJournalTemplate addTemplate(long userId, long groupId, String templateId, boolean autoTemplateId, String structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsl, boolean formatXsl, String langType, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
void addTemplateResources(JournalTemplate template, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addTemplateResources(JournalTemplate template, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addTemplateResources(long groupId, String templateId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addTemplateResources(long groupId, String templateId, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void checkNewLine(long groupId, String templateId) throws PortalException, SystemException
PortalException
SystemException
JournalTemplate copyTemplate(long userId, long groupId, String oldTemplateId, String newTemplateId, boolean autoTemplateId) throws PortalException, SystemException
PortalException
SystemException
void deleteTemplate(JournalTemplate template) throws PortalException, SystemException
PortalException
SystemException
void deleteTemplate(long groupId, String templateId) throws PortalException, SystemException
PortalException
SystemException
void deleteTemplates(long groupId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> getStructureTemplates(long groupId, String structureId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> getStructureTemplates(long groupId, String structureId, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getStructureTemplatesCount(long groupId, String structureId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate getTemplate(long id) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate getTemplate(long groupId, String templateId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate getTemplate(long groupId, String templateId, boolean includeGlobalTemplates) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JournalTemplate getTemplateBySmallImageId(long smallImageId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> getTemplates() throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> getTemplates(long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> getTemplates(long groupId, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getTemplatesCount(long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasTemplate(long groupId, String templateId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> search(long companyId, long[] groupIds, String keywords, String structureId, String structureIdComparator, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<JournalTemplate> search(long companyId, long[] groupIds, String templateId, String structureId, String structureIdComparator, String name, String description, boolean andOperator, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long companyId, long[] groupIds, String keywords, String structureId, String structureIdComparator) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long companyId, long[] groupIds, String templateId, String structureId, String structureIdComparator, String name, String description, boolean andOperator) throws SystemException
SystemException
JournalTemplate updateTemplate(long groupId, String templateId, String structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsl, boolean formatXsl, String langType, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |