com.liferay.portal.service.impl
Class ResourceLocalServiceImpl
java.lang.Object
com.liferay.portal.service.base.ResourceLocalServiceBaseImpl
com.liferay.portal.service.impl.ResourceLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.service.ResourceLocalService
- public class ResourceLocalServiceImpl
- extends ResourceLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan, Wilson S. Man
Method Summary |
protected void |
addCommunityPermissions(long groupId,
java.lang.String name,
long resourceId,
boolean portletActions)
|
protected void |
addGuestPermissions(long companyId,
java.lang.String name,
long resourceId,
boolean portletActions)
|
protected void |
addModelPermissions(long groupId,
long resourceId,
java.lang.String[] actionIds)
|
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)
|
com.liferay.portal.model.Resource |
addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
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(com.liferay.portal.model.Resource resource)
|
void |
deleteResources(java.lang.String name)
|
long |
getLatestResourceId()
|
com.liferay.portal.model.Resource |
getResource(long resourceId)
|
com.liferay.portal.model.Resource |
getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
java.util.List |
getResources()
|
protected void |
logAddCommunityPermissions(long groupId,
java.lang.String name,
long resourceId,
org.apache.commons.lang.time.StopWatch stopWatch,
int block)
|
protected void |
logAddResources(java.lang.String name,
java.lang.String primKey,
org.apache.commons.lang.time.StopWatch stopWatch,
int block)
|
protected void |
validate(long companyId,
java.lang.String name,
boolean portletActions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLocalServiceImpl
public ResourceLocalServiceImpl()
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addResource
public com.liferay.portal.model.Resource addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addResources
public void addResources(long companyId,
long groupId,
java.lang.String name,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public void deleteResource(long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public void deleteResource(com.liferay.portal.model.Resource resource)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public void deleteResource(long companyId,
java.lang.String name,
int scope,
long primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public void deleteResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResources
public void deleteResources(java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getLatestResourceId
public long getLatestResourceId()
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getResource
public com.liferay.portal.model.Resource getResource(long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getResources
public java.util.List getResources()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getResource
public com.liferay.portal.model.Resource getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addCommunityPermissions
protected void addCommunityPermissions(long groupId,
java.lang.String name,
long resourceId,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addGuestPermissions
protected void addGuestPermissions(long companyId,
java.lang.String name,
long resourceId,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addModelPermissions
protected void addModelPermissions(long groupId,
long resourceId,
java.lang.String[] actionIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
logAddCommunityPermissions
protected void logAddCommunityPermissions(long groupId,
java.lang.String name,
long resourceId,
org.apache.commons.lang.time.StopWatch stopWatch,
int block)
logAddResources
protected void logAddResources(java.lang.String name,
java.lang.String primKey,
org.apache.commons.lang.time.StopWatch stopWatch,
int block)
validate
protected void validate(long companyId,
java.lang.String name,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException