Class AccountRoleLocalServiceWrapper

java.lang.Object
com.liferay.account.service.AccountRoleLocalServiceWrapper
All Implemented Interfaces:
AccountRoleLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>

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

    • AccountRoleLocalServiceWrapper

      public AccountRoleLocalServiceWrapper()
    • AccountRoleLocalServiceWrapper

      public AccountRoleLocalServiceWrapper(AccountRoleLocalService accountRoleLocalService)
  • Method Details

    • addAccountRole

      public AccountRole addAccountRole(AccountRole accountRole)
      Adds the account role to the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountRoleLocalServiceImpl 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:
      addAccountRole in interface AccountRoleLocalService
      Parameters:
      accountRole - the account role
      Returns:
      the account role that was added
    • addAccountRole

      public AccountRole addAccountRole(String externalReferenceCode, long userId, long accountEntryId, String name, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addAccountRole in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • associateUser

      public void associateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      associateUser in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • associateUser

      public void associateUser(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      associateUser in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createAccountRole

      public AccountRole createAccountRole(long accountRoleId)
      Creates a new account role with the primary key. Does not add the account role to the database.
      Specified by:
      createAccountRole in interface AccountRoleLocalService
      Parameters:
      accountRoleId - the primary key for the new account role
      Returns:
      the new account role
    • createPersistedModel

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

      public AccountRole deleteAccountRole(AccountRole accountRole) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the account role from the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountRoleLocalServiceImpl 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:
      deleteAccountRole in interface AccountRoleLocalService
      Parameters:
      accountRole - the account role
      Returns:
      the account role that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountRole

      public AccountRole deleteAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the account role with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountRoleLocalServiceImpl 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:
      deleteAccountRole in interface AccountRoleLocalService
      Parameters:
      accountRoleId - the primary key of the account role
      Returns:
      the account role that was removed
      Throws:
      PortalException - if a account role with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountRolesByCompanyId

      public void deleteAccountRolesByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteAccountRolesByCompanyId in interface AccountRoleLocalService
      Throws:
      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 AccountRoleLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface AccountRoleLocalService
      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 AccountRoleLocalService
      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 AccountRoleLocalService
    • 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 AccountRoleLocalService
      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.account.model.impl.AccountRoleModelImpl.

      Specified by:
      dynamicQuery in interface AccountRoleLocalService
      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.account.model.impl.AccountRoleModelImpl.

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

      public AccountRole fetchAccountRole(long accountRoleId)
      Specified by:
      fetchAccountRole in interface AccountRoleLocalService
    • fetchAccountRoleByExternalReferenceCode

      public AccountRole fetchAccountRoleByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchAccountRoleByExternalReferenceCode in interface AccountRoleLocalService
    • fetchAccountRoleByRoleId

      public AccountRole fetchAccountRoleByRoleId(long roleId)
      Specified by:
      fetchAccountRoleByRoleId in interface AccountRoleLocalService
    • getAccountRole

      public AccountRole getAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the account role with the primary key.
      Specified by:
      getAccountRole in interface AccountRoleLocalService
      Parameters:
      accountRoleId - the primary key of the account role
      Returns:
      the account role
      Throws:
      PortalException - if a account role with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getAccountRoleByExternalReferenceCode

      public AccountRole getAccountRoleByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountRoleByExternalReferenceCode in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountRoleByRoleId

      public AccountRole getAccountRoleByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountRoleByRoleId in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountRoles

      public List<AccountRole> getAccountRoles(int start, int end)
      Returns a range of all the account 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.account.model.impl.AccountRoleModelImpl.

      Specified by:
      getAccountRoles in interface AccountRoleLocalService
      Parameters:
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of account roles
    • getAccountRoles

      public List<AccountRole> getAccountRoles(long accountEntryId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountRoles in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountRolesByAccountEntryIds

      public List<AccountRole> getAccountRolesByAccountEntryIds(long companyId, long[] accountEntryIds)
      Specified by:
      getAccountRolesByAccountEntryIds in interface AccountRoleLocalService
    • getAccountRolesByAccountEntryIds

      public List<AccountRole> getAccountRolesByAccountEntryIds(long[] accountEntryIds)
      Specified by:
      getAccountRolesByAccountEntryIds in interface AccountRoleLocalService
    • getAccountRolesCount

      public int getAccountRolesCount()
      Returns the number of account roles.
      Specified by:
      getAccountRolesCount in interface AccountRoleLocalService
      Returns:
      the number of account roles
    • getActionableDynamicQuery

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

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

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

      public boolean hasUserAccountRole(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      hasUserAccountRole in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchAccountRoles

      public com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> searchAccountRoles(long companyId, long[] accountEntryIds, String keywords, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
      Specified by:
      searchAccountRoles in interface AccountRoleLocalService
    • setUserAccountRoles

      public void setUserAccountRoles(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setUserAccountRoles in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unassociateUser

      public void unassociateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unassociateUser in interface AccountRoleLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAccountRole

      public AccountRole updateAccountRole(AccountRole accountRole)
      Updates the account role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect AccountRoleLocalServiceImpl 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:
      updateAccountRole in interface AccountRoleLocalService
      Parameters:
      accountRole - the account role
      Returns:
      the account 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
    • getWrappedService

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

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