Class PasswordPolicyServiceUtil

Object
com.liferay.portal.kernel.service.PasswordPolicyServiceUtil

public class PasswordPolicyServiceUtil extends Object
Provides the remote service utility for PasswordPolicy. This utility wraps com.liferay.portal.service.impl.PasswordPolicyServiceImpl and is an access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • PasswordPolicyServiceUtil

      public PasswordPolicyServiceUtil()
  • Method Details

    • addPasswordPolicy

      public static PasswordPolicy addPasswordPolicy(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, ServiceContext serviceContext) throws PortalException
      Throws:
      PortalException
    • deletePasswordPolicy

      public static void deletePasswordPolicy(long passwordPolicyId) throws PortalException
      Throws:
      PortalException
    • fetchPasswordPolicy

      public static PasswordPolicy fetchPasswordPolicy(long passwordPolicyId) throws PortalException
      Throws:
      PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • search

      public static List<PasswordPolicy> search(long companyId, String name, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator)
    • searchCount

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

      public static 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, ServiceContext serviceContext) throws PortalException
      Throws:
      PortalException
    • getService

      public static PasswordPolicyService getService()
    • setService

      public static void setService(PasswordPolicyService service)