com.liferay.portlet.journal.service.impl
Class JournalTemplateLocalServiceImpl
java.lang.Object
com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl
com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl
- All Implemented Interfaces:
- JournalTemplateLocalService
public class JournalTemplateLocalServiceImpl
- extends JournalTemplateLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl |
counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, 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, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence |
Method Summary |
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)
|
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 |
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 smallFile,
byte[] smallBytes)
|
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 |
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)
|
protected void |
validate(long groupId,
String templateId,
boolean autoTemplateId,
String name,
String description,
String xsl,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
|
protected void |
validate(String templateId)
|
protected void |
validate(String name,
String description,
String xsl,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
|
Methods inherited from class com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl |
addJournalTemplate, createJournalTemplate, deleteJournalTemplate, deleteJournalTemplate, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, 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, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, runSQL, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, 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,
String name,
String description,
String xsl,
boolean formatXsl,
String langType,
boolean cacheable,
boolean smallImage,
String smallImageURL,
File smallFile,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(long groupId,
String templateId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(JournalTemplate template,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(long groupId,
String templateId,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTemplateResources
public void addTemplateResources(JournalTemplate template,
String[] communityPermissions,
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(long groupId,
String templateId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTemplate
public void deleteTemplate(JournalTemplate template)
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
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 groupId,
String keywords,
String structureId,
String structureIdComparator,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
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
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long groupId,
String keywords,
String structureId,
String structureIdComparator)
throws SystemException
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long groupId,
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,
String name,
String description,
String xsl,
boolean formatXsl,
String langType,
boolean cacheable,
boolean smallImage,
String smallImageURL,
File smallFile,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
File smallFile,
byte[] smallBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(String templateId)
throws PortalException
- Throws:
PortalException
validate
protected void validate(long groupId,
String templateId,
boolean autoTemplateId,
String name,
String description,
String xsl,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(String name,
String description,
String xsl,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException