Class SharepointOAuth2TokenEntryLocalServiceWrapper

java.lang.Object
com.liferay.sharepoint.rest.oauth2.service.SharepointOAuth2TokenEntryLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<SharepointOAuth2TokenEntryLocalService>, SharepointOAuth2TokenEntryLocalService

public class SharepointOAuth2TokenEntryLocalServiceWrapper extends Object implements com.liferay.portal.kernel.service.ServiceWrapper<SharepointOAuth2TokenEntryLocalService>, SharepointOAuth2TokenEntryLocalService
See Also:
Generated:
  • Constructor Details

    • SharepointOAuth2TokenEntryLocalServiceWrapper

      public SharepointOAuth2TokenEntryLocalServiceWrapper()
    • SharepointOAuth2TokenEntryLocalServiceWrapper

      public SharepointOAuth2TokenEntryLocalServiceWrapper(SharepointOAuth2TokenEntryLocalService sharepointOAuth2TokenEntryLocalService)
  • Method Details

    • addSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry addSharepointOAuth2TokenEntry(long userId, String configurationPid, String accessToken, String refreshToken, Date expirationDate) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry addSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
      Adds the sharepoint o auth2 token entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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:
      addSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      sharepointOAuth2TokenEntry - the sharepoint o auth2 token entry
      Returns:
      the sharepoint o auth2 token entry that was added
    • createPersistedModel

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

      public SharepointOAuth2TokenEntry createSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
      Creates a new sharepoint o auth2 token entry with the primary key. Does not add the sharepoint o auth2 token entry to the database.
      Specified by:
      createSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      sharepointOAuth2TokenEntryId - the primary key for the new sharepoint o auth2 token entry
      Returns:
      the new sharepoint o auth2 token entry
    • 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 com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      deletePersistedModel in interface SharepointOAuth2TokenEntryLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry deleteSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the sharepoint o auth2 token entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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:
      deleteSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      sharepointOAuth2TokenEntryId - the primary key of the sharepoint o auth2 token entry
      Returns:
      the sharepoint o auth2 token entry that was removed
      Throws:
      PortalException - if a sharepoint o auth2 token entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteSharepointOAuth2TokenEntry

      public void deleteSharepointOAuth2TokenEntry(long userId, String configurationPid) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry deleteSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
      Deletes the sharepoint o auth2 token entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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:
      deleteSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      sharepointOAuth2TokenEntry - the sharepoint o auth2 token entry
      Returns:
      the sharepoint o auth2 token entry that was removed
    • deleteUserSharepointOAuth2TokenEntries

      public void deleteUserSharepointOAuth2TokenEntries(long userId)
      Specified by:
      deleteUserSharepointOAuth2TokenEntries in interface SharepointOAuth2TokenEntryLocalService
    • dslQuery

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

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

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface SharepointOAuth2TokenEntryLocalService
    • 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 SharepointOAuth2TokenEntryLocalService
      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.sharepoint.rest.oauth2.model.impl.SharepointOAuth2TokenEntryModelImpl.

      Specified by:
      dynamicQuery in interface SharepointOAuth2TokenEntryLocalService
      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.sharepoint.rest.oauth2.model.impl.SharepointOAuth2TokenEntryModelImpl.

      Specified by:
      dynamicQuery in interface SharepointOAuth2TokenEntryLocalService
      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 SharepointOAuth2TokenEntryLocalService
      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 SharepointOAuth2TokenEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry fetchSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
      Specified by:
      fetchSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
    • fetchSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry fetchSharepointOAuth2TokenEntry(long userId, String configurationPid)
      Specified by:
      fetchSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
    • getActionableDynamicQuery

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

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface SharepointOAuth2TokenEntryLocalService
      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 com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      getPersistedModel in interface SharepointOAuth2TokenEntryLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getSharepointOAuth2TokenEntries

      public List<SharepointOAuth2TokenEntry> getSharepointOAuth2TokenEntries(int start, int end)
      Returns a range of all the sharepoint o auth2 token entries.

      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.sharepoint.rest.oauth2.model.impl.SharepointOAuth2TokenEntryModelImpl.

      Specified by:
      getSharepointOAuth2TokenEntries in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - the upper bound of the range of sharepoint o auth2 token entries (not inclusive)
      Returns:
      the range of sharepoint o auth2 token entries
    • getSharepointOAuth2TokenEntriesCount

      public int getSharepointOAuth2TokenEntriesCount()
      Returns the number of sharepoint o auth2 token entries.
      Specified by:
      getSharepointOAuth2TokenEntriesCount in interface SharepointOAuth2TokenEntryLocalService
      Returns:
      the number of sharepoint o auth2 token entries
    • getSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry getSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the sharepoint o auth2 token entry with the primary key.
      Specified by:
      getSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      sharepointOAuth2TokenEntryId - the primary key of the sharepoint o auth2 token entry
      Returns:
      the sharepoint o auth2 token entry
      Throws:
      PortalException - if a sharepoint o auth2 token entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry getSharepointOAuth2TokenEntry(long userId, String configurationPid) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserSharepointOAuth2TokenEntriesCount

      public int getUserSharepointOAuth2TokenEntriesCount(long userId)
      Specified by:
      getUserSharepointOAuth2TokenEntriesCount in interface SharepointOAuth2TokenEntryLocalService
    • updateSharepointOAuth2TokenEntry

      public SharepointOAuth2TokenEntry updateSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
      Updates the sharepoint o auth2 token entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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:
      updateSharepointOAuth2TokenEntry in interface SharepointOAuth2TokenEntryLocalService
      Parameters:
      sharepointOAuth2TokenEntry - the sharepoint o auth2 token entry
      Returns:
      the sharepoint o auth2 token entry that was updated
    • getBasePersistence

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

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

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