1
22
23 package com.liferay.portal.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 ResourceLocalService {
58 public com.liferay.portal.model.Resource addResource(
59 com.liferay.portal.model.Resource resource)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portal.model.Resource createResource(long resourceId);
63
64 public void deleteResource(long resourceId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteResource(com.liferay.portal.model.Resource resource)
69 throws com.liferay.portal.SystemException;
70
71 public java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException;
74
75 public java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portal.model.Resource getResource(long resourceId)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portal.PortalException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portal.model.Resource> getResources(
86 int start, int end) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public int getResourcesCount() throws com.liferay.portal.SystemException;
90
91 public com.liferay.portal.model.Resource updateResource(
92 com.liferay.portal.model.Resource resource)
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portal.model.Resource updateResource(
96 com.liferay.portal.model.Resource resource, boolean merge)
97 throws com.liferay.portal.SystemException;
98
99 public void addModelResources(long companyId, long groupId, long userId,
100 java.lang.String name, long primKey,
101 java.lang.String[] communityPermissions,
102 java.lang.String[] guestPermissions)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public void addModelResources(long companyId, long groupId, long userId,
107 java.lang.String name, java.lang.String primKey,
108 java.lang.String[] communityPermissions,
109 java.lang.String[] guestPermissions)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portal.model.Resource addResource(long companyId,
114 java.lang.String name, int scope, java.lang.String primKey)
115 throws com.liferay.portal.SystemException;
116
117 public void addResources(long companyId, long groupId,
118 java.lang.String name, boolean portletActions)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 public void addResources(long companyId, long groupId, long userId,
123 java.lang.String name, long primKey, boolean portletActions,
124 boolean addCommunityPermissions, boolean addGuestPermissions)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public void addResources(long companyId, long groupId, long userId,
129 java.lang.String name, java.lang.String primKey,
130 boolean portletActions, boolean addCommunityPermissions,
131 boolean addGuestPermissions)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException;
134
135 public void deleteResource(long companyId, java.lang.String name,
136 int scope, long primKey)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 public void deleteResource(long companyId, java.lang.String name,
141 int scope, java.lang.String primKey)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException;
144
145 public void deleteResources(java.lang.String name)
146 throws com.liferay.portal.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public long getLatestResourceId() throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portal.model.Resource getResource(long companyId,
153 java.lang.String name, int scope, java.lang.String primKey)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<com.liferay.portal.model.Resource> getResources()
159 throws com.liferay.portal.SystemException;
160
161 public void updateResources(long companyId, long groupId,
162 java.lang.String name, long primKey,
163 java.lang.String[] communityPermissions,
164 java.lang.String[] guestPermissions)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void updateResources(long companyId, long groupId,
169 java.lang.String name, java.lang.String primKey,
170 java.lang.String[] communityPermissions,
171 java.lang.String[] guestPermissions)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException;
174 }