public class AlfrescoRestFactory extends Object
Factory for change password handling, based on REST API.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Class and Description |
---|---|
static class |
AlfrescoRestFactory.PasswordPostData |
Modifier and Type | Field and Description |
---|---|
protected static String |
SERVICE_URI |
Constructor and Description |
---|
AlfrescoRestFactory(String baseUrl,
OwRestletAuthenticationHandler authHandler) |
Modifier and Type | Method and Description |
---|---|
void |
changePassword(String userName,
String oldPassword,
String newPassword) |
protected org.restlet.Client |
createClient()
Factory to create base client for RESTFull call
|
protected org.restlet.resource.ClientResource |
createClientResource(String uri,
org.restlet.Client client)
Factory method to create ClientResource.
|
protected AlfrescoRestFactory.PasswordPostData |
createPasswordPostData(String oldPassword,
String newPassword)
Factory to create POJO to be send in change requet.
|
protected OwRestletAuthenticationHandler |
getAuthHandler()
Getter for provided AuthHandler
|
protected static final String SERVICE_URI
public AlfrescoRestFactory(String baseUrl, OwRestletAuthenticationHandler authHandler)
public void changePassword(String userName, String oldPassword, String newPassword) throws OwException
OwException
protected org.restlet.resource.ClientResource createClientResource(String uri, org.restlet.Client client) throws OwException
uri
- String relative to base URLclient
- Client managing resource and connectionOwException
protected org.restlet.Client createClient()
protected OwRestletAuthenticationHandler getAuthHandler()
protected AlfrescoRestFactory.PasswordPostData createPasswordPostData(String oldPassword, String newPassword)
oldPassword
- StringnewPassword
- StringCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.