Class PasswordPolicyServiceHttp

Object
com.liferay.portal.service.http.PasswordPolicyServiceHttp

public class PasswordPolicyServiceHttp extends Object
Provides the HTTP utility for the PasswordPolicyServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

Author:
Brian Wing Shun Chan
{$generated.description}
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.portal.kernel.model.PasswordPolicy
    addPasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, 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)
     
    static void
    deletePasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId)
     
    static com.liferay.portal.kernel.model.PasswordPolicy
    fetchPasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId)
     
    static List<com.liferay.portal.kernel.model.PasswordPolicy>
    search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
     
    static int
    searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name)
     
    static com.liferay.portal.kernel.model.PasswordPolicy
    updatePasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PasswordPolicyServiceHttp

      public PasswordPolicyServiceHttp()
  • Method Details

    • addPasswordPolicy

      public static com.liferay.portal.kernel.model.PasswordPolicy addPasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, 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
    • deletePasswordPolicy

      public static void deletePasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchPasswordPolicy

      public static com.liferay.portal.kernel.model.PasswordPolicy fetchPasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

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

      public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name)
    • updatePasswordPolicy

      public static com.liferay.portal.kernel.model.PasswordPolicy updatePasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, 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