1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface JournalStructureService {
50 public com.liferay.portlet.journal.model.JournalStructure addStructure(
51 long groupId, java.lang.String structureId, boolean autoStructureId,
52 java.lang.String parentStructureId, java.lang.String name,
53 java.lang.String description, java.lang.String xsd,
54 com.liferay.portal.service.ServiceContext serviceContext)
55 throws com.liferay.portal.kernel.exception.PortalException,
56 com.liferay.portal.kernel.exception.SystemException;
57
58 public com.liferay.portlet.journal.model.JournalStructure copyStructure(
59 long groupId, java.lang.String oldStructureId,
60 java.lang.String newStructureId, boolean autoStructureId)
61 throws com.liferay.portal.kernel.exception.PortalException,
62 com.liferay.portal.kernel.exception.SystemException;
63
64 public void deleteStructure(long groupId, java.lang.String structureId)
65 throws com.liferay.portal.kernel.exception.PortalException,
66 com.liferay.portal.kernel.exception.SystemException;
67
68 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
69 public com.liferay.portlet.journal.model.JournalStructure getStructure(
70 long groupId, java.lang.String structureId)
71 throws com.liferay.portal.kernel.exception.PortalException,
72 com.liferay.portal.kernel.exception.SystemException;
73
74 public com.liferay.portlet.journal.model.JournalStructure updateStructure(
75 long groupId, java.lang.String structureId,
76 java.lang.String parentStructureId, java.lang.String name,
77 java.lang.String description, java.lang.String xsd,
78 com.liferay.portal.service.ServiceContext serviceContext)
79 throws com.liferay.portal.kernel.exception.PortalException,
80 com.liferay.portal.kernel.exception.SystemException;
81 }