1
22
23 package com.liferay.portlet.journal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface JournalStructureService {
58 public com.liferay.portlet.journal.model.JournalStructure addStructure(
59 long groupId, java.lang.String structureId, boolean autoStructureId,
60 java.lang.String parentStructureId, java.lang.String name,
61 java.lang.String description, java.lang.String xsd,
62 com.liferay.portal.service.ServiceContext serviceContext)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 public com.liferay.portlet.journal.model.JournalStructure copyStructure(
67 long groupId, java.lang.String oldStructureId,
68 java.lang.String newStructureId, boolean autoStructureId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 public void deleteStructure(long groupId, java.lang.String structureId)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException;
75
76 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77 public com.liferay.portlet.journal.model.JournalStructure getStructure(
78 long groupId, java.lang.String structureId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.journal.model.JournalStructure updateStructure(
83 long groupId, java.lang.String structureId,
84 java.lang.String parentStructureId, java.lang.String name,
85 java.lang.String description, java.lang.String xsd,
86 com.liferay.portal.service.ServiceContext serviceContext)
87 throws com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException;
89 }