public class AccountRoleLocalServiceWrapper extends java.lang.Object implements AccountRoleLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>
AccountRoleLocalService.AccountRoleLocalService| Constructor and Description |
|---|
AccountRoleLocalServiceWrapper() |
AccountRoleLocalServiceWrapper(AccountRoleLocalService accountRoleLocalService) |
| Modifier and Type | Method and Description |
|---|---|
AccountRole |
addAccountRole(AccountRole accountRole)
Adds the account role to the database.
|
AccountRole |
addAccountRole(long userId,
long accountEntryId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap) |
void |
associateUser(long accountEntryId,
long[] accountRoleIds,
long userId) |
void |
associateUser(long accountEntryId,
long accountRoleId,
long userId) |
void |
checkCompanyAccountRoles(long companyId) |
AccountRole |
createAccountRole(long accountRoleId)
Creates a new account role with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
AccountRole |
deleteAccountRole(AccountRole accountRole)
Deletes the account role from the database.
|
AccountRole |
deleteAccountRole(long accountRoleId)
Deletes the account role with the primary key from the database.
|
void |
deleteAccountRolesByCompanyId(long companyId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
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.
|
AccountRole |
fetchAccountRole(long accountRoleId) |
AccountRole |
fetchAccountRoleByRoleId(long roleId) |
AccountRole |
getAccountRole(long accountRoleId)
Returns the account role with the primary key.
|
AccountRole |
getAccountRoleByRoleId(long roleId) |
java.util.List<AccountRole> |
getAccountRoles(int start,
int end)
Returns a range of all the account roles.
|
java.util.List<AccountRole> |
getAccountRoles(long accountEntryId,
long userId) |
java.util.List<AccountRole> |
getAccountRolesByAccountEntryIds(long[] accountEntryIds) |
java.util.List<AccountRole> |
getAccountRolesByAccountEntryIds(long companyId,
long[] accountEntryIds) |
int |
getAccountRolesCount()
Returns the number of account roles.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
AccountRoleLocalService |
getWrappedService() |
boolean |
hasUserAccountRole(long accountEntryId,
long accountRoleId,
long userId) |
com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> |
searchAccountRoles(long companyId,
long[] accountEntryIds,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) |
void |
setUserAccountRoles(long accountEntryId,
long[] accountRoleIds,
long userId) |
void |
setWrappedService(AccountRoleLocalService accountRoleLocalService) |
void |
unassociateUser(long accountEntryId,
long accountRoleId,
long userId) |
AccountRole |
updateAccountRole(AccountRole accountRole)
Updates the account role in the database or adds it if it does not yet exist.
|
public AccountRoleLocalServiceWrapper()
public AccountRoleLocalServiceWrapper(AccountRoleLocalService accountRoleLocalService)
public AccountRole addAccountRole(AccountRole accountRole)
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.
addAccountRole in interface AccountRoleLocalServiceaccountRole - the account rolepublic AccountRole addAccountRole(long userId, long accountEntryId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap) throws com.liferay.portal.kernel.exception.PortalException
addAccountRole in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void associateUser(long accountEntryId,
long accountRoleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
associateUser in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void associateUser(long accountEntryId,
long[] accountRoleIds,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
associateUser in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void checkCompanyAccountRoles(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
checkCompanyAccountRoles in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic AccountRole createAccountRole(long accountRoleId)
createAccountRole in interface AccountRoleLocalServiceaccountRoleId - the primary key for the new account rolepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface AccountRoleLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic AccountRole deleteAccountRole(AccountRole accountRole) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteAccountRole in interface AccountRoleLocalServiceaccountRole - the account rolePortalExceptionpublic AccountRole deleteAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteAccountRole in interface AccountRoleLocalServiceaccountRoleId - the primary key of the account rolePortalException - if a account role with the primary key could not be foundpublic void deleteAccountRolesByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
deleteAccountRolesByCompanyId in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface AccountRoleLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface AccountRoleLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface AccountRoleLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface AccountRoleLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface AccountRoleLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
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.
dynamicQuery in interface AccountRoleLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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.
dynamicQuery in interface AccountRoleLocalServicedynamicQuery - 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 (optionally null)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface AccountRoleLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface AccountRoleLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic AccountRole fetchAccountRole(long accountRoleId)
fetchAccountRole in interface AccountRoleLocalServicepublic AccountRole fetchAccountRoleByRoleId(long roleId)
fetchAccountRoleByRoleId in interface AccountRoleLocalServicepublic AccountRole getAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
getAccountRole in interface AccountRoleLocalServiceaccountRoleId - the primary key of the account rolePortalException - if a account role with the primary key could not be foundpublic AccountRole getAccountRoleByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException
getAccountRoleByRoleId in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<AccountRole> getAccountRoles(int start, int end)
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.
getAccountRoles in interface AccountRoleLocalServicestart - the lower bound of the range of account rolesend - the upper bound of the range of account roles (not inclusive)public java.util.List<AccountRole> getAccountRoles(long accountEntryId, long userId) throws com.liferay.portal.kernel.exception.PortalException
getAccountRoles in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<AccountRole> getAccountRolesByAccountEntryIds(long companyId, long[] accountEntryIds)
getAccountRolesByAccountEntryIds in interface AccountRoleLocalServicepublic java.util.List<AccountRole> getAccountRolesByAccountEntryIds(long[] accountEntryIds)
getAccountRolesByAccountEntryIds in interface AccountRoleLocalServicepublic int getAccountRolesCount()
getAccountRolesCount in interface AccountRoleLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface AccountRoleLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface AccountRoleLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface AccountRoleLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface AccountRoleLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic boolean hasUserAccountRole(long accountEntryId,
long accountRoleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
hasUserAccountRole in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> searchAccountRoles(long companyId, long[] accountEntryIds, java.lang.String keywords, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
searchAccountRoles in interface AccountRoleLocalServicepublic void setUserAccountRoles(long accountEntryId,
long[] accountRoleIds,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
setUserAccountRoles in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void unassociateUser(long accountEntryId,
long accountRoleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
unassociateUser in interface AccountRoleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic AccountRole updateAccountRole(AccountRole accountRole)
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.
updateAccountRole in interface AccountRoleLocalServiceaccountRole - the account rolepublic AccountRoleLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>public void setWrappedService(AccountRoleLocalService accountRoleLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>