Interface ObjectRelationshipLocalService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.PersistedModelLocalService
- All Known Implementing Classes:
ObjectRelationshipLocalServiceWrapper
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddObjectRelationship(ObjectRelationship objectRelationship) Adds the object relationship to the database.addObjectRelationship(String externalReferenceCode, long userId, long objectDefinitionId1, long objectDefinitionId2, long parameterObjectFieldId, String deletionType, boolean edge, Map<Locale, String> labelMap, String name, boolean system, String type, ObjectField objectField) addObjectRelationship(String externalReferenceCode, long userId, long objectDefinitionId1, long objectDefinitionId2, ObjectField objectField) voidaddObjectRelationshipMappingTableValues(long userId, long objectRelationshipId, long primaryKey1, long primaryKey2, com.liferay.portal.kernel.service.ServiceContext serviceContext) createManyToManyObjectRelationshipTable(long userId, ObjectRelationship objectRelationship) createObjectRelationship(long objectRelationshipId) Creates a new object relationship with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) deleteObjectRelationship(long objectRelationshipId) Deletes the object relationship with the primary key from the database.deleteObjectRelationship(ObjectRelationship objectRelationship) Deletes the object relationship from the database.voiddeleteObjectRelationshipMappingTableValues(long objectRelationshipId, long primaryKey1) voiddeleteObjectRelationshipMappingTableValues(long objectRelationshipId, long primaryKey1, long primaryKey2) voiddeleteObjectRelationships(long objectDefinitionId1) voiddeleteObjectRelationships(long objectDefinitionId1, boolean reverse) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) voiddisableEdge(long objectDefinitionId2) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.fetchObjectRelationship(long objectRelationshipId) fetchObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long objectDefinitionId1) fetchObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long companyId, long objectDefinitionId1) fetchObjectRelationshipByObjectDefinitionId(long objectDefinitionId, String name) fetchObjectRelationshipByObjectDefinitionId1(long objectDefinitionId1, String name) fetchObjectRelationshipByObjectFieldId2(long objectFieldId2) fetchObjectRelationshipByUuidAndCompanyId(String uuid, long companyId) Returns the object relationship with the matching UUID and company.fetchReverseObjectRelationship(ObjectRelationship objectRelationship, boolean reverse) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerygetAllObjectRelationships(long objectDefinitionId) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerygetObjectRelationship(long objectRelationshipId) Returns the object relationship with the primary key.getObjectRelationship(long objectDefinitionId1, String name) getObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long companyId, long objectDefinitionId1) getObjectRelationshipByObjectDefinitionId(long objectDefinitionId, String name) getObjectRelationshipByUuidAndCompanyId(String uuid, long companyId) Returns the object relationship with the matching UUID and company.getObjectRelationships(int start, int end) Returns a range of all the object relationships.getObjectRelationships(long objectDefinitionId1) getObjectRelationships(long objectDefinitionId1, boolean edge) getObjectRelationships(long objectDefinitionId1, int start, int end) getObjectRelationships(long objectDefinitionId1, long objectDefinition2, String type) getObjectRelationships(long objectDefinitionId, String type) getObjectRelationships(long objectDefinitionId1, String deletionType, boolean reverse) getObjectRelationshipsByObjectDefinitionId2(long objectDefinitionId2) intReturns the number of object relationships.getObjectRelationshipsMap(long companyId) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) voidregisterObjectRelationshipsRelatedInfoCollectionProviders(ObjectDefinition objectDefinition1, ObjectDefinitionLocalService objectDefinitionLocalService, List<ObjectRelationship> objectRelationships) updateObjectRelationship(ObjectRelationship objectRelationship) Updates the object relationship in the database or adds it if it does not yet exist.updateObjectRelationship(String externalReferenceCode, long objectRelationshipId, long parameterObjectFieldId, String deletionType, boolean edge, Map<Locale, String> labelMap, ObjectField objectField) voidupdateUserId(long companyId, long oldUserId, long newUserId) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addObjectRelationship
@Indexable(type=REINDEX) ObjectRelationship addObjectRelationship(ObjectRelationship objectRelationship) Adds the object relationship to the database. Also notifies the appropriate model listeners.Important: Inspect ObjectRelationshipLocalServiceImpl 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:
objectRelationship- the object relationship- Returns:
- the object relationship that was added
-
addObjectRelationship
@Indexable(type=REINDEX) ObjectRelationship addObjectRelationship(String externalReferenceCode, long userId, long objectDefinitionId1, long objectDefinitionId2, long parameterObjectFieldId, String deletionType, boolean edge, Map<Locale, String> labelMap, String name, boolean system, String type, ObjectField objectField) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addObjectRelationship
@Indexable(type=REINDEX) ObjectRelationship addObjectRelationship(String externalReferenceCode, long userId, long objectDefinitionId1, long objectDefinitionId2, ObjectField objectField) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addObjectRelationshipMappingTableValues
void addObjectRelationshipMappingTableValues(long userId, long objectRelationshipId, long primaryKey1, long primaryKey2, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createManyToManyObjectRelationshipTable
@Indexable(type=REINDEX) ObjectRelationship createManyToManyObjectRelationshipTable(long userId, ObjectRelationship objectRelationship) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createObjectRelationship
@Transactional(enabled=false) ObjectRelationship createObjectRelationship(long objectRelationshipId) Creates a new object relationship with the primary key. Does not add the object relationship to the database.- Parameters:
objectRelationshipId- the primary key for the new object relationship- Returns:
- the new object relationship
-
createPersistedModel
com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectRelationship
@Indexable(type=DELETE) ObjectRelationship deleteObjectRelationship(long objectRelationshipId) throws com.liferay.portal.kernel.exception.PortalException Deletes the object relationship with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect ObjectRelationshipLocalServiceImpl 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:
objectRelationshipId- the primary key of the object relationship- Returns:
- the object relationship that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a object relationship with the primary key could not be found
-
deleteObjectRelationship
@Indexable(type=DELETE) @SystemEvent(type=1) ObjectRelationship deleteObjectRelationship(ObjectRelationship objectRelationship) throws com.liferay.portal.kernel.exception.PortalException Deletes the object relationship from the database. Also notifies the appropriate model listeners.Important: Inspect ObjectRelationshipLocalServiceImpl 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:
objectRelationship- the object relationship- Returns:
- the object relationship that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectRelationshipMappingTableValues
void deleteObjectRelationshipMappingTableValues(long objectRelationshipId, long primaryKey1) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectRelationshipMappingTableValues
void deleteObjectRelationshipMappingTableValues(long objectRelationshipId, long primaryKey1, long primaryKey2) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectRelationships
void deleteObjectRelationships(long objectDefinitionId1) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectRelationships
void deleteObjectRelationships(long objectDefinitionId1, boolean reverse) 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:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
disableEdge
void disableEdge(long objectDefinitionId2) 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:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.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 - 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.ObjectRelationshipModelImpl.- 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
@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 - 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.ObjectRelationshipModelImpl.- 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
@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 queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchObjectRelationship
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationship(long objectRelationshipId) -
fetchObjectRelationshipByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long objectDefinitionId1) -
fetchObjectRelationshipByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long companyId, long objectDefinitionId1) -
fetchObjectRelationshipByObjectDefinitionId
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationshipByObjectDefinitionId(long objectDefinitionId, String name) -
fetchObjectRelationshipByObjectDefinitionId1
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationshipByObjectDefinitionId1(long objectDefinitionId1, String name) -
fetchObjectRelationshipByObjectFieldId2
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationshipByObjectFieldId2(long objectFieldId2) -
fetchObjectRelationshipByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchObjectRelationshipByUuidAndCompanyId(String uuid, long companyId) Returns the object relationship with the matching UUID and company.- Parameters:
uuid- the object relationship's UUIDcompanyId- the primary key of the company- Returns:
- the matching object relationship, or
nullif a matching object relationship could not be found
-
fetchReverseObjectRelationship
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship fetchReverseObjectRelationship(ObjectRelationship objectRelationship, boolean reverse) -
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getAllObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getAllObjectRelationships(long objectDefinitionId) -
getExportActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getObjectRelationship
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship getObjectRelationship(long objectRelationshipId) throws com.liferay.portal.kernel.exception.PortalException Returns the object relationship with the primary key.- Parameters:
objectRelationshipId- the primary key of the object relationship- Returns:
- the object relationship
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a object relationship with the primary key could not be found
-
getObjectRelationship
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship getObjectRelationship(long objectDefinitionId1, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectRelationshipByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship getObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long companyId, long objectDefinitionId1) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectRelationshipByObjectDefinitionId
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship getObjectRelationshipByObjectDefinitionId(long objectDefinitionId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getObjectRelationshipByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) ObjectRelationship getObjectRelationshipByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the object relationship with the matching UUID and company.- Parameters:
uuid- the object relationship's UUIDcompanyId- the primary key of the company- Returns:
- the matching object relationship
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching object relationship could not be found
-
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(int start, int end) Returns a range of all the object relationships.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.ObjectRelationshipModelImpl.- Parameters:
start- the lower bound of the range of object relationshipsend- the upper bound of the range of object relationships (not inclusive)- Returns:
- the range of object relationships
-
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1) -
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, boolean edge) -
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, int start, int end) -
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, long objectDefinition2, String type) -
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(long objectDefinitionId, String type) -
getObjectRelationships
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, String deletionType, boolean reverse) -
getObjectRelationshipsByObjectDefinitionId2
@Transactional(propagation=SUPPORTS, readOnly=true) List<ObjectRelationship> getObjectRelationshipsByObjectDefinitionId2(long objectDefinitionId2) -
getObjectRelationshipsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getObjectRelationshipsCount()Returns the number of object relationships.- Returns:
- the number of object relationships
-
getObjectRelationshipsMap
@Transactional(propagation=SUPPORTS, readOnly=true) Map<Long,List<ObjectRelationship>> getObjectRelationshipsMap(long companyId) -
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:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
registerObjectRelationshipsRelatedInfoCollectionProviders
void registerObjectRelationshipsRelatedInfoCollectionProviders(ObjectDefinition objectDefinition1, ObjectDefinitionLocalService objectDefinitionLocalService, List<ObjectRelationship> objectRelationships) -
updateObjectRelationship
@Indexable(type=REINDEX) ObjectRelationship updateObjectRelationship(ObjectRelationship objectRelationship) Updates the object relationship in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect ObjectRelationshipLocalServiceImpl 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:
objectRelationship- the object relationship- Returns:
- the object relationship that was updated
-
updateObjectRelationship
@Indexable(type=REINDEX) ObjectRelationship updateObjectRelationship(String externalReferenceCode, long objectRelationshipId, long parameterObjectFieldId, String deletionType, boolean edge, Map<Locale, String> labelMap, ObjectField objectField) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateUserId
void updateUserId(long companyId, long oldUserId, long newUserId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-