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.voiddeleteUserGroupRoles(long[] userIds, long groupId) voiddeleteUserGroupRoles(long[] userIds, long groupId, int roleType) voiddeleteUserGroupRoles(long[] userIds, long groupId, long roleId) voiddeleteUserGroupRoles(long groupId, int roleType) voiddeleteUserGroupRoles(long userId, long[] groupIds) voiddeleteUserGroupRoles(long userId, long groupId, long[] roleIds) voiddeleteUserGroupRolesByGroupId(long groupId) voiddeleteUserGroupRolesByRoleId(long roleId) voiddeleteUserGroupRolesByUserId(long userId) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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) intReturns the number of user group roles.intgetUserGroupRolesCount(long userId, long groupId) booleanhasUserGroupRole(long userId, long groupId, long roleId) booleanhasUserGroupRole(long userId, long groupId, long roleId, boolean inherit) booleanhasUserGroupRole(long userId, long groupId, String roleName) booleanhasUserGroupRole(long userId, long groupId, String roleName, boolean inherit) voidsetWrappedService(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, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
UserGroupRoleLocalServiceWrapper
public UserGroupRoleLocalServiceWrapper() -
UserGroupRoleLocalServiceWrapper
-
-
Method Details
-
addUserGroupRole
- Specified by:
addUserGroupRolein 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:
addUserGroupRolein interfaceUserGroupRoleLocalService- Parameters:
userGroupRole- the user group role- Returns:
- the user group role that was added
-
addUserGroupRoles
- Specified by:
addUserGroupRolesin interfaceUserGroupRoleLocalService
-
addUserGroupRoles
- Specified by:
addUserGroupRolesin interfaceUserGroupRoleLocalService
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceUserGroupRoleLocalService- Throws:
PortalExceptionPortalException
-
createUserGroupRole
Creates a new user group role with the primary key. Does not add the user group role to the database.- Specified by:
createUserGroupRolein interfaceUserGroupRoleLocalService- Parameters:
userGroupRoleId- the primary key for the new user group role- Returns:
- the new user group role
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceUserGroupRoleLocalService- Throws:
PortalExceptionPortalException
-
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:
deleteUserGroupRolein 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:
deleteUserGroupRolein 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:
deleteUserGroupRolesin interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds) - Specified by:
deleteUserGroupRolesin interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long userId, long[] groupIds) - Specified by:
deleteUserGroupRolesin interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long[] userIds, long groupId) - Specified by:
deleteUserGroupRolesin interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long[] userIds, long groupId, int roleType) - Specified by:
deleteUserGroupRolesin interfaceUserGroupRoleLocalService
-
deleteUserGroupRoles
public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId) - Specified by:
deleteUserGroupRolesin interfaceUserGroupRoleLocalService
-
deleteUserGroupRolesByGroupId
public void deleteUserGroupRolesByGroupId(long groupId) - Specified by:
deleteUserGroupRolesByGroupIdin interfaceUserGroupRoleLocalService
-
deleteUserGroupRolesByRoleId
public void deleteUserGroupRolesByRoleId(long roleId) - Specified by:
deleteUserGroupRolesByRoleIdin interfaceUserGroupRoleLocalService
-
deleteUserGroupRolesByUserId
public void deleteUserGroupRolesByUserId(long userId) - Specified by:
deleteUserGroupRolesByUserIdin interfaceUserGroupRoleLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceUserGroupRoleLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceUserGroupRoleLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceUserGroupRoleLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - 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.portal.model.impl.UserGroupRoleModelImpl.- Specified by:
dynamicQueryin 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 - 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.portal.model.impl.UserGroupRoleModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchUserGroupRolein interfaceUserGroupRoleLocalService
-
fetchUserGroupRole
- Specified by:
fetchUserGroupRolein interfaceUserGroupRoleLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceUserGroupRoleLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceUserGroupRoleLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceUserGroupRoleLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceUserGroupRoleLocalService- Throws:
PortalExceptionPortalException
-
getUserGroupRole
Returns the user group role with the primary key.- Specified by:
getUserGroupRolein 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 - 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.portal.model.impl.UserGroupRoleModelImpl.- Specified by:
getUserGroupRolesin 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:
getUserGroupRolesin interfaceUserGroupRoleLocalService
-
getUserGroupRoles
- Specified by:
getUserGroupRolesin interfaceUserGroupRoleLocalService
-
getUserGroupRoles
- Specified by:
getUserGroupRolesin interfaceUserGroupRoleLocalService
-
getUserGroupRolesByGroup
- Specified by:
getUserGroupRolesByGroupin interfaceUserGroupRoleLocalService
-
getUserGroupRolesByGroupAndRole
- Specified by:
getUserGroupRolesByGroupAndRolein interfaceUserGroupRoleLocalService
-
getUserGroupRolesByUserUserGroupAndGroup
- Specified by:
getUserGroupRolesByUserUserGroupAndGroupin interfaceUserGroupRoleLocalService
-
getUserGroupRolesCount
public int getUserGroupRolesCount()Returns the number of user group roles.- Specified by:
getUserGroupRolesCountin interfaceUserGroupRoleLocalService- Returns:
- the number of user group roles
-
getUserGroupRolesCount
public int getUserGroupRolesCount(long userId, long groupId) - Specified by:
getUserGroupRolesCountin interfaceUserGroupRoleLocalService
-
hasUserGroupRole
public boolean hasUserGroupRole(long userId, long groupId, long roleId) - Specified by:
hasUserGroupRolein interfaceUserGroupRoleLocalService
-
hasUserGroupRole
public boolean hasUserGroupRole(long userId, long groupId, long roleId, boolean inherit) - Specified by:
hasUserGroupRolein interfaceUserGroupRoleLocalService
-
hasUserGroupRole
- Specified by:
hasUserGroupRolein interfaceUserGroupRoleLocalService- Throws:
PortalException
-
hasUserGroupRole
public boolean hasUserGroupRole(long userId, long groupId, String roleName, boolean inherit) throws PortalException - Specified by:
hasUserGroupRolein 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:
updateUserGroupRolein interfaceUserGroupRoleLocalService- Parameters:
userGroupRole- the user group role- Returns:
- the user group role that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<UserGroupRole>- Specified by:
getCTPersistencein interfaceUserGroupRoleLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<UserGroupRole>- Specified by:
getModelClassin interfaceUserGroupRoleLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<UserGroupRole>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<UserGroupRole>- Specified by:
updateWithUnsafeFunctionin interfaceUserGroupRoleLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<UserGroupRoleLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<UserGroupRoleLocalService>
-