Interface ObjectRelatedModelsProvider<T extends com.liferay.portal.kernel.model.BaseModel<T>>


public interface ObjectRelatedModelsProvider<T extends com.liferay.portal.kernel.model.BaseModel<T>>
  • 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
    • getUnrelatedModels

      default List<T> getUnrelatedModels(long companyId, long groupId, ObjectDefinition objectDefinition, long objectEntryId, long objectRelationshipId, String search, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUnrelatedModelsCount

      default int getUnrelatedModelsCount(long companyId, long groupId, ObjectDefinition objectDefinition, long objectEntryId, long objectRelationshipId, String search) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException