Class SocialActivitySettingLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<SocialActivitySetting>
,PersistedModelLocalService
,ServiceWrapper<SocialActivitySettingLocalService>
,SocialActivitySettingLocalService
SocialActivitySettingLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionSocialActivitySettingLocalServiceWrapper
(SocialActivitySettingLocalService socialActivitySettingLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddSocialActivitySetting
(SocialActivitySetting socialActivitySetting) Adds the social activity setting to the database.createPersistedModel
(Serializable primaryKeyObj) createSocialActivitySetting
(long activitySettingId) Creates a new social activity setting with the primary key.void
deleteActivitySetting
(long groupId, String className, long classPK) void
deleteActivitySettings
(long groupId) deletePersistedModel
(PersistedModel persistedModel) deleteSocialActivitySetting
(long activitySettingId) Deletes the social activity setting with the primary key from the database.deleteSocialActivitySetting
(SocialActivitySetting socialActivitySetting) Deletes the social activity setting from the database.<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.fetchSocialActivitySetting
(long activitySettingId) getActivityDefinition
(long groupId, String className, int activityType) getActivityDefinitions
(long groupId, String className) getActivitySettings
(long groupId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getSocialActivitySetting
(long activitySettingId) Returns the social activity setting with the primary key.getSocialActivitySettings
(int start, int end) Returns a range of all the social activity settings.int
Returns the number of social activity settings.boolean
isEnabled
(long groupId, long classNameId) boolean
isEnabled
(long groupId, long classNameId, long classPK) void
setWrappedService
(SocialActivitySettingLocalService socialActivitySettingLocalService) void
updateActivitySetting
(long groupId, String className, boolean enabled) void
updateActivitySetting
(long groupId, String className, int activityType, SocialActivityCounterDefinition activityCounterDefinition) void
updateActivitySetting
(long groupId, String className, long classPK, boolean enabled) void
updateActivitySettings
(long groupId, String className, int activityType, List<SocialActivityCounterDefinition> activityCounterDefinitions) updateSocialActivitySetting
(SocialActivitySetting socialActivitySetting) Updates the social activity setting in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivitySetting>, 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
-
SocialActivitySettingLocalServiceWrapper
public SocialActivitySettingLocalServiceWrapper() -
SocialActivitySettingLocalServiceWrapper
public SocialActivitySettingLocalServiceWrapper(SocialActivitySettingLocalService socialActivitySettingLocalService)
-
-
Method Details
-
addSocialActivitySetting
Adds the social activity setting to the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySettingLocalServiceImpl 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:
addSocialActivitySetting
in interfaceSocialActivitySettingLocalService
- Parameters:
socialActivitySetting
- the social activity setting- Returns:
- the social activity setting that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
PortalException
-
createSocialActivitySetting
Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.- Specified by:
createSocialActivitySetting
in interfaceSocialActivitySettingLocalService
- Parameters:
activitySettingId
- the primary key for the new social activity setting- Returns:
- the new social activity setting
-
deleteActivitySetting
- Specified by:
deleteActivitySetting
in interfaceSocialActivitySettingLocalService
-
deleteActivitySettings
public void deleteActivitySettings(long groupId) - Specified by:
deleteActivitySettings
in interfaceSocialActivitySettingLocalService
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
PortalException
-
deleteSocialActivitySetting
public SocialActivitySetting deleteSocialActivitySetting(long activitySettingId) throws PortalException Deletes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySettingLocalServiceImpl 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:
deleteSocialActivitySetting
in interfaceSocialActivitySettingLocalService
- Parameters:
activitySettingId
- the primary key of the social activity setting- Returns:
- the social activity setting that was removed
- Throws:
PortalException
- if a social activity setting with the primary key could not be foundPortalException
-
deleteSocialActivitySetting
public SocialActivitySetting deleteSocialActivitySetting(SocialActivitySetting socialActivitySetting) Deletes the social activity setting from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySettingLocalServiceImpl 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:
deleteSocialActivitySetting
in interfaceSocialActivitySettingLocalService
- Parameters:
socialActivitySetting
- the social activity setting- Returns:
- the social activity setting that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceSocialActivitySettingLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceSocialActivitySettingLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceSocialActivitySettingLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceSocialActivitySettingLocalService
- 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.portlet.social.model.impl.SocialActivitySettingModelImpl
.- Specified by:
dynamicQuery
in interfaceSocialActivitySettingLocalService
- 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.portlet.social.model.impl.SocialActivitySettingModelImpl
.- Specified by:
dynamicQuery
in interfaceSocialActivitySettingLocalService
- 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 interfaceSocialActivitySettingLocalService
- 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 interfaceSocialActivitySettingLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchSocialActivitySetting
- Specified by:
fetchSocialActivitySetting
in interfaceSocialActivitySettingLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceSocialActivitySettingLocalService
-
getActivityDefinition
public SocialActivityDefinition getActivityDefinition(long groupId, String className, int activityType) - Specified by:
getActivityDefinition
in interfaceSocialActivitySettingLocalService
-
getActivityDefinitions
- Specified by:
getActivityDefinitions
in interfaceSocialActivitySettingLocalService
-
getActivitySettings
- Specified by:
getActivitySettings
in interfaceSocialActivitySettingLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceSocialActivitySettingLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceSocialActivitySettingLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
PortalException
-
getSocialActivitySetting
public SocialActivitySetting getSocialActivitySetting(long activitySettingId) throws PortalException Returns the social activity setting with the primary key.- Specified by:
getSocialActivitySetting
in interfaceSocialActivitySettingLocalService
- Parameters:
activitySettingId
- the primary key of the social activity setting- Returns:
- the social activity setting
- Throws:
PortalException
- if a social activity setting with the primary key could not be foundPortalException
-
getSocialActivitySettings
Returns a range of all the social activity settings.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.portlet.social.model.impl.SocialActivitySettingModelImpl
.- Specified by:
getSocialActivitySettings
in interfaceSocialActivitySettingLocalService
- Parameters:
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)- Returns:
- the range of social activity settings
-
getSocialActivitySettingsCount
public int getSocialActivitySettingsCount()Returns the number of social activity settings.- Specified by:
getSocialActivitySettingsCount
in interfaceSocialActivitySettingLocalService
- Returns:
- the number of social activity settings
-
isEnabled
public boolean isEnabled(long groupId, long classNameId) - Specified by:
isEnabled
in interfaceSocialActivitySettingLocalService
-
isEnabled
public boolean isEnabled(long groupId, long classNameId, long classPK) - Specified by:
isEnabled
in interfaceSocialActivitySettingLocalService
-
updateActivitySetting
public void updateActivitySetting(long groupId, String className, boolean enabled) throws PortalException - Specified by:
updateActivitySetting
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
-
updateActivitySetting
public void updateActivitySetting(long groupId, String className, int activityType, SocialActivityCounterDefinition activityCounterDefinition) throws PortalException - Specified by:
updateActivitySetting
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
-
updateActivitySetting
public void updateActivitySetting(long groupId, String className, long classPK, boolean enabled) throws PortalException - Specified by:
updateActivitySetting
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
-
updateActivitySettings
public void updateActivitySettings(long groupId, String className, int activityType, List<SocialActivityCounterDefinition> activityCounterDefinitions) throws PortalException - Specified by:
updateActivitySettings
in interfaceSocialActivitySettingLocalService
- Throws:
PortalException
-
updateSocialActivitySetting
public SocialActivitySetting updateSocialActivitySetting(SocialActivitySetting socialActivitySetting) Updates the social activity setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySettingLocalServiceImpl 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:
updateSocialActivitySetting
in interfaceSocialActivitySettingLocalService
- Parameters:
socialActivitySetting
- the social activity setting- Returns:
- the social activity setting that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<SocialActivitySetting>
- Specified by:
getCTPersistence
in interfaceSocialActivitySettingLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<SocialActivitySetting>
- Specified by:
getModelClass
in interfaceSocialActivitySettingLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivitySetting>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<SocialActivitySetting>
- Specified by:
updateWithUnsafeFunction
in interfaceSocialActivitySettingLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<SocialActivitySettingLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<SocialActivitySettingLocalService>
-