Class UserGroupRoleLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<UserGroupRole>
,PersistedModelLocalService
,ServiceWrapper<UserGroupRoleLocalService>
,UserGroupRoleLocalService
UserGroupRoleLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionUserGroupRoleLocalServiceWrapper
(UserGroupRoleLocalService userGroupRoleLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddUserGroupRole
(long userId, long groupId, long roleId) addUserGroupRole
(UserGroupRole userGroupRole) Adds the user group role to the database.addUserGroupRoles
(long[] userIds, long groupId, long roleId) addUserGroupRoles
(long userId, long groupId, long[] roleIds) createPersistedModel
(Serializable primaryKeyObj) createUserGroupRole
(long userGroupRoleId) Creates a new user group role with the primary key.deletePersistedModel
(PersistedModel persistedModel) deleteUserGroupRole
(long userGroupRoleId) Deletes the user group role with the primary key from the database.deleteUserGroupRole
(UserGroupRole userGroupRole) Deletes the user group role from the database.void
deleteUserGroupRoles
(long[] userIds, long groupId) void
deleteUserGroupRoles
(long[] userIds, long groupId, int roleType) void
deleteUserGroupRoles
(long[] userIds, long groupId, long roleId) void
deleteUserGroupRoles
(long groupId, int roleType) void
deleteUserGroupRoles
(long userId, long[] groupIds) void
deleteUserGroupRoles
(long userId, long groupId, long[] roleIds) void
deleteUserGroupRolesByGroupId
(long groupId) void
deleteUserGroupRolesByRoleId
(long roleId) void
deleteUserGroupRolesByUserId
(long userId) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(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
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchUserGroupRole
(long userGroupRoleId) fetchUserGroupRole
(long userId, long groupId, long roleId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getUserGroupRole
(long userGroupRoleId) Returns the user group role with the primary key.getUserGroupRoles
(int start, int end) Returns a range of all the user group roles.getUserGroupRoles
(long userId) getUserGroupRoles
(long userId, long groupId) getUserGroupRoles
(long userId, long groupId, int start, int end) getUserGroupRolesByGroup
(long groupId) getUserGroupRolesByGroupAndRole
(long groupId, long roleId) getUserGroupRolesByUserUserGroupAndGroup
(long userId, long groupId) int
Returns the number of user group roles.int
getUserGroupRolesCount
(long userId, long groupId) boolean
hasUserGroupRole
(long userId, long groupId, long roleId) boolean
hasUserGroupRole
(long userId, long groupId, long roleId, boolean inherit) boolean
hasUserGroupRole
(long userId, long groupId, String roleName) boolean
hasUserGroupRole
(long userId, long groupId, String roleName, boolean inherit) void
setWrappedService
(UserGroupRoleLocalService userGroupRoleLocalService) updateUserGroupRole
(UserGroupRole userGroupRole) Updates the user group role in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<UserGroupRole>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
UserGroupRoleLocalServiceWrapper
public UserGroupRoleLocalServiceWrapper() -
UserGroupRoleLocalServiceWrapper
-
-
Method Details
-
addUserGroupRole
- Specified by:
addUserGroupRole
in interfaceUserGroupRoleLocalService
-
addUserGroupRole
Adds the user group role to the database. Also notifies the appropriate model listeners.Important: Inspect UserGroupRoleLocalServiceImpl 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:
addUserGroupRole
in interfaceUserGroupRoleLocalService
- Parameters:
userGroupRole
- the user group role- Returns:
- the user group role that was added
-
addUserGroupRoles
- Specified by:
addUserGroupRoles
in interfaceUserGroupRoleLocalService
-
addUserGroupRoles
- Specified by:
addUserGroupRoles
in interfaceUserGroupRoleLocalService
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceUserGroupRoleLocalService
- Throws:
PortalException
PortalException
-
createUserGroupRole
Creates a new user group role with the primary key. Does not add the user group role to the database.- Specified by:
createUserGroupRole
in interfaceUserGroupRoleLocalService
- Parameters:
userGroupRoleId
- the primary key for the new user group role- Returns:
- the new user group role
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceUserGroupRoleLocalService
- Throws:
PortalException
PortalException
-
deleteUserGroupRole
Deletes the user group role with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect UserGroupRoleLocalServiceImpl 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:
deleteUserGroupRole
in interfaceUserGroupRoleLocalService
- Parameters:
userGroupRoleId
- the primary key of the user group role- Returns:
- the user group role that was removed
- Throws:
PortalException
- if a user group role with the primary key could not be foundPortalException
-
deleteUserGroupRole
Deletes the user group role from the database. Also notifies the appropriate model listeners.Important: Inspect UserGroupRoleLocalServiceImpl 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:
deleteUserGroupRole
in interfaceUserGroupRoleLocalService
- Parameters:
userGroupRole
- the user group role- Returns:
- the user group role that was removed
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long groupId, int roleType) - Specified by:
deleteUserGroupRoles
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds) - Specified by:
deleteUserGroupRoles
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long userId, long[] groupIds) - Specified by:
deleteUserGroupRoles
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long[] userIds, long groupId) - Specified by:
deleteUserGroupRoles
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long[] userIds, long groupId, int roleType) - Specified by:
deleteUserGroupRoles
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId) - Specified by:
deleteUserGroupRoles
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRolesByGroupId
public void deleteUserGroupRolesByGroupId(long groupId) - Specified by:
deleteUserGroupRolesByGroupId
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRolesByRoleId
public void deleteUserGroupRolesByRoleId(long roleId) - Specified by:
deleteUserGroupRolesByRoleId
in interfaceUserGroupRoleLocalService
-
deleteUserGroupRolesByUserId
public void deleteUserGroupRolesByUserId(long userId) - Specified by:
deleteUserGroupRolesByUserId
in interfaceUserGroupRoleLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceUserGroupRoleLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceUserGroupRoleLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceUserGroupRoleLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceUserGroupRoleLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupRoleModelImpl
.- Specified by:
dynamicQuery
in interfaceUserGroupRoleLocalService
- 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(DynamicQuery dynamicQuery, int start, int end, 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupRoleModelImpl
.- Specified by:
dynamicQuery
in interfaceUserGroupRoleLocalService
- 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
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceUserGroupRoleLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceUserGroupRoleLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchUserGroupRole
- Specified by:
fetchUserGroupRole
in interfaceUserGroupRoleLocalService
-
fetchUserGroupRole
- Specified by:
fetchUserGroupRole
in interfaceUserGroupRoleLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceUserGroupRoleLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceUserGroupRoleLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceUserGroupRoleLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceUserGroupRoleLocalService
- Throws:
PortalException
PortalException
-
getUserGroupRole
Returns the user group role with the primary key.- Specified by:
getUserGroupRole
in interfaceUserGroupRoleLocalService
- Parameters:
userGroupRoleId
- the primary key of the user group role- Returns:
- the user group role
- Throws:
PortalException
- if a user group role with the primary key could not be foundPortalException
-
getUserGroupRoles
Returns a range of all the user group roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupRoleModelImpl
.- Specified by:
getUserGroupRoles
in interfaceUserGroupRoleLocalService
- Parameters:
start
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of user group roles
-
getUserGroupRoles
- Specified by:
getUserGroupRoles
in interfaceUserGroupRoleLocalService
-
getUserGroupRoles
- Specified by:
getUserGroupRoles
in interfaceUserGroupRoleLocalService
-
getUserGroupRoles
- Specified by:
getUserGroupRoles
in interfaceUserGroupRoleLocalService
-
getUserGroupRolesByGroup
- Specified by:
getUserGroupRolesByGroup
in interfaceUserGroupRoleLocalService
-
getUserGroupRolesByGroupAndRole
- Specified by:
getUserGroupRolesByGroupAndRole
in interfaceUserGroupRoleLocalService
-
getUserGroupRolesByUserUserGroupAndGroup
- Specified by:
getUserGroupRolesByUserUserGroupAndGroup
in interfaceUserGroupRoleLocalService
-
getUserGroupRolesCount
public int getUserGroupRolesCount()Returns the number of user group roles.- Specified by:
getUserGroupRolesCount
in interfaceUserGroupRoleLocalService
- Returns:
- the number of user group roles
-
getUserGroupRolesCount
public int getUserGroupRolesCount(long userId, long groupId) - Specified by:
getUserGroupRolesCount
in interfaceUserGroupRoleLocalService
-
hasUserGroupRole
public boolean hasUserGroupRole(long userId, long groupId, long roleId) - Specified by:
hasUserGroupRole
in interfaceUserGroupRoleLocalService
-
hasUserGroupRole
public boolean hasUserGroupRole(long userId, long groupId, long roleId, boolean inherit) - Specified by:
hasUserGroupRole
in interfaceUserGroupRoleLocalService
-
hasUserGroupRole
- Specified by:
hasUserGroupRole
in interfaceUserGroupRoleLocalService
- Throws:
PortalException
-
hasUserGroupRole
public boolean hasUserGroupRole(long userId, long groupId, String roleName, boolean inherit) throws PortalException - Specified by:
hasUserGroupRole
in interfaceUserGroupRoleLocalService
- Throws:
PortalException
-
updateUserGroupRole
Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect UserGroupRoleLocalServiceImpl 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:
updateUserGroupRole
in interfaceUserGroupRoleLocalService
- Parameters:
userGroupRole
- the user group role- Returns:
- the user group role that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<UserGroupRole>
- Specified by:
getCTPersistence
in interfaceUserGroupRoleLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<UserGroupRole>
- Specified by:
getModelClass
in interfaceUserGroupRoleLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<UserGroupRole>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<UserGroupRole>
- Specified by:
updateWithUnsafeFunction
in interfaceUserGroupRoleLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<UserGroupRoleLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<UserGroupRoleLocalService>
-