Class PasswordPolicyLocalServiceBaseImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.PasswordPolicyLocalService,com.liferay.portal.kernel.service.PersistedModelLocalService
- Direct Known Subclasses:
PasswordPolicyLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in PasswordPolicyLocalServiceImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.counter.kernel.service.CounterLocalServiceprotected com.liferay.portal.kernel.service.persistence.PasswordPolicyFinderprotected com.liferay.portal.kernel.service.PasswordPolicyLocalServiceprotected com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.PasswordPolicyaddPasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) Adds the password policy to the database.voidcom.liferay.portal.kernel.model.PasswordPolicycreatePasswordPolicy(long passwordPolicyId) Creates a new password policy with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.model.PasswordPolicydeletePasswordPolicy(long passwordPolicyId) Deletes the password policy with the primary key from the database.com.liferay.portal.kernel.model.PasswordPolicydeletePasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) Deletes the password policy from the database.com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) voiddestroy()<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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> 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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.com.liferay.portal.kernel.model.PasswordPolicyfetchPasswordPolicy(long passwordPolicyId) com.liferay.portal.kernel.model.PasswordPolicyfetchPasswordPolicyByUuidAndCompanyId(String uuid, long companyId) Returns the password policy with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PasswordPolicy>com.liferay.counter.kernel.service.CounterLocalServiceReturns the counter local service.com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryprotected Class<?>protected StringReturns the OSGi service identifier.List<com.liferay.portal.kernel.model.PasswordPolicy>getPasswordPolicies(int start, int end) Returns a range of all the password policies.intReturns the number of password policies.com.liferay.portal.kernel.model.PasswordPolicygetPasswordPolicy(long passwordPolicyId) Returns the password policy with the primary key.com.liferay.portal.kernel.model.PasswordPolicygetPasswordPolicyByUuidAndCompanyId(String uuid, long companyId) Returns the password policy with the matching UUID and company.com.liferay.portal.kernel.service.persistence.PasswordPolicyFinderReturns the password policy finder.com.liferay.portal.kernel.service.PasswordPolicyLocalServiceReturns the password policy local service.com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistenceReturns the password policy persistence.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) protected voidinitActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) protected voidPerforms a SQL query.voidsetCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.voidsetPasswordPolicyFinder(com.liferay.portal.kernel.service.persistence.PasswordPolicyFinder passwordPolicyFinder) Sets the password policy finder.voidsetPasswordPolicyLocalService(com.liferay.portal.kernel.service.PasswordPolicyLocalService passwordPolicyLocalService) Sets the password policy local service.voidsetPasswordPolicyPersistence(com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence) Sets the password policy persistence.com.liferay.portal.kernel.model.PasswordPolicyupdatePasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) Updates the password policy in the database or adds it if it does not yet exist.Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods 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.PasswordPolicyLocalService
addPasswordPolicy, checkDefaultPasswordPolicy, deleteNondefaultPasswordPolicies, fetchPasswordPolicy, getDefaultPasswordPolicy, getPasswordPolicy, getPasswordPolicy, getPasswordPolicyByUser, getPasswordPolicyByUserId, search, searchCount, updatePasswordPolicyMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Field Details
-
passwordPolicyLocalService
@BeanReference(type=com.liferay.portal.kernel.service.PasswordPolicyLocalService.class) protected com.liferay.portal.kernel.service.PasswordPolicyLocalService passwordPolicyLocalService -
passwordPolicyPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence.class) protected com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence -
passwordPolicyFinder
@BeanReference(type=com.liferay.portal.kernel.service.persistence.PasswordPolicyFinder.class) protected com.liferay.portal.kernel.service.persistence.PasswordPolicyFinder passwordPolicyFinder -
counterLocalService
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService
-
-
Constructor Details
-
PasswordPolicyLocalServiceBaseImpl
public PasswordPolicyLocalServiceBaseImpl()
-
-
Method Details
-
addPasswordPolicy
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.PasswordPolicy addPasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) Adds the password policy to the database. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl 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:
addPasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
passwordPolicy- the password policy- Returns:
- the password policy that was added
-
createPasswordPolicy
@Transactional(enabled=false) public com.liferay.portal.kernel.model.PasswordPolicy createPasswordPolicy(long passwordPolicyId) Creates a new password policy with the primary key. Does not add the password policy to the database.- Specified by:
createPasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
passwordPolicyId- the primary key for the new password policy- Returns:
- the new password policy
-
deletePasswordPolicy
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.PasswordPolicy deletePasswordPolicy(long passwordPolicyId) throws com.liferay.portal.kernel.exception.PortalException Deletes the password policy with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl 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:
deletePasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
passwordPolicyId- the primary key of the password policy- Returns:
- the password policy that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a password policy with the primary key could not be found
-
deletePasswordPolicy
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.PasswordPolicy deletePasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) throws com.liferay.portal.kernel.exception.PortalException Deletes the password policy from the database. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl 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:
deletePasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
passwordPolicy- the password policy- Returns:
- the password policy that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.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.PasswordPolicyModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- 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(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.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.PasswordPolicyModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- 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
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCountin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchPasswordPolicy
public com.liferay.portal.kernel.model.PasswordPolicy fetchPasswordPolicy(long passwordPolicyId) - Specified by:
fetchPasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService
-
fetchPasswordPolicyByUuidAndCompanyId
public com.liferay.portal.kernel.model.PasswordPolicy fetchPasswordPolicyByUuidAndCompanyId(String uuid, long companyId) Returns the password policy with the matching UUID and company.- Specified by:
fetchPasswordPolicyByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
uuid- the password policy's UUIDcompanyId- the primary key of the company- Returns:
- the matching password policy, or
nullif a matching password policy could not be found
-
getPasswordPolicy
public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicy(long passwordPolicyId) throws com.liferay.portal.kernel.exception.PortalException Returns the password policy with the primary key.- Specified by:
getPasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
passwordPolicyId- the primary key of the password policy- Returns:
- the password policy
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a password policy with the primary key could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService
-
initActionableDynamicQuery
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) -
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PasswordPolicy> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPasswordPolicyByUuidAndCompanyId
public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicyByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the password policy with the matching UUID and company.- Specified by:
getPasswordPolicyByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
uuid- the password policy's UUIDcompanyId- the primary key of the company- Returns:
- the matching password policy
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching password policy could not be found
-
getPasswordPolicies
Returns a range of all the password policies.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.PasswordPolicyModelImpl.- Specified by:
getPasswordPoliciesin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
start- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of password policies
-
getPasswordPoliciesCount
public int getPasswordPoliciesCount()Returns the number of password policies.- Specified by:
getPasswordPoliciesCountin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Returns:
- the number of password policies
-
updatePasswordPolicy
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.PasswordPolicy updatePasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl 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:
updatePasswordPolicyin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Parameters:
passwordPolicy- the password policy- Returns:
- the password policy that was updated
-
getPasswordPolicyLocalService
public com.liferay.portal.kernel.service.PasswordPolicyLocalService getPasswordPolicyLocalService()Returns the password policy local service.- Returns:
- the password policy local service
-
setPasswordPolicyLocalService
public void setPasswordPolicyLocalService(com.liferay.portal.kernel.service.PasswordPolicyLocalService passwordPolicyLocalService) Sets the password policy local service.- Parameters:
passwordPolicyLocalService- the password policy local service
-
getPasswordPolicyPersistence
public com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence getPasswordPolicyPersistence()Returns the password policy persistence.- Returns:
- the password policy persistence
-
setPasswordPolicyPersistence
public void setPasswordPolicyPersistence(com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence) Sets the password policy persistence.- Parameters:
passwordPolicyPersistence- the password policy persistence
-
getPasswordPolicyFinder
public com.liferay.portal.kernel.service.persistence.PasswordPolicyFinder getPasswordPolicyFinder()Returns the password policy finder.- Returns:
- the password policy finder
-
setPasswordPolicyFinder
public void setPasswordPolicyFinder(com.liferay.portal.kernel.service.persistence.PasswordPolicyFinder passwordPolicyFinder) Sets the password policy finder.- Parameters:
passwordPolicyFinder- the password policy finder
-
getCounterLocalService
public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()Returns the counter local service.- Returns:
- the counter local service
-
setCounterLocalService
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.- Parameters:
counterLocalService- the counter local service
-
afterPropertiesSet
public void afterPropertiesSet() -
destroy
public void destroy() -
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.service.PasswordPolicyLocalService- Returns:
- the OSGi service identifier
-
getModelClass
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql- the sql query
-