Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)

135590 jkaabimofrad: APPSREPO-35: Added password reset V1 API.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135930 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2017-03-16 19:39:24 +00:00
parent e582e1a626
commit cded2f354d
6 changed files with 297 additions and 15 deletions

View File

@@ -0,0 +1,60 @@
/*
* #%L
* Alfresco Remote API
* %%
* Copyright (C) 2005 - 2017 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
package org.alfresco.rest.api.model;
/**
* Representation of a client app.
*
* @author Jamal Kaabi-Mofrad
* @since 5.2.1
*/
public class Client
{
/**
* client app name. Used to lookup the client
* that is registered to send emails so that
* client's specific configuration could be used.
*/
protected String client;
public String getClient()
{
return client;
}
public Client setClient(String client)
{
this.client = client;
return this;
}
@Override
public String toString()
{
return "Client [ client=" + client + ']';
}
}

View File

@@ -0,0 +1,91 @@
/*
* #%L
* Alfresco Remote API
* %%
* Copyright (C) 2005 - 2017 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
package org.alfresco.rest.api.model;
/**
* Representation of a password reset.
*
* @author Jamal Kaabi-Mofrad
* @since 5.2.1
*/
public class PasswordReset
{
/** new password */
private String password;
/** workflow Id */
private String id;
/** workflow Key */
private String key;
public PasswordReset()
{
}
public String getPassword()
{
return password;
}
public PasswordReset setPassword(String password)
{
this.password = password;
return this;
}
public String getId()
{
return id;
}
public PasswordReset setId(String id)
{
this.id = id;
return this;
}
public String getKey()
{
return key;
}
public PasswordReset setKey(String key)
{
this.key = key;
return this;
}
@Override
public String toString()
{
// we don't return the password for the obvious reason
final StringBuilder sb = new StringBuilder(100);
sb.append("PasswordReset [id=").append(id)
.append(", key=").append(key)
.append(']');
return sb.toString();
}
}