Interface ObjectRelatedModelsProvider<T extends com.liferay.portal.kernel.model.BaseModel<T>>
public interface ObjectRelatedModelsProvider<T extends com.liferay.portal.kernel.model.BaseModel<T>>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRelatedModel(long userId, long groupId, long objectRelationshipId, long primaryKey, String deletionType) voiddisassociateRelatedModels(long userId, long objectRelationshipId, long primaryKey1, long primaryKey2) default TfetchRelatedModel(long groupId, long objectRelationshipId, long primaryKey) longgetRelatedModels(long groupId, long objectRelationshipId, long primaryKey, String search, int start, int end) intgetRelatedModelsCount(long groupId, long objectRelationshipId, long primaryKey, String search) getUnrelatedModels(long companyId, long groupId, ObjectDefinition objectDefinition, long objectEntryId, long objectRelationshipId, String search, int start, int end) default intgetUnrelatedModelsCount(long companyId, long groupId, ObjectDefinition objectDefinition, long objectEntryId, long objectRelationshipId, String search)
-
Method Details
-
deleteRelatedModel
void deleteRelatedModel(long userId, long groupId, long objectRelationshipId, long primaryKey, String deletionType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
disassociateRelatedModels
void disassociateRelatedModels(long userId, long objectRelationshipId, long primaryKey1, long primaryKey2) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchRelatedModel
default T fetchRelatedModel(long groupId, long objectRelationshipId, long primaryKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getClassName
String getClassName() -
getCompanyId
long getCompanyId() -
getObjectRelationshipType
String getObjectRelationshipType() -
getRelatedModels
List<T> getRelatedModels(long groupId, long objectRelationshipId, long primaryKey, String search, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRelatedModelsCount
int getRelatedModelsCount(long groupId, long objectRelationshipId, long primaryKey, String search) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-