public class ObjectEntryServiceUtil
extends java.lang.Object
com.liferay.object.service.impl.ObjectEntryServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.ObjectEntryService
Constructor and Description |
---|
ObjectEntryServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static ObjectEntry |
addObjectEntry(long groupId,
long objectDefinitionId,
java.util.Map<java.lang.String,java.io.Serializable> values,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectEntry |
addOrUpdateObjectEntry(java.lang.String externalReferenceCode,
long groupId,
long objectDefinitionId,
java.util.Map<java.lang.String,java.io.Serializable> values,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
checkModelResourcePermission(long objectDefinitionId,
long objectEntryId,
java.lang.String actionId) |
static ObjectEntry |
deleteObjectEntry(long objectEntryId) |
static ObjectEntry |
deleteObjectEntry(java.lang.String externalReferenceCode,
long companyId,
long groupId) |
static ObjectEntry |
fetchManyToOneObjectEntry(long groupId,
long objectRelationshipId,
long primaryKey) |
static ObjectEntry |
fetchObjectEntry(long objectEntryId) |
static java.util.List<ObjectEntry> |
getManyToManyObjectEntries(long groupId,
long objectRelationshipId,
long primaryKey,
boolean related,
boolean reverse,
java.lang.String search,
int start,
int end) |
static int |
getManyToManyObjectEntriesCount(long groupId,
long objectRelationshipId,
long primaryKey,
boolean related,
boolean reverse,
java.lang.String search) |
static com.liferay.portal.kernel.security.permission.resource.ModelResourcePermission<ObjectEntry> |
getModelResourcePermission(long objectDefinitionId) |
static ObjectEntry |
getObjectEntry(long objectEntryId) |
static ObjectEntry |
getObjectEntry(java.lang.String externalReferenceCode,
long companyId,
long groupId) |
static java.util.List<ObjectEntry> |
getOneToManyObjectEntries(long groupId,
long objectRelationshipId,
long primaryKey,
boolean related,
java.lang.String search,
int start,
int end) |
static int |
getOneToManyObjectEntriesCount(long groupId,
long objectRelationshipId,
long primaryKey,
boolean related,
java.lang.String search) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static ObjectEntryService |
getService() |
static boolean |
hasModelResourcePermission(long objectDefinitionId,
long objectEntryId,
java.lang.String actionId) |
static boolean |
hasModelResourcePermission(ObjectEntry objectEntry,
java.lang.String actionId) |
static boolean |
hasModelResourcePermission(com.liferay.portal.kernel.model.User user,
long objectEntryId,
java.lang.String actionId) |
static boolean |
hasPortletResourcePermission(long groupId,
long objectDefinitionId,
java.lang.String actionId) |
static ObjectEntry |
updateObjectEntry(long objectEntryId,
java.util.Map<java.lang.String,java.io.Serializable> values,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static ObjectEntry addObjectEntry(long groupId, long objectDefinitionId, java.util.Map<java.lang.String,java.io.Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry addOrUpdateObjectEntry(java.lang.String externalReferenceCode, long groupId, long objectDefinitionId, java.util.Map<java.lang.String,java.io.Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void checkModelResourcePermission(long objectDefinitionId, long objectEntryId, java.lang.String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry deleteObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry deleteObjectEntry(java.lang.String externalReferenceCode, long companyId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry fetchManyToOneObjectEntry(long groupId, long objectRelationshipId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry fetchObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<ObjectEntry> getManyToManyObjectEntries(long groupId, long objectRelationshipId, long primaryKey, boolean related, boolean reverse, java.lang.String search, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getManyToManyObjectEntriesCount(long groupId, long objectRelationshipId, long primaryKey, boolean related, boolean reverse, java.lang.String search) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.security.permission.resource.ModelResourcePermission<ObjectEntry> getModelResourcePermission(long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry getObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry getObjectEntry(java.lang.String externalReferenceCode, long companyId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<ObjectEntry> getOneToManyObjectEntries(long groupId, long objectRelationshipId, long primaryKey, boolean related, java.lang.String search, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getOneToManyObjectEntriesCount(long groupId, long objectRelationshipId, long primaryKey, boolean related, java.lang.String search) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static boolean hasModelResourcePermission(long objectDefinitionId, long objectEntryId, java.lang.String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean hasModelResourcePermission(ObjectEntry objectEntry, java.lang.String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean hasModelResourcePermission(com.liferay.portal.kernel.model.User user, long objectEntryId, java.lang.String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean hasPortletResourcePermission(long groupId, long objectDefinitionId, java.lang.String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntry updateObjectEntry(long objectEntryId, java.util.Map<java.lang.String,java.io.Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static ObjectEntryService getService()