public class PasswordPolicyServiceHttp
extends Object
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.
Constructor and Description |
---|
PasswordPolicyServiceHttp() |
Modifier and Type | Method and 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) |
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
com.liferay.portal.kernel.exception.PortalException
public static void deletePasswordPolicy(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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)
public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name)
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
com.liferay.portal.kernel.exception.PortalException