Interface ObjectEntryLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
ObjectEntryLocalServiceWrapper

@ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface ObjectEntryLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for ObjectEntry. 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.
See Also:
Generated:
  • Method Details

    • addObjectEntry

      ObjectEntry addObjectEntry(long userId, long groupId, long objectDefinitionId, 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
    • addObjectEntry

      @Indexable(type=REINDEX) ObjectEntry addObjectEntry(ObjectEntry objectEntry)
      Adds the object entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect ObjectEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      objectEntry - the object entry
      Returns:
      the object entry that was added
    • addObjectEntry

      ObjectEntry addObjectEntry(String externalReferenceCode, long userId, ObjectDefinition objectDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateExtensionDynamicObjectDefinitionTableValues

      void addOrUpdateExtensionDynamicObjectDefinitionTableValues(long userId, ObjectDefinition objectDefinition, long primaryKey, 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

      ObjectEntry addOrUpdateObjectEntry(String externalReferenceCode, long userId, long groupId, long objectDefinitionId, 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
    • createObjectEntry

      @Transactional(enabled=false) ObjectEntry createObjectEntry(long objectEntryId)
      Creates a new object entry with the primary key. Does not add the object entry to the database.
      Parameters:
      objectEntryId - the primary key for the new object entry
      Returns:
      the new object entry
    • createPersistedModel

      com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteExtensionDynamicObjectDefinitionTableValues

      void deleteExtensionDynamicObjectDefinitionTableValues(ObjectDefinition objectDefinition, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectEntry

      @Indexable(type=DELETE) ObjectEntry deleteObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the object entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect ObjectEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      objectEntryId - the primary key of the object entry
      Returns:
      the object entry that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a object entry with the primary key could not be found
    • deleteObjectEntry

      @Indexable(type=DELETE) @SystemEvent(type=1) ObjectEntry deleteObjectEntry(ObjectEntry objectEntry) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the object entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect ObjectEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      objectEntry - the object entry
      Returns:
      the object entry that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectEntry

      ObjectEntry deleteObjectEntry(String externalReferenceCode, long companyId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteRelatedObjectEntries

      void deleteRelatedObjectEntries(long groupId, long objectDefinitionId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.object.model.impl.ObjectEntryModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.object.model.impl.ObjectEntryModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchManyToOneObjectEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry fetchManyToOneObjectEntry(long groupId, long objectRelationshipId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchObjectEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry fetchObjectEntry(long objectEntryId)
    • fetchObjectEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry fetchObjectEntry(String externalReferenceCode, long objectDefinitionId)
    • fetchObjectEntryByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry fetchObjectEntryByUuidAndGroupId(String uuid, long groupId)
      Returns the object entry matching the UUID and group.
      Parameters:
      uuid - the object entry's UUID
      groupId - the primary key of the group
      Returns:
      the matching object entry, or null if a matching object entry could not be found
    • getActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getAggregationCounts

      @Transactional(propagation=SUPPORTS, readOnly=true) Map<Object,Long> getAggregationCounts(long groupId, long objectDefinitionId, String aggregationTerm, com.liferay.petra.sql.dsl.expression.Predicate predicate, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getExtensionDynamicObjectDefinitionTableValues

      @Transactional(propagation=SUPPORTS, readOnly=true) Map<String,Serializable> getExtensionDynamicObjectDefinitionTableValues(ObjectDefinition objectDefinition, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getManyToManyObjectEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) 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

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
    • getObjectEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectEntry> getObjectEntries(int start, int end)
      Returns a range of all the object entries.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.object.model.impl.ObjectEntryModelImpl.

      Parameters:
      start - the lower bound of the range of object entries
      end - the upper bound of the range of object entries (not inclusive)
      Returns:
      the range of object entries
    • getObjectEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int start, int end)
    • getObjectEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int status, int start, int end)
    • getObjectEntriesByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectEntry> getObjectEntriesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the object entries matching the UUID and company.
      Parameters:
      uuid - the UUID of the object entries
      companyId - the primary key of the company
      Returns:
      the matching object entries, or an empty list if no matches were found
    • getObjectEntriesByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectEntry> getObjectEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
      Returns a range of object entries matching the UUID and company.
      Parameters:
      uuid - the UUID of the object entries
      companyId - the primary key of the company
      start - the lower bound of the range of object entries
      end - the upper bound of the range of object entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching object entries, or an empty list if no matches were found
    • getObjectEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getObjectEntriesCount()
      Returns the number of object entries.
      Returns:
      the number of object entries
    • getObjectEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getObjectEntriesCount(long objectDefinitionId)
    • getObjectEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long getObjectEntriesCount(long userId, Date createDate, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getObjectEntriesCount(long groupId, long objectDefinitionId)
    • getObjectEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long getObjectEntriesCount(long groupId, ObjectDefinition objectDefinition, com.liferay.petra.sql.dsl.expression.Predicate predicate) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry getObjectEntry(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the object entry with the primary key.
      Parameters:
      objectEntryId - the primary key of the object entry
      Returns:
      the object entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a object entry with the primary key could not be found
    • getObjectEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry getObjectEntry(String externalReferenceCode, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry getObjectEntry(String externalReferenceCode, long companyId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectEntryByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) ObjectEntry getObjectEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the object entry matching the UUID and group.
      Parameters:
      uuid - the object entry's UUID
      groupId - the primary key of the group
      Returns:
      the matching object entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching object entry could not be found
    • getOneToManyObjectEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectEntry> getOneToManyObjectEntries(long groupId, long objectRelationshipId, long primaryKey, boolean related, String search, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOneToManyObjectEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getOneToManyObjectEntriesCount(long groupId, long objectRelationshipId, long primaryKey, boolean related, String search) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPrimaryKeys

      @Transactional(propagation=SUPPORTS, readOnly=true) List<Long> getPrimaryKeys(long groupId, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, 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
    • getSystemModelAttributes

      @Transactional(propagation=SUPPORTS, readOnly=true) Map<String,Object> getSystemModelAttributes(ObjectDefinition objectDefinition, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSystemValues

      @Transactional(propagation=SUPPORTS, readOnly=true) Map<String,Serializable> getSystemValues(ObjectEntry objectEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getTitleValue

      @Transactional(propagation=SUPPORTS, readOnly=true) String getTitleValue(long objectDefinitionId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getValues

      @Transactional(propagation=SUPPORTS, readOnly=true) Map<String,Serializable> getValues(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getValues

      @Transactional(propagation=SUPPORTS, readOnly=true) Map<String,Serializable> getValues(ObjectEntry objectEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getValuesList

      @Transactional(propagation=SUPPORTS, readOnly=true) List<Map<String,Serializable>> getValuesList(long groupId, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, 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
    • getValuesListCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getValuesListCount(long groupId, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, String search) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • insertIntoOrUpdateExtensionTable

      void insertIntoOrUpdateExtensionTable(long userId, long objectDefinitionId, long primaryKey, Map<String,Serializable> values) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchObjectEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<ObjectEntry> searchObjectEntries(long groupId, long objectDefinitionId, String keywords, int cur, int delta) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

      void updateAsset(long userId, ObjectEntry objectEntry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateObjectEntry

      ObjectEntry updateObjectEntry(long userId, long objectEntryId, 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
    • updateObjectEntry

      @Indexable(type=REINDEX) ObjectEntry updateObjectEntry(ObjectEntry objectEntry)
      Updates the object entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect ObjectEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      objectEntry - the object entry
      Returns:
      the object entry that was updated
    • updateRootObjectEntryIds

      void updateRootObjectEntryIds(ObjectDefinition objectDefinition1, ObjectDefinition objectDefinition2, ObjectRelationship objectRelationship) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      ObjectEntry updateStatus(long userId, long objectEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      ObjectEntry updateStatus(long userId, ObjectEntry objectEntry, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException