Class ObjectEntryLocalServiceUtil
com.liferay.object.service.impl.ObjectEntryLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectEntryaddLatestApprovedObjectEntry(String externalReferenceCode, long groupId, long userId, long headObjectEntryId, ObjectDefinition objectDefinition, long objectEntryFolderId, String defaultLanguageId, int version, Map<String, Serializable> values) static ObjectEntryaddObjectEntry(long groupId, long userId, long objectDefinitionId, long objectEntryFolderId, String defaultLanguageId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryaddObjectEntry(ObjectEntry objectEntry) Adds the object entry to the database.static ObjectEntryaddObjectEntry(String externalReferenceCode, long groupId, long userId, ObjectDefinition objectDefinition, long objectEntryFolderId) static voidaddOrUpdateExtensionDynamicObjectDefinitionTableValues(long userId, ObjectDefinition objectDefinition, long primaryKey, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryaddOrUpdateObjectEntry(String externalReferenceCode, long groupId, long userId, long objectDefinitionId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidcheckObjectEntries(long companyId) static ObjectEntrycopyObjectEntry(long userId, long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntrycreateObjectEntry(long objectEntryId) Creates a new object entry with the primary key.static com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static voiddeleteExtensionDynamicObjectDefinitionTableValues(ObjectDefinition objectDefinition, long primaryKey) static ObjectEntrydeleteObjectEntry(long objectEntryId) Deletes the object entry with the primary key from the database.static ObjectEntrydeleteObjectEntry(ObjectEntry objectEntry) Deletes the object entry from the database.static com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) static voiddeleteRelatedObjectEntries(long groupId, long objectDefinitionId, long primaryKey) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuerystatic <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <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.static <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.static longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(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.static ObjectEntryexpireObjectEntry(long userId, long objectEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryfetchManyToOneObjectEntry(long groupId, long objectRelationshipId, long primaryKey) static ObjectEntryfetchObjectEntry(long objectEntryId) static ObjectEntryfetchObjectEntry(long groupId, long objectDefinitionId) static ObjectEntryfetchObjectEntry(long groupId, ObjectDefinition objectDefinition, String urlTitle) static ObjectEntryfetchObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) static ObjectEntryfetchObjectEntryByHeadObjectEntryId(long headObjectEntryId) static ObjectEntryfetchObjectEntryByUuidAndGroupId(String uuid, long groupId) Returns the object entry matching the UUID and group.static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerygetAggregationCounts(long groupId, long objectDefinitionId, String aggregationTerm, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved) static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static Map<String, Serializable> getExtensionDynamicObjectDefinitionTableValues(ObjectDefinition objectDefinition, long primaryKey) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerystatic Map<String, Serializable> getIndexedValues(ObjectEntry objectEntry) 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 List<ObjectEntry> getObjectEntries(int start, int end) Returns a range of all the object entries.static List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int start, int end) static List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int status, int start, int end) static List<ObjectEntry> getObjectEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the object entries matching the UUID and company.static 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.static intReturns the number of object entries.static intgetObjectEntriesCount(long objectDefinitionId) static intgetObjectEntriesCount(long groupId, long objectDefinitionId) static longgetObjectEntriesCount(long groupId, String languageId, ObjectDefinition objectDefinition, com.liferay.petra.sql.dsl.expression.Predicate predicate) static longgetObjectEntriesCount(long userId, Date createDate, long objectDefinitionId) static ObjectEntrygetObjectEntry(long objectEntryId) Returns the object entry with the primary key.static ObjectEntrygetObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) static ObjectEntrygetObjectEntryByUuidAndGroupId(String uuid, long groupId) Returns the object entry matching the UUID and group.static List<ObjectEntry> getObjectEntryFolderObjectEntries(long groupId, long objectEntryFolderId, int start, int end) static intgetObjectEntryFolderObjectEntriesCount(long groupId, long objectEntryFolderId) getOneToManyAggregationCounts(long groupId, long objectDefinitionId, long objectEntryId, long objectRelationshipId, String aggregationTerm, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean related, String search) 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 userId, long objectDefinitionId) static StringReturns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getPrimaryKeys(Long[] groupIds, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved, String search, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) static ObjectEntryLocalServicegetSystemModelAttributes(ObjectDefinition objectDefinition, long primaryKey) static Map<String, Serializable> getSystemValues(ObjectEntry objectEntry) static StringgetTitleValue(long objectDefinitionId, long primaryKey) static Map<String, Serializable> getValues(long objectEntryId) static Map<String, Serializable> getValues(ObjectEntry objectEntry) static 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) static intgetValuesListCount(long companyId, Long[] groupIds, Long[] objectDefinitionIds, com.liferay.petra.sql.dsl.expression.Predicate predicate) static intgetValuesListCount(Long[] groupIds, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved, String search) static voidinsertIntoOrUpdateExtensionTable(long userId, long objectDefinitionId, long primaryKey, Map<String, Serializable> values) static voidmoveObjectEntriesToTrash(long userId, ObjectEntryFolder objectEntryFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntrymoveObjectEntry(long userId, long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntrymoveObjectEntryToTrash(long userId, ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidmoveRelatedObjectEntriesToTrash(long groupId, long objectDefinitionId, long primaryKey) static ObjectEntrypartialUpdateObjectEntry(long userId, long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidrestoreObjectEntriesFromTrash(long userId, ObjectEntryFolder objectEntryFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryrestoreObjectEntryFromTrash(long userId, ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.search.BaseModelSearchResult<ObjectEntry> searchObjectEntries(long groupId, long objectDefinitionId, String keywords, int cur, int delta) static voidsubscribeObjectEntry(long userId, long groupId, long objectEntryId) static voidunsubscribeObjectEntry(long userId, long objectEntryId) static voidupdateAsset(long userId, ObjectEntry objectEntry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) static ObjectEntryupdateModifiedDate(long objectEntryId, Date modifiedDate) static ObjectEntryupdateObjectEntry(long userId, long objectEntryId, long objectEntryFolderId, Map<String, Serializable> values, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryupdateObjectEntry(ObjectEntry objectEntry) Updates the object entry in the database or adds it if it does not yet exist.static voidupdateRootObjectEntryIds(ObjectDefinition objectDefinition1, ObjectDefinition objectDefinition2, ObjectRelationship objectRelationship) static ObjectEntryupdateStatus(long userId, long objectEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectEntryupdateStatus(long userId, ObjectEntry objectEntry, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidvalidate(long groupId, ObjectEntry objectEntry, List<String> objectValidationRuleExternalReferenceCodes, com.liferay.portal.kernel.service.ServiceContext serviceContext, long userId)
-
Constructor Details
-
ObjectEntryLocalServiceUtil
public ObjectEntryLocalServiceUtil()
-
-
Method Details
-
addLatestApprovedObjectEntry
public static ObjectEntry addLatestApprovedObjectEntry(String externalReferenceCode, long groupId, long userId, long headObjectEntryId, ObjectDefinition objectDefinition, long objectEntryFolderId, String defaultLanguageId, int version, Map<String, Serializable> values) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addObjectEntry
public static ObjectEntry addObjectEntry(long groupId, long userId, 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
-
addObjectEntry
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
public static ObjectEntry addObjectEntry(String externalReferenceCode, long groupId, long userId, ObjectDefinition objectDefinition, long objectEntryFolderId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateExtensionDynamicObjectDefinitionTableValues
public static 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
public static ObjectEntry addOrUpdateObjectEntry(String externalReferenceCode, long groupId, long userId, 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
-
checkObjectEntries
public static void checkObjectEntries(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyObjectEntry
public static ObjectEntry copyObjectEntry(long userId, 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
-
createObjectEntry
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
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteExtensionDynamicObjectDefinitionTableValues
public static void deleteExtensionDynamicObjectDefinitionTableValues(ObjectDefinition objectDefinition, long primaryKey) 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 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
public static 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
-
deletePersistedModel
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRelatedObjectEntries
public static void deleteRelatedObjectEntries(long groupId, long objectDefinitionId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public static <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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectEntryModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public static <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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectEntryModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public static 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
public static 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 queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
expireObjectEntry
public static ObjectEntry expireObjectEntry(long userId, 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
-
fetchObjectEntry
-
fetchObjectEntry
public static ObjectEntry fetchObjectEntry(long groupId, ObjectDefinition objectDefinition, String urlTitle) -
fetchObjectEntry
public static ObjectEntry fetchObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) -
fetchObjectEntryByHeadObjectEntryId
-
fetchObjectEntryByUuidAndGroupId
Returns the object entry matching the UUID and group.- Parameters:
uuid- the object entry's UUIDgroupId- the primary key of the group- Returns:
- the matching object entry, or
nullif a matching object entry could not be found
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getAggregationCounts
public static Map<Object,Long> getAggregationCounts(long groupId, long objectDefinitionId, String aggregationTerm, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getExtensionDynamicObjectDefinitionTableValues
public static Map<String,Serializable> getExtensionDynamicObjectDefinitionTableValues(ObjectDefinition objectDefinition, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getIndexableActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getIndexedValues
public static Map<String,Serializable> getIndexedValues(ObjectEntry objectEntry) 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
-
getObjectEntries
Returns a range of all the object entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectEntryModelImpl.- Parameters:
start- the lower bound of the range of object entriesend- the upper bound of the range of object entries (not inclusive)- Returns:
- the range of object entries
-
getObjectEntries
public static List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int start, int end) -
getObjectEntries
public static List<ObjectEntry> getObjectEntries(long groupId, long objectDefinitionId, int status, int start, int end) -
getObjectEntriesByUuidAndCompanyId
Returns all the object entries matching the UUID and company.- Parameters:
uuid- the UUID of the object entriescompanyId- the primary key of the company- Returns:
- the matching object entries, or an empty list if no matches were found
-
getObjectEntriesByUuidAndCompanyId
public static 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 entriescompanyId- the primary key of the companystart- the lower bound of the range of object entriesend- the upper bound of the range of object entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching object entries, or an empty list if no matches were found
-
getObjectEntriesCount
public static int getObjectEntriesCount()Returns the number of object entries.- Returns:
- the number of object entries
-
getObjectEntriesCount
public static int getObjectEntriesCount(long objectDefinitionId) -
getObjectEntriesCount
public static long getObjectEntriesCount(long userId, Date createDate, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectEntriesCount
public static int getObjectEntriesCount(long groupId, long objectDefinitionId) -
getObjectEntriesCount
public static long getObjectEntriesCount(long groupId, String languageId, 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
public static 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
public static ObjectEntry getObjectEntry(String externalReferenceCode, long groupId, long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectEntryByUuidAndGroupId
public static 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 UUIDgroupId- 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
-
getObjectEntryFolderObjectEntries
public static List<ObjectEntry> getObjectEntryFolderObjectEntries(long groupId, long objectEntryFolderId, int start, int end) -
getObjectEntryFolderObjectEntriesCount
public static int getObjectEntryFolderObjectEntriesCount(long groupId, long objectEntryFolderId) -
getOneToManyAggregationCounts
public static Map<Object,Long> getOneToManyAggregationCounts(long groupId, long objectDefinitionId, long objectEntryId, long objectRelationshipId, String aggregationTerm, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean related, String search) 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 userId, 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
-
getPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPrimaryKeys
public static List<Long> getPrimaryKeys(Long[] groupIds, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved, 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
public static Map<String,Object> getSystemModelAttributes(ObjectDefinition objectDefinition, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSystemValues
public static Map<String,Serializable> getSystemValues(ObjectEntry objectEntry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTitleValue
public static String getTitleValue(long objectDefinitionId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getValues
public static Map<String,Serializable> getValues(long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getValues
public static Map<String,Serializable> getValues(ObjectEntry objectEntry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getValuesList
public static 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
public static int getValuesListCount(long companyId, Long[] groupIds, Long[] objectDefinitionIds, com.liferay.petra.sql.dsl.expression.Predicate predicate) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getValuesListCount
public static int getValuesListCount(Long[] groupIds, long companyId, long userId, long objectDefinitionId, com.liferay.petra.sql.dsl.expression.Predicate predicate, boolean preferApproved, String search) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
insertIntoOrUpdateExtensionTable
public static 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
-
moveObjectEntriesToTrash
public static void moveObjectEntriesToTrash(long userId, ObjectEntryFolder objectEntryFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveObjectEntry
public static ObjectEntry moveObjectEntry(long userId, 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(long userId, ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveRelatedObjectEntriesToTrash
public static void moveRelatedObjectEntriesToTrash(long groupId, long objectDefinitionId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
partialUpdateObjectEntry
public static ObjectEntry partialUpdateObjectEntry(long userId, 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
-
restoreObjectEntriesFromTrash
public static void restoreObjectEntriesFromTrash(long userId, ObjectEntryFolder objectEntryFolder, 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(long userId, ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchObjectEntries
public static 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
-
subscribeObjectEntry
public static void subscribeObjectEntry(long userId, long groupId, long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeObjectEntry
public static void unsubscribeObjectEntry(long userId, long objectEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public static 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
-
updateModifiedDate
public static ObjectEntry updateModifiedDate(long objectEntryId, Date modifiedDate) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateObjectEntry
public static ObjectEntry updateObjectEntry(long userId, 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
-
updateObjectEntry
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
public static void updateRootObjectEntryIds(ObjectDefinition objectDefinition1, ObjectDefinition objectDefinition2, ObjectRelationship objectRelationship) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public static 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
public static 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
-
validate
public static void validate(long groupId, ObjectEntry objectEntry, List<String> objectValidationRuleExternalReferenceCodes, com.liferay.portal.kernel.service.ServiceContext serviceContext, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-