Class SegmentsEntryRoleLocalServiceWrapper

java.lang.Object
com.liferay.segments.service.SegmentsEntryRoleLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<SegmentsEntryRole>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<SegmentsEntryRoleLocalService>, SegmentsEntryRoleLocalService

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

    • SegmentsEntryRoleLocalServiceWrapper

      public SegmentsEntryRoleLocalServiceWrapper()
    • SegmentsEntryRoleLocalServiceWrapper

      public SegmentsEntryRoleLocalServiceWrapper(SegmentsEntryRoleLocalService segmentsEntryRoleLocalService)
  • Method Details

    • addSegmentsEntryRole

      public SegmentsEntryRole addSegmentsEntryRole(long segmentsEntryId, long roleId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSegmentsEntryRole

      public SegmentsEntryRole addSegmentsEntryRole(SegmentsEntryRole segmentsEntryRole)
      Adds the segments entry role to the database. Also notifies the appropriate model listeners.

      Important: Inspect SegmentsEntryRoleLocalServiceImpl 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:
      addSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Parameters:
      segmentsEntryRole - the segments entry role
      Returns:
      the segments entry role 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 SegmentsEntryRoleLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • createSegmentsEntryRole

      public SegmentsEntryRole createSegmentsEntryRole(long segmentsEntryRoleId)
      Creates a new segments entry role with the primary key. Does not add the segments entry role to the database.
      Specified by:
      createSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Parameters:
      segmentsEntryRoleId - the primary key for the new segments entry role
      Returns:
      the new segments entry role
    • 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 SegmentsEntryRoleLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteSegmentsEntryRole

      public SegmentsEntryRole deleteSegmentsEntryRole(long segmentsEntryRoleId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the segments entry role with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect SegmentsEntryRoleLocalServiceImpl 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:
      deleteSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Parameters:
      segmentsEntryRoleId - the primary key of the segments entry role
      Returns:
      the segments entry role that was removed
      Throws:
      PortalException - if a segments entry role with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteSegmentsEntryRole

      public SegmentsEntryRole deleteSegmentsEntryRole(long segmentsEntryId, long roleId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSegmentsEntryRole

      public SegmentsEntryRole deleteSegmentsEntryRole(SegmentsEntryRole segmentsEntryRole)
      Deletes the segments entry role from the database. Also notifies the appropriate model listeners.

      Important: Inspect SegmentsEntryRoleLocalServiceImpl 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:
      deleteSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Parameters:
      segmentsEntryRole - the segments entry role
      Returns:
      the segments entry role that was removed
    • deleteSegmentsEntryRoles

      public void deleteSegmentsEntryRoles(long segmentsEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSegmentsEntryRoles in interface SegmentsEntryRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSegmentsEntryRolesByRoleId

      public void deleteSegmentsEntryRolesByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSegmentsEntryRolesByRoleId in interface SegmentsEntryRoleLocalService
      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 com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQuery in interface SegmentsEntryRoleLocalService
    • 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 SegmentsEntryRoleLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface SegmentsEntryRoleLocalService
    • 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 SegmentsEntryRoleLocalService
      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.segments.model.impl.SegmentsEntryRoleModelImpl.

      Specified by:
      dynamicQuery in interface SegmentsEntryRoleLocalService
      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.segments.model.impl.SegmentsEntryRoleModelImpl.

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

      public SegmentsEntryRole fetchSegmentsEntryRole(long segmentsEntryRoleId)
      Specified by:
      fetchSegmentsEntryRole in interface SegmentsEntryRoleLocalService
    • getActionableDynamicQuery

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

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

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

      public SegmentsEntryRole getSegmentsEntryRole(long segmentsEntryRoleId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the segments entry role with the primary key.
      Specified by:
      getSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Parameters:
      segmentsEntryRoleId - the primary key of the segments entry role
      Returns:
      the segments entry role
      Throws:
      PortalException - if a segments entry role with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getSegmentsEntryRoles

      public List<SegmentsEntryRole> getSegmentsEntryRoles(int start, int end)
      Returns a range of all the segments entry roles.

      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.segments.model.impl.SegmentsEntryRoleModelImpl.

      Specified by:
      getSegmentsEntryRoles in interface SegmentsEntryRoleLocalService
      Parameters:
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      Returns:
      the range of segments entry roles
    • getSegmentsEntryRoles

      public List<SegmentsEntryRole> getSegmentsEntryRoles(long segmentsEntryId)
      Specified by:
      getSegmentsEntryRoles in interface SegmentsEntryRoleLocalService
    • getSegmentsEntryRolesByRoleId

      public List<SegmentsEntryRole> getSegmentsEntryRolesByRoleId(long roleId)
      Specified by:
      getSegmentsEntryRolesByRoleId in interface SegmentsEntryRoleLocalService
    • getSegmentsEntryRolesCount

      public int getSegmentsEntryRolesCount()
      Returns the number of segments entry roles.
      Specified by:
      getSegmentsEntryRolesCount in interface SegmentsEntryRoleLocalService
      Returns:
      the number of segments entry roles
    • getSegmentsEntryRolesCount

      public int getSegmentsEntryRolesCount(long segmentsEntryId)
      Specified by:
      getSegmentsEntryRolesCount in interface SegmentsEntryRoleLocalService
    • getSegmentsEntryRolesCountByRoleId

      public int getSegmentsEntryRolesCountByRoleId(long roleId)
      Specified by:
      getSegmentsEntryRolesCountByRoleId in interface SegmentsEntryRoleLocalService
    • hasSegmentEntryRole

      public boolean hasSegmentEntryRole(long segmentsEntryId, long roleId)
      Specified by:
      hasSegmentEntryRole in interface SegmentsEntryRoleLocalService
    • setSegmentsEntrySiteRoles

      public void setSegmentsEntrySiteRoles(long segmentsEntryId, long[] siteRoleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setSegmentsEntrySiteRoles in interface SegmentsEntryRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSegmentsEntryRole

      public SegmentsEntryRole updateSegmentsEntryRole(SegmentsEntryRole segmentsEntryRole)
      Updates the segments entry role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect SegmentsEntryRoleLocalServiceImpl 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:
      updateSegmentsEntryRole in interface SegmentsEntryRoleLocalService
      Parameters:
      segmentsEntryRole - the segments entry role
      Returns:
      the segments entry role that was updated
    • getBasePersistence

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

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SegmentsEntryRole> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<SegmentsEntryRole>
      Specified by:
      getCTPersistence in interface SegmentsEntryRoleLocalService
    • getModelClass

      public Class<SegmentsEntryRole> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<SegmentsEntryRole>
      Specified by:
      getModelClass in interface SegmentsEntryRoleLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SegmentsEntryRole>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<SegmentsEntryRole>
      Specified by:
      updateWithUnsafeFunction in interface SegmentsEntryRoleLocalService
      Throws:
      E extends Throwable
    • getWrappedService

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

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