Package com.liferay.object.service
Class ObjectEntryServiceUtil
java.lang.Object
com.liferay.object.service.ObjectEntryServiceUtil
Provides the remote service utility for ObjectEntry. This utility wraps
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectEntryaddObjectEntry(long groupId, long objectDefinitionId, long objectEntryFolderId, String defaultLanguageId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryaddOrUpdateObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidcheckModelResourcePermission(long objectDefinitionId, long objectEntryId, String actionId) static ObjectEntrycopyObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntrydeleteObjectEntry(long objectEntryId) static ObjectEntryexpireObjectEntry(long objectEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryfetchManyToOneObjectEntry(long groupId, long objectRelationshipId, long primaryKey) static ObjectEntryfetchObjectEntry(long objectEntryId) static ObjectEntryfetchObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) static List<ObjectEntry> getManyToManyObjectEntries(long groupId, long objectRelationshipId, long primaryKey, boolean related, boolean reverse, String search, int start, int end) static intgetManyToManyObjectEntriesCount(long groupId, long objectRelationshipId, long primaryKey, boolean related, boolean reverse, String search) static com.liferay.portal.kernel.security.permission.resource.ModelResourcePermission<ObjectEntry> getModelResourcePermission(long objectDefinitionId) static List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int status, int start, int end) static ObjectEntrygetObjectEntry(long objectEntryId) static ObjectEntrygetObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) static List<ObjectEntry> getOneToManyObjectEntries(long groupId, long objectRelationshipId, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved, long primaryKey, boolean related, String search, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) static intgetOneToManyObjectEntriesCount(long groupId, long objectRelationshipId, com.liferay.petra.sql.dsl.expression.Predicate predicate, long primaryKey, boolean related, String search) static ObjectEntrygetOrAddEmptyObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) static StringReturns the OSGi service identifier.static ObjectEntryServicestatic booleanhasModelResourcePermission(long objectDefinitionId, long objectEntryId, String actionId) static booleanhasModelResourcePermission(ObjectEntry objectEntry, String actionId) static booleanhasModelResourcePermission(com.liferay.portal.kernel.model.User user, long objectEntryId, String actionId) static booleanhasPortletResourcePermission(long groupId, long objectDefinitionId, String actionId) static ObjectEntrymoveObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntrymoveObjectEntryToTrash(ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntrypartialUpdateObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryrestoreObjectEntryFromTrash(ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidsubscribeObjectEntry(long groupId, long objectEntryId) static voidunsubscribeObjectEntry(long objectEntryId) static ObjectEntryupdateObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidvalidate(long groupId, ObjectEntry objectEntry, List<String> objectValidationRuleExternalReferenceCodes, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
ObjectEntryServiceUtil
public ObjectEntryServiceUtil()
-
-
Method Details
-
addObjectEntry
public static ObjectEntry addObjectEntry(long groupId, long objectDefinitionId, long objectEntryFolderId, String defaultLanguageId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateObjectEntry
public static ObjectEntry addOrUpdateObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkModelResourcePermission
public static void checkModelResourcePermission(long objectDefinitionId, long objectEntryId, String actionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyObjectEntry
public static ObjectEntry copyObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectEntry
public static ObjectEntry deleteObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
expireObjectEntry
public static ObjectEntry expireObjectEntry(long objectEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchManyToOneObjectEntry
public static ObjectEntry fetchManyToOneObjectEntry(long groupId, long objectRelationshipId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchObjectEntry
public static ObjectEntry fetchObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchObjectEntry
public static ObjectEntry fetchObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getManyToManyObjectEntries
public static List<ObjectEntry> getManyToManyObjectEntries(long groupId, long objectRelationshipId, long primaryKey, boolean related, boolean reverse, String search, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getManyToManyObjectEntriesCount
public static int getManyToManyObjectEntriesCount(long groupId, long objectRelationshipId, long primaryKey, boolean related, boolean reverse, String search) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getModelResourcePermission
public static com.liferay.portal.kernel.security.permission.resource.ModelResourcePermission<ObjectEntry> getModelResourcePermission(long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectEntries
public static List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectEntry
public static ObjectEntry getObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectEntry
public static ObjectEntry getObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOneToManyObjectEntries
public static List<ObjectEntry> getOneToManyObjectEntries(long groupId, long objectRelationshipId, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved, long primaryKey, boolean related, String search, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOneToManyObjectEntriesCount
public static int getOneToManyObjectEntriesCount(long groupId, long objectRelationshipId, com.liferay.petra.sql.dsl.expression.Predicate predicate, long primaryKey, boolean related, String search) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrAddEmptyObjectEntry
public static ObjectEntry getOrAddEmptyObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
hasModelResourcePermission
public static boolean hasModelResourcePermission(long objectDefinitionId, long objectEntryId, String actionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasModelResourcePermission
public static boolean hasModelResourcePermission(ObjectEntry objectEntry, String actionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasModelResourcePermission
public static boolean hasModelResourcePermission(com.liferay.portal.kernel.model.User user, long objectEntryId, String actionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasPortletResourcePermission
public static boolean hasPortletResourcePermission(long groupId, long objectDefinitionId, String actionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveObjectEntry
public static ObjectEntry moveObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveObjectEntryToTrash
public static ObjectEntry moveObjectEntryToTrash(ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
partialUpdateObjectEntry
public static ObjectEntry partialUpdateObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreObjectEntryFromTrash
public static ObjectEntry restoreObjectEntryFromTrash(ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeObjectEntry
public static void subscribeObjectEntry(long groupId, long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeObjectEntry
public static void unsubscribeObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateObjectEntry
public static ObjectEntry updateObjectEntry(long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
validate
public static void validate(long groupId, ObjectEntry objectEntry, List<String> objectValidationRuleExternalReferenceCodes, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-