1
22
23 package com.liferay.portal.service;
24
25
26
50 public interface ResourceLocalService {
51 public com.liferay.portal.model.Resource addResource(
52 com.liferay.portal.model.Resource resource)
53 throws com.liferay.portal.SystemException;
54
55 public void deleteResource(long resourceId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portal.PortalException;
58
59 public void deleteResource(com.liferay.portal.model.Resource resource)
60 throws com.liferay.portal.SystemException;
61
62 public java.util.List<Object> dynamicQuery(
63 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
68 int end) throws com.liferay.portal.SystemException;
69
70 public com.liferay.portal.model.Resource getResource(long resourceId)
71 throws com.liferay.portal.SystemException,
72 com.liferay.portal.PortalException;
73
74 public java.util.List<com.liferay.portal.model.Resource> getResources(
75 int start, int end) throws com.liferay.portal.SystemException;
76
77 public int getResourcesCount() throws com.liferay.portal.SystemException;
78
79 public com.liferay.portal.model.Resource updateResource(
80 com.liferay.portal.model.Resource resource)
81 throws com.liferay.portal.SystemException;
82
83 public void addModelResources(long companyId, long groupId, long userId,
84 java.lang.String name, long primKey,
85 java.lang.String[] communityPermissions,
86 java.lang.String[] guestPermissions)
87 throws com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException;
89
90 public void addModelResources(long companyId, long groupId, long userId,
91 java.lang.String name, java.lang.String primKey,
92 java.lang.String[] communityPermissions,
93 java.lang.String[] guestPermissions)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public com.liferay.portal.model.Resource addResource(long companyId,
98 java.lang.String name, int scope, java.lang.String primKey)
99 throws com.liferay.portal.SystemException;
100
101 public void addResources(long companyId, long groupId,
102 java.lang.String name, boolean portletActions)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public void addResources(long companyId, long groupId, long userId,
107 java.lang.String name, long primKey, boolean portletActions,
108 boolean addCommunityPermissions, boolean addGuestPermissions)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111
112 public void addResources(long companyId, long groupId, long userId,
113 java.lang.String name, java.lang.String primKey,
114 boolean portletActions, boolean addCommunityPermissions,
115 boolean addGuestPermissions)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public void deleteResource(long companyId, java.lang.String name,
120 int scope, long primKey)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public void deleteResource(long companyId, java.lang.String name,
125 int scope, java.lang.String primKey)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public void deleteResources(java.lang.String name)
130 throws com.liferay.portal.SystemException;
131
132 public long getLatestResourceId() throws com.liferay.portal.SystemException;
133
134 public java.util.List<com.liferay.portal.model.Resource> getResources()
135 throws com.liferay.portal.SystemException;
136
137 public com.liferay.portal.model.Resource getResource(long companyId,
138 java.lang.String name, int scope, java.lang.String primKey)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141 }