Class PasswordPolicyLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.PasswordPolicyLocalServiceBaseImpl
com.liferay.portal.service.impl.PasswordPolicyLocalServiceImpl
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

public class PasswordPolicyLocalServiceImpl extends PasswordPolicyLocalServiceBaseImpl
Author:
Scott Lee
  • Constructor Details

    • PasswordPolicyLocalServiceImpl

      public PasswordPolicyLocalServiceImpl()
  • Method Details

    • addPasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy addPasswordPolicy(long userId, boolean defaultPolicy, String name, String description, boolean changeable, boolean changeRequired, long minAge, boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric, int minLength, int minLowerCase, int minNumbers, int minSymbols, int minUpperCase, String regex, boolean history, int historyCount, boolean expireable, long maxAge, long warningTime, int graceLimit, boolean lockout, int maxFailure, long lockoutDuration, long resetFailureCount, long resetTicketMaxAge, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkDefaultPasswordPolicy

      public void checkDefaultPasswordPolicy(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteNondefaultPasswordPolicies

      public void deleteNondefaultPasswordPolicies(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy deletePasswordPolicy(long passwordPolicyId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: PasswordPolicyLocalServiceBaseImpl
      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:
      deletePasswordPolicy in interface com.liferay.portal.kernel.service.PasswordPolicyLocalService
      Overrides:
      deletePasswordPolicy in class PasswordPolicyLocalServiceBaseImpl
      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

      @SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.PasswordPolicy deletePasswordPolicy(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: PasswordPolicyLocalServiceBaseImpl
      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:
      deletePasswordPolicy in interface com.liferay.portal.kernel.service.PasswordPolicyLocalService
      Overrides:
      deletePasswordPolicy in class PasswordPolicyLocalServiceBaseImpl
      Parameters:
      passwordPolicy - the password policy
      Returns:
      the password policy that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchPasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy fetchPasswordPolicy(long companyId, String name)
    • getDefaultPasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy getDefaultPasswordPolicy(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicy(long companyId, boolean defaultPolicy) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicy(long companyId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPasswordPolicyByUser

      public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicyByUser(com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPasswordPolicyByUserId

      @ThreadLocalCachable public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicyByUserId(long userId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public List<com.liferay.portal.kernel.model.PasswordPolicy> search(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    • searchCount

      public int searchCount(long companyId, String name)
    • updatePasswordPolicy

      public com.liferay.portal.kernel.model.PasswordPolicy updatePasswordPolicy(long passwordPolicyId, String name, String description, boolean changeable, boolean changeRequired, long minAge, boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric, int minLength, int minLowerCase, int minNumbers, int minSymbols, int minUpperCase, String regex, boolean history, int historyCount, boolean expireable, long maxAge, long warningTime, int graceLimit, boolean lockout, int maxFailure, long lockoutDuration, long resetFailureCount, long resetTicketMaxAge, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      protected void validate(long passwordPolicyId, long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException