com.liferay.portlet.journal.service.impl
Class JournalTemplateLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl
com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, JournalTemplateLocalService
public class JournalTemplateLocalServiceImpl
- extends JournalTemplateLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl |
counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, journalArticleFinder, journalArticleImageLocalService, journalArticleImagePersistence, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, journalContentSearchLocalService, journalContentSearchPersistence, journalFeedFinder, journalFeedLocalService, journalFeedPersistence, journalFeedService, journalStructureFinder, journalStructureLocalService, journalStructurePersistence, journalStructureService, journalTemplateFinder, journalTemplateLocalService, journalTemplatePersistence, journalTemplateService, persistedModelLocalServiceRegistry, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence |
Method Summary |
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)
|
void |
deleteTemplate(JournalTemplate template)
|
void |
deleteTemplate(long groupId,
String templateId)
|
void |
deleteTemplates(long groupId)
|
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)
|
protected void |
saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes)
|
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)
|
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)
|
protected void |
validate(long groupId,
String templateId,
boolean autoTemplateId,
Map<Locale,String> nameMap,
String xsl,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
|
protected void |
validate(Map<Locale,String> nameMap,
String xsl,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
|
protected void |
validate(String templateId)
|
Methods inherited from class com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl |
addJournalTemplate, afterPropertiesSet, createJournalTemplate, deleteJournalTemplate, deleteJournalTemplate, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchJournalTemplate, getBeanIdentifier, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getJournalArticleFinder, getJournalArticleImageLocalService, getJournalArticleImagePersistence, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getJournalFeedFinder, getJournalFeedLocalService, getJournalFeedPersistence, getJournalFeedService, getJournalStructureFinder, getJournalStructureLocalService, getJournalStructurePersistence, getJournalStructureService, getJournalTemplate, getJournalTemplateByUuidAndGroupId, getJournalTemplateFinder, getJournalTemplateLocalService, getJournalTemplatePersistence, getJournalTemplates, getJournalTemplatesCount, getJournalTemplateService, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, runSQL, setBeanIdentifier, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setJournalArticleFinder, setJournalArticleImageLocalService, setJournalArticleImagePersistence, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setJournalFeedFinder, setJournalFeedLocalService, setJournalFeedPersistence, setJournalFeedService, setJournalStructureFinder, setJournalStructureLocalService, setJournalStructurePersistence, setJournalStructureService, setJournalTemplateFinder, setJournalTemplateLocalService, setJournalTemplatePersistence, setJournalTemplateService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, updateJournalTemplate, updateJournalTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JournalTemplateLocalServiceImpl
public JournalTemplateLocalServiceImpl()
addTemplate
public 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)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(JournalTemplate template,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(JournalTemplate template,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(long groupId,
String templateId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(long groupId,
String templateId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkNewLine
public void checkNewLine(long groupId,
String templateId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
copyTemplate
public JournalTemplate copyTemplate(long userId,
long groupId,
String oldTemplateId,
String newTemplateId,
boolean autoTemplateId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTemplate
public void deleteTemplate(JournalTemplate template)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTemplate
public void deleteTemplate(long groupId,
String templateId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTemplates
public void deleteTemplates(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getStructureTemplates
public List<JournalTemplate> getStructureTemplates(long groupId,
String structureId)
throws SystemException
- Throws:
SystemException
getStructureTemplates
public List<JournalTemplate> getStructureTemplates(long groupId,
String structureId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getStructureTemplatesCount
public int getStructureTemplatesCount(long groupId,
String structureId)
throws SystemException
- Throws:
SystemException
getTemplate
public JournalTemplate getTemplate(long id)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTemplate
public JournalTemplate getTemplate(long groupId,
String templateId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTemplate
public JournalTemplate getTemplate(long groupId,
String templateId,
boolean includeGlobalTemplates)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTemplateBySmallImageId
public JournalTemplate getTemplateBySmallImageId(long smallImageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTemplates
public List<JournalTemplate> getTemplates()
throws SystemException
- Throws:
SystemException
getTemplates
public List<JournalTemplate> getTemplates(long groupId)
throws SystemException
- Throws:
SystemException
getTemplates
public List<JournalTemplate> getTemplates(long groupId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getTemplatesCount
public int getTemplatesCount(long groupId)
throws SystemException
- Throws:
SystemException
hasTemplate
public boolean hasTemplate(long groupId,
String templateId)
throws SystemException
- Throws:
SystemException
search
public List<JournalTemplate> search(long companyId,
long[] groupIds,
String keywords,
String structureId,
String structureIdComparator,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
public 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
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long[] groupIds,
String keywords,
String structureId,
String structureIdComparator)
throws SystemException
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long[] groupIds,
String templateId,
String structureId,
String structureIdComparator,
String name,
String description,
boolean andOperator)
throws SystemException
- Throws:
SystemException
updateTemplate
public 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
- Throws:
PortalException
SystemException
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(long groupId,
String templateId,
boolean autoTemplateId,
Map<Locale,String> nameMap,
String xsl,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(Map<Locale,String> nameMap,
String xsl,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(String templateId)
throws PortalException
- Throws:
PortalException