Class AccountRoleLocalServiceWrapper
- All Implemented Interfaces:
AccountRoleLocalService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>
AccountRoleLocalService.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionAccountRoleLocalServiceWrapper(AccountRoleLocalService accountRoleLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddAccountRole(AccountRole accountRole) Adds the account role to the database.addAccountRole(String externalReferenceCode, long userId, long accountEntryId, String name, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap) voidassociateUser(long accountEntryId, long[] accountRoleIds, long userId) voidassociateUser(long accountEntryId, long accountRoleId, long userId) createAccountRole(long accountRoleId) Creates a new account role with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) deleteAccountRole(long accountRoleId) Deletes the account role with the primary key from the database.deleteAccountRole(AccountRole accountRole) Deletes the account role from the database.voiddeleteAccountRolesByCompanyId(long companyId) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.fetchAccountRole(long accountRoleId) fetchAccountRoleByExternalReferenceCode(String externalReferenceCode, long companyId) fetchAccountRoleByRoleId(long roleId) getAccountRole(long accountRoleId) Returns the account role with the primary key.getAccountRoleByExternalReferenceCode(String externalReferenceCode, long companyId) getAccountRoleByRoleId(long roleId) getAccountRoles(int start, int end) Returns a range of all the account roles.getAccountRoles(long accountEntryId, long userId) getAccountRolesByAccountEntryIds(long[] accountEntryIds) getAccountRolesByAccountEntryIds(long companyId, long[] accountEntryIds) intReturns the number of account roles.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<?>com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) booleanhasUserAccountRole(long accountEntryId, long accountRoleId, long userId) 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) voidsetUserAccountRoles(long accountEntryId, long[] accountRoleIds, long userId) voidsetWrappedService(AccountRoleLocalService accountRoleLocalService) voidunassociateUser(long accountEntryId, long accountRoleId, long userId) updateAccountRole(AccountRole accountRole) Updates the account role in the database or adds it if it does not yet exist.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
AccountRoleLocalServiceWrapper
public AccountRoleLocalServiceWrapper() -
AccountRoleLocalServiceWrapper
-
-
Method Details
-
addAccountRole
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:
addAccountRolein interfaceAccountRoleLocalService- 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap) - Specified by:
addAccountRolein interfaceAccountRoleLocalService- 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:
associateUserin interfaceAccountRoleLocalService- 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:
associateUserin interfaceAccountRoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createAccountRole
Creates a new account role with the primary key. Does not add the account role to the database.- Specified by:
createAccountRolein interfaceAccountRoleLocalService- 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:
createPersistedModelin interfaceAccountRoleLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.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:
deleteAccountRolein interfaceAccountRoleLocalService- Parameters:
accountRole- the account role- Returns:
- the account role that was removed
- Throws:
PortalExceptioncom.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:
deleteAccountRolein interfaceAccountRoleLocalService- 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 foundcom.liferay.portal.kernel.exception.PortalException
-
deleteAccountRolesByCompanyId
public void deleteAccountRolesByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteAccountRolesByCompanyIdin interfaceAccountRoleLocalService- 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:
deletePersistedModelin interfaceAccountRoleLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceAccountRoleLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceAccountRoleLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceAccountRoleLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceAccountRoleLocalService- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.account.model.impl.AccountRoleModelImpl.- Specified by:
dynamicQueryin interfaceAccountRoleLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.account.model.impl.AccountRoleModelImpl.- Specified by:
dynamicQueryin interfaceAccountRoleLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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:
dynamicQueryCountin interfaceAccountRoleLocalService- 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:
dynamicQueryCountin interfaceAccountRoleLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAccountRole
- Specified by:
fetchAccountRolein interfaceAccountRoleLocalService
-
fetchAccountRoleByExternalReferenceCode
public AccountRole fetchAccountRoleByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchAccountRoleByExternalReferenceCodein interfaceAccountRoleLocalService
-
fetchAccountRoleByRoleId
- Specified by:
fetchAccountRoleByRoleIdin interfaceAccountRoleLocalService
-
getAccountRole
public AccountRole getAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException Returns the account role with the primary key.- Specified by:
getAccountRolein interfaceAccountRoleLocalService- 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 foundcom.liferay.portal.kernel.exception.PortalException
-
getAccountRoleByExternalReferenceCode
public AccountRole getAccountRoleByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAccountRoleByExternalReferenceCodein interfaceAccountRoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAccountRoleByRoleId
public AccountRole getAccountRoleByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAccountRoleByRoleIdin interfaceAccountRoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAccountRoles
Returns a range of all the account roles.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.account.model.impl.AccountRoleModelImpl.- Specified by:
getAccountRolesin interfaceAccountRoleLocalService- Parameters:
start- the lower bound of the range of account rolesend- 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:
getAccountRolesin interfaceAccountRoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAccountRolesByAccountEntryIds
- Specified by:
getAccountRolesByAccountEntryIdsin interfaceAccountRoleLocalService
-
getAccountRolesByAccountEntryIds
- Specified by:
getAccountRolesByAccountEntryIdsin interfaceAccountRoleLocalService
-
getAccountRolesCount
public int getAccountRolesCount()Returns the number of account roles.- Specified by:
getAccountRolesCountin interfaceAccountRoleLocalService- Returns:
- the number of account roles
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceAccountRoleLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceAccountRoleLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceAccountRoleLocalService- 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:
getPersistedModelin interfaceAccountRoleLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
hasUserAccountRole
public boolean hasUserAccountRole(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
hasUserAccountRolein interfaceAccountRoleLocalService- 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:
searchAccountRolesin interfaceAccountRoleLocalService
-
setUserAccountRoles
public void setUserAccountRoles(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setUserAccountRolesin interfaceAccountRoleLocalService- 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:
unassociateUserin interfaceAccountRoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAccountRole
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:
updateAccountRolein interfaceAccountRoleLocalService- Parameters:
accountRole- the account role- Returns:
- the account role that was updated
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>
-