public class AccountRoleLocalServiceWrapper extends java.lang.Object implements AccountRoleLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AccountRoleLocalService>
AccountRoleLocalService
.AccountRoleLocalService
Constructor and Description |
---|
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 accountRoleId,
long userId) |
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) |
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() |
com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> |
searchAccountRoles(long[] accountEntryIds,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) |
com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> |
searchAccountRoles(long accountEntryId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) |
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(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 AccountRoleLocalService
accountRole
- 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 AccountRoleLocalService
com.liferay.portal.kernel.exception.PortalException
public void associateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
associateUser
in interface AccountRoleLocalService
com.liferay.portal.kernel.exception.PortalException
public AccountRole createAccountRole(long accountRoleId)
createAccountRole
in interface AccountRoleLocalService
accountRoleId
- 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 AccountRoleLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public 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 AccountRoleLocalService
accountRole
- the account rolePortalException
public 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 AccountRoleLocalService
accountRoleId
- the primary key of the account rolePortalException
- if a account role with the primary key could not be foundpublic void deleteAccountRolesByCompanyId(long companyId)
deleteAccountRolesByCompanyId
in interface AccountRoleLocalService
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface AccountRoleLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface AccountRoleLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface AccountRoleLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface AccountRoleLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface AccountRoleLocalService
dynamicQuery
- 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 AccountRoleLocalService
dynamicQuery
- 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 AccountRoleLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface AccountRoleLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface AccountRoleLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic AccountRole fetchAccountRole(long accountRoleId)
fetchAccountRole
in interface AccountRoleLocalService
public AccountRole fetchAccountRoleByRoleId(long roleId)
fetchAccountRoleByRoleId
in interface AccountRoleLocalService
public AccountRole getAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
getAccountRole
in interface AccountRoleLocalService
accountRoleId
- 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 AccountRoleLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 AccountRoleLocalService
start
- 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 AccountRoleLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<AccountRole> getAccountRolesByAccountEntryIds(long[] accountEntryIds)
getAccountRolesByAccountEntryIds
in interface AccountRoleLocalService
public int getAccountRolesCount()
getAccountRolesCount
in interface AccountRoleLocalService
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface AccountRoleLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface AccountRoleLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface AccountRoleLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface AccountRoleLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> searchAccountRoles(long accountEntryId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
searchAccountRoles
in interface AccountRoleLocalService
public com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> searchAccountRoles(long[] accountEntryIds, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
searchAccountRoles
in interface AccountRoleLocalService
public void unassociateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
unassociateUser
in interface AccountRoleLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 AccountRoleLocalService
accountRole
- 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>