com.liferay.portal.service
Interface ResourceLocalService
- All Known Implementing Classes:
- ResourceLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
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:
ResourceLocalServiceUtil
- Generated:
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 resource)
|
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)
|
Resource |
createResource(long resourceId)
|
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(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
long |
getLatestResourceId()
|
Resource |
getResource(long resourceId)
|
Resource |
getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
java.util.List<Resource> |
getResources()
|
java.util.List<Resource> |
getResources(int start,
int end)
|
int |
getResourcesCount()
|
Resource |
updateResource(Resource resource)
|
Resource |
updateResource(Resource resource,
boolean merge)
|
void |
updateResources(long companyId,
long groupId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
updateResources(long companyId,
long groupId,
java.lang.String name,
java.lang.String primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
addResource
Resource addResource(Resource resource)
throws SystemException
- Throws:
SystemException
createResource
Resource createResource(long resourceId)
deleteResource
void deleteResource(long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteResource
void deleteResource(Resource resource)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getResource
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource getResource(long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getResources
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> getResources(int start,
int end)
throws SystemException
- Throws:
SystemException
getResourcesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getResourcesCount()
throws SystemException
- Throws:
SystemException
updateResource
Resource updateResource(Resource resource)
throws SystemException
- Throws:
SystemException
updateResource
Resource updateResource(Resource resource,
boolean merge)
throws SystemException
- Throws:
SystemException
addModelResources
void addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addModelResources
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 PortalException,
SystemException
- Throws:
PortalException
SystemException
addResource
Resource addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws SystemException
- Throws:
SystemException
addResources
void addResources(long companyId,
long groupId,
java.lang.String name,
boolean portletActions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addResources
void addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addResources
void addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteResource
void deleteResource(long companyId,
java.lang.String name,
int scope,
long primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteResource
void deleteResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteResources
void deleteResources(java.lang.String name)
throws SystemException
- Throws:
SystemException
getLatestResourceId
@Transactional(propagation=SUPPORTS,
readOnly=true)
long getLatestResourceId()
throws SystemException
- Throws:
SystemException
getResource
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getResources
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> getResources()
throws SystemException
- Throws:
SystemException
updateResources
void updateResources(long companyId,
long groupId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateResources
void updateResources(long companyId,
long groupId,
java.lang.String name,
java.lang.String primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException