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 TypeMethodDescriptionvoid
deleteRelatedModel
(long userId, long groupId, long objectRelationshipId, long primaryKey, String deletionType) void
disassociateRelatedModels
(long userId, long objectRelationshipId, long primaryKey1, long primaryKey2) default T
fetchRelatedModel
(long groupId, long objectRelationshipId, long primaryKey) long
getRelatedModels
(long groupId, long objectRelationshipId, long primaryKey, String search, int start, int end) int
getRelatedModelsCount
(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 int
getUnrelatedModelsCount
(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
-