Class CTCollectionLocalServiceWrapper

java.lang.Object
com.liferay.change.tracking.service.CTCollectionLocalServiceWrapper
All Implemented Interfaces:
CTCollectionLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CTCollectionLocalService>

public class CTCollectionLocalServiceWrapper extends Object implements CTCollectionLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CTCollectionLocalService>
Provides a wrapper for CTCollectionLocalService.
See Also:
Generated:
  • Constructor Details

    • CTCollectionLocalServiceWrapper

      public CTCollectionLocalServiceWrapper()
    • CTCollectionLocalServiceWrapper

      public CTCollectionLocalServiceWrapper(CTCollectionLocalService ctCollectionLocalService)
  • Method Details

    • addCTCollection

      public CTCollection addCTCollection(CTCollection ctCollection)
      Adds the ct collection to the database. Also notifies the appropriate model listeners.

      Important: Inspect CTCollectionLocalServiceImpl 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.

      Specified by:
      addCTCollection in interface CTCollectionLocalService
      Parameters:
      ctCollection - the ct collection
      Returns:
      the ct collection that was added
    • addCTCollection

      public CTCollection addCTCollection(String externalReferenceCode, long companyId, long userId, long ctRemoteId, String name, String description) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCTCollection in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkConflicts

      public Map<Long,List<ConflictInfo>> checkConflicts(CTCollection ctCollection) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkConflicts in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkConflicts

      public Map<Long,List<ConflictInfo>> checkConflicts(long companyId, List<CTEntry> ctEntries, long fromCTCollectionId, String fromCTCollectionName, long toCTCollectionId, String toCTCollectionName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkConflicts in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkConflicts

      public Map<Long,List<ConflictInfo>> checkConflicts(long companyId, long[] ctEntryIds, long fromCTCollectionId, String fromCTCollectionName, long toCTCollectionId, String toCTCollectionName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkConflicts in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCTCollection

      public CTCollection createCTCollection(long ctCollectionId)
      Creates a new ct collection with the primary key. Does not add the ct collection to the database.
      Specified by:
      createCTCollection in interface CTCollectionLocalService
      Parameters:
      ctCollectionId - the primary key for the new ct collection
      Returns:
      the new ct collection
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface CTCollectionLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCompanyCTCollections

      public void deleteCompanyCTCollections(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCompanyCTCollections in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCTAutoResolutionInfo

      public void deleteCTAutoResolutionInfo(long ctAutoResolutionInfoId)
      Specified by:
      deleteCTAutoResolutionInfo in interface CTCollectionLocalService
    • deleteCTCollection

      public CTCollection deleteCTCollection(CTCollection ctCollection) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the ct collection from the database. Also notifies the appropriate model listeners.

      Important: Inspect CTCollectionLocalServiceImpl 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.

      Specified by:
      deleteCTCollection in interface CTCollectionLocalService
      Parameters:
      ctCollection - the ct collection
      Returns:
      the ct collection that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCTCollection

      public CTCollection deleteCTCollection(long ctCollectionId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the ct collection with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CTCollectionLocalServiceImpl 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.

      Specified by:
      deleteCTCollection in interface CTCollectionLocalService
      Parameters:
      ctCollectionId - the primary key of the ct collection
      Returns:
      the ct collection that was removed
      Throws:
      PortalException - if a ct collection with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface CTCollectionLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • discardCTEntry

      public void discardCTEntry(long ctCollectionId, long modelClassNameId, long modelClassPK, boolean force) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      discardCTEntry in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface CTCollectionLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface CTCollectionLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface CTCollectionLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface CTCollectionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.change.tracking.model.impl.CTCollectionModelImpl.

      Specified by:
      dynamicQuery in interface CTCollectionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.change.tracking.model.impl.CTCollectionModelImpl.

      Specified by:
      dynamicQuery in interface CTCollectionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CTCollectionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public 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.
      Specified by:
      dynamicQueryCount in interface CTCollectionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCTCollection

      public CTCollection fetchCTCollection(long ctCollectionId)
      Specified by:
      fetchCTCollection in interface CTCollectionLocalService
    • fetchCTCollectionByExternalReferenceCode

      public CTCollection fetchCTCollectionByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCTCollectionByExternalReferenceCode in interface CTCollectionLocalService
    • fetchCTCollectionByUuidAndCompanyId

      public CTCollection fetchCTCollectionByUuidAndCompanyId(String uuid, long companyId)
      Returns the ct collection with the matching UUID and company.
      Specified by:
      fetchCTCollectionByUuidAndCompanyId in interface CTCollectionLocalService
      Parameters:
      uuid - the ct collection's UUID
      companyId - the primary key of the company
      Returns:
      the matching ct collection, or null if a matching ct collection could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface CTCollectionLocalService
    • getCTCollection

      public CTCollection getCTCollection(long ctCollectionId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the ct collection with the primary key.
      Specified by:
      getCTCollection in interface CTCollectionLocalService
      Parameters:
      ctCollectionId - the primary key of the ct collection
      Returns:
      the ct collection
      Throws:
      PortalException - if a ct collection with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCTCollectionByExternalReferenceCode

      public CTCollection getCTCollectionByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCTCollectionByExternalReferenceCode in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCTCollectionByUuidAndCompanyId

      public CTCollection getCTCollectionByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the ct collection with the matching UUID and company.
      Specified by:
      getCTCollectionByUuidAndCompanyId in interface CTCollectionLocalService
      Parameters:
      uuid - the ct collection's UUID
      companyId - the primary key of the company
      Returns:
      the matching ct collection
      Throws:
      PortalException - if a matching ct collection could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCTCollections

      public List<CTCollection> getCTCollections(int start, int end)
      Returns a range of all the ct collections.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.change.tracking.model.impl.CTCollectionModelImpl.

      Specified by:
      getCTCollections in interface CTCollectionLocalService
      Parameters:
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of ct collections
    • getCTCollections

      public List<CTCollection> getCTCollections(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Specified by:
      getCTCollections in interface CTCollectionLocalService
    • getCTCollections

      public List<CTCollection> getCTCollections(long companyId, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Specified by:
      getCTCollections in interface CTCollectionLocalService
    • getCTCollectionsCount

      public int getCTCollectionsCount()
      Returns the number of ct collections.
      Specified by:
      getCTCollectionsCount in interface CTCollectionLocalService
      Returns:
      the number of ct collections
    • getCTMappingTableInfos

      public List<CTMappingTableInfo> getCTMappingTableInfos(long ctCollectionId)
      Specified by:
      getCTMappingTableInfos in interface CTCollectionLocalService
    • getExclusivePublishedCTCollections

      public List<CTCollection> getExclusivePublishedCTCollections(long modelClassNameId, long modelClassPK) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getExclusivePublishedCTCollections in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface CTCollectionLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface CTCollectionLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CTCollectionLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface CTCollectionLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getRelatedCTEntries

      public List<CTEntry> getRelatedCTEntries(long ctCollectionId, long[] ctEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getRelatedCTEntries in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRelatedCTEntriesMap

      public Map<Long,List<CTEntry>> getRelatedCTEntriesMap(long ctCollectionId, long modelClassNameId, long modelClassPK) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getRelatedCTEntriesMap in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • hasUnapprovedChanges

      public boolean hasUnapprovedChanges(long ctCollectionId) throws SQLException
      Specified by:
      hasUnapprovedChanges in interface CTCollectionLocalService
      Throws:
      SQLException
    • isCTEntryEnclosed

      public boolean isCTEntryEnclosed(long ctCollectionId, long modelClassNameId, long modelClassPK)
      Specified by:
      isCTEntryEnclosed in interface CTCollectionLocalService
    • moveCTEntry

      public void moveCTEntry(long fromCTCollectionId, long toCTCollectionId, long modelClassNameId, long modelClassPK) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveCTEntry in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • undoCTCollection

      public CTCollection undoCTCollection(long ctCollectionId, long userId, String name, String description) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      undoCTCollection in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCTCollection

      public CTCollection updateCTCollection(CTCollection ctCollection)
      Updates the ct collection in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CTCollectionLocalServiceImpl 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.

      Specified by:
      updateCTCollection in interface CTCollectionLocalService
      Parameters:
      ctCollection - the ct collection
      Returns:
      the ct collection that was updated
    • updateCTCollection

      public CTCollection updateCTCollection(long userId, long ctCollectionId, String name, String description) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCTCollection in interface CTCollectionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getWrappedService

      public CTCollectionLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CTCollectionLocalService>
    • setWrappedService

      public void setWrappedService(CTCollectionLocalService ctCollectionLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CTCollectionLocalService>