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.voiddeleteActivitySetting(long groupId, String className, long classPK) voiddeleteActivitySettings(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> 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.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.intReturns the number of social activity settings.booleanisEnabled(long groupId, long classNameId) booleanisEnabled(long groupId, long classNameId, long classPK) voidsetWrappedService(SocialActivitySettingLocalService socialActivitySettingLocalService) voidupdateActivitySetting(long groupId, String className, boolean enabled) voidupdateActivitySetting(long groupId, String className, int activityType, SocialActivityCounterDefinition activityCounterDefinition) voidupdateActivitySetting(long groupId, String className, long classPK, boolean enabled) voidupdateActivitySettings(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, waitMethods 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:
addSocialActivitySettingin interfaceSocialActivitySettingLocalService- Parameters:
socialActivitySetting- the social activity setting- Returns:
- the social activity setting that was added
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceSocialActivitySettingLocalService- Throws:
PortalExceptionPortalException
-
createSocialActivitySetting
Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.- Specified by:
createSocialActivitySettingin interfaceSocialActivitySettingLocalService- Parameters:
activitySettingId- the primary key for the new social activity setting- Returns:
- the new social activity setting
-
deleteActivitySetting
- Specified by:
deleteActivitySettingin interfaceSocialActivitySettingLocalService
-
deleteActivitySettings
public void deleteActivitySettings(long groupId) - Specified by:
deleteActivitySettingsin interfaceSocialActivitySettingLocalService
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceSocialActivitySettingLocalService- Throws:
PortalExceptionPortalException
-
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:
deleteSocialActivitySettingin 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:
deleteSocialActivitySettingin 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:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceSocialActivitySettingLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceSocialActivitySettingLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceSocialActivitySettingLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - 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.portlet.social.model.impl.SocialActivitySettingModelImpl.- Specified by:
dynamicQueryin 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 - 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.portlet.social.model.impl.SocialActivitySettingModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchSocialActivitySettingin interfaceSocialActivitySettingLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceSocialActivitySettingLocalService
-
getActivityDefinition
public SocialActivityDefinition getActivityDefinition(long groupId, String className, int activityType) - Specified by:
getActivityDefinitionin interfaceSocialActivitySettingLocalService
-
getActivityDefinitions
- Specified by:
getActivityDefinitionsin interfaceSocialActivitySettingLocalService
-
getActivitySettings
- Specified by:
getActivitySettingsin interfaceSocialActivitySettingLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceSocialActivitySettingLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceSocialActivitySettingLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceSocialActivitySettingLocalService- Throws:
PortalExceptionPortalException
-
getSocialActivitySetting
public SocialActivitySetting getSocialActivitySetting(long activitySettingId) throws PortalException Returns the social activity setting with the primary key.- Specified by:
getSocialActivitySettingin 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 - 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.portlet.social.model.impl.SocialActivitySettingModelImpl.- Specified by:
getSocialActivitySettingsin 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:
getSocialActivitySettingsCountin interfaceSocialActivitySettingLocalService- Returns:
- the number of social activity settings
-
isEnabled
public boolean isEnabled(long groupId, long classNameId) - Specified by:
isEnabledin interfaceSocialActivitySettingLocalService
-
isEnabled
public boolean isEnabled(long groupId, long classNameId, long classPK) - Specified by:
isEnabledin interfaceSocialActivitySettingLocalService
-
updateActivitySetting
public void updateActivitySetting(long groupId, String className, boolean enabled) throws PortalException - Specified by:
updateActivitySettingin interfaceSocialActivitySettingLocalService- Throws:
PortalException
-
updateActivitySetting
public void updateActivitySetting(long groupId, String className, int activityType, SocialActivityCounterDefinition activityCounterDefinition) throws PortalException - Specified by:
updateActivitySettingin interfaceSocialActivitySettingLocalService- Throws:
PortalException
-
updateActivitySetting
public void updateActivitySetting(long groupId, String className, long classPK, boolean enabled) throws PortalException - Specified by:
updateActivitySettingin interfaceSocialActivitySettingLocalService- Throws:
PortalException
-
updateActivitySettings
public void updateActivitySettings(long groupId, String className, int activityType, List<SocialActivityCounterDefinition> activityCounterDefinitions) throws PortalException - Specified by:
updateActivitySettingsin 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:
updateSocialActivitySettingin interfaceSocialActivitySettingLocalService- Parameters:
socialActivitySetting- the social activity setting- Returns:
- the social activity setting that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<SocialActivitySetting>- Specified by:
getCTPersistencein interfaceSocialActivitySettingLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<SocialActivitySetting>- Specified by:
getModelClassin interfaceSocialActivitySettingLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivitySetting>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<SocialActivitySetting>- Specified by:
updateWithUnsafeFunctionin interfaceSocialActivitySettingLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<SocialActivitySettingLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<SocialActivitySettingLocalService>
-