com.liferay.portal.service
Interface ResourceLocalService
- public interface ResourceLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be overwritten
the next time is generated.
This interface defines the service. The default implementation is com.liferay.portal.service.impl.ResourceLocalServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be accessed
from within the same VM.
- Author:
- Brian Wing Shun Chan
- See Also:
ResourceServiceFactory
,
ResourceServiceUtil
Method Summary |
void |
addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
Resource |
addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
Resource |
addResource(Resource model)
|
void |
addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addResources(long companyId,
long groupId,
java.lang.String name,
boolean portletActions)
|
void |
deleteResource(long resourceId)
|
void |
deleteResource(long companyId,
java.lang.String name,
int scope,
long primKey)
|
void |
deleteResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
void |
deleteResource(Resource resource)
|
void |
deleteResources(java.lang.String name)
|
java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
long |
getLatestResourceId()
|
Resource |
getResource(long resourceId)
|
Resource |
getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
java.util.List |
getResources()
|
Resource |
updateResource(Resource model)
|
addResource
public Resource addResource(Resource model)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateResource
public Resource updateResource(Resource model)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addModelResources
public void addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addModelResources
public void addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addResource
public Resource addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addResources
public void addResources(long companyId,
long groupId,
java.lang.String name,
boolean portletActions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addResources
public void addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addResources
public void addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteResource
public void deleteResource(long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteResource
public void deleteResource(Resource resource)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteResource
public void deleteResource(long companyId,
java.lang.String name,
int scope,
long primKey)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteResource
public void deleteResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteResources
public void deleteResources(java.lang.String name)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getLatestResourceId
public long getLatestResourceId()
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getResource
public Resource getResource(long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getResources
public java.util.List getResources()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getResource
public Resource getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException