mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
[ACS-1715] Deprecate reset-password APIs (#558)
This commit is contained in:
@@ -92,6 +92,8 @@ public interface People
|
|||||||
CollectionWithPagingInfo<Person> getPeople(Parameters parameters);
|
CollectionWithPagingInfo<Person> getPeople(Parameters parameters);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* Request password reset (an email will be sent to the registered email of the given {@code userId}).
|
* Request password reset (an email will be sent to the registered email of the given {@code userId}).
|
||||||
* The API returns a 202 response for a valid, as well as the invalid (does not exist or disabled) userId
|
* The API returns a 202 response for a valid, as well as the invalid (does not exist or disabled) userId
|
||||||
*
|
*
|
||||||
@@ -101,6 +103,8 @@ public interface People
|
|||||||
void requestPasswordReset(String userId, String client);
|
void requestPasswordReset(String userId, String client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* Performs password reset
|
* Performs password reset
|
||||||
*
|
*
|
||||||
* @param passwordReset the password reset details
|
* @param passwordReset the password reset details
|
||||||
|
@@ -866,6 +866,7 @@ public class PeopleImpl implements People
|
|||||||
return authorityService.isAdminAuthority(authorityName);
|
return authorityService.isAdminAuthority(authorityName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void requestPasswordReset(String userId, String client)
|
public void requestPasswordReset(String userId, String client)
|
||||||
{
|
{
|
||||||
@@ -895,6 +896,7 @@ public class PeopleImpl implements People
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void resetPassword(String personId, final PasswordReset passwordReset)
|
public void resetPassword(String personId, final PasswordReset passwordReset)
|
||||||
{
|
{
|
||||||
|
@@ -163,6 +163,7 @@ public class PeopleEntityResource implements EntityResourceAction.ReadById<Perso
|
|||||||
return people.getPeople(params);
|
return people.getPeople(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Operation("request-password-reset")
|
@Operation("request-password-reset")
|
||||||
@WebApiDescription(title = "Request Password Reset", description = "Request password reset",
|
@WebApiDescription(title = "Request Password Reset", description = "Request password reset",
|
||||||
successStatus = HttpServletResponse.SC_ACCEPTED)
|
successStatus = HttpServletResponse.SC_ACCEPTED)
|
||||||
@@ -172,6 +173,7 @@ public class PeopleEntityResource implements EntityResourceAction.ReadById<Perso
|
|||||||
people.requestPasswordReset(personId, client.getClient());
|
people.requestPasswordReset(personId, client.getClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Operation("reset-password")
|
@Operation("reset-password")
|
||||||
@WebApiDescription(title = "Reset Password", description = "Performs password reset", successStatus = HttpServletResponse.SC_ACCEPTED)
|
@WebApiDescription(title = "Reset Password", description = "Performs password reset", successStatus = HttpServletResponse.SC_ACCEPTED)
|
||||||
@WebApiNoAuth
|
@WebApiNoAuth
|
||||||
|
@@ -32,11 +32,13 @@ import org.alfresco.repo.client.config.ClientAppNotFoundException;
|
|||||||
import org.alfresco.repo.security.authentication.ResetPasswordServiceImpl.ResetPasswordDetails;
|
import org.alfresco.repo.security.authentication.ResetPasswordServiceImpl.ResetPasswordDetails;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
* Reset password service.
|
* Reset password service.
|
||||||
*
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface ResetPasswordService
|
public interface ResetPasswordService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -74,11 +74,14 @@ import java.util.Locale;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
* *
|
||||||
* Reset password implementation based on workflow.
|
* Reset password implementation based on workflow.
|
||||||
*
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class ResetPasswordServiceImpl implements ResetPasswordService
|
public class ResetPasswordServiceImpl implements ResetPasswordService
|
||||||
{
|
{
|
||||||
private static final Log LOGGER = LogFactory.getLog(ResetPasswordServiceImpl.class);
|
private static final Log LOGGER = LogFactory.getLog(ResetPasswordServiceImpl.class);
|
||||||
|
@@ -30,9 +30,12 @@ import org.alfresco.repo.security.authentication.ResetPasswordService;
|
|||||||
import org.alfresco.repo.workflow.activiti.BaseJavaDelegate;
|
import org.alfresco.repo.workflow.activiti.BaseJavaDelegate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public abstract class AbstractResetPasswordDelegate extends BaseJavaDelegate
|
public abstract class AbstractResetPasswordDelegate extends BaseJavaDelegate
|
||||||
{
|
{
|
||||||
protected ResetPasswordService resetPasswordService;
|
protected ResetPasswordService resetPasswordService;
|
||||||
|
@@ -30,11 +30,14 @@ import org.activiti.engine.delegate.DelegateExecution;
|
|||||||
import org.activiti.engine.delegate.JavaDelegate;
|
import org.activiti.engine.delegate.JavaDelegate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* This {@link JavaDelegate activiti delegate} is executed when a user resets his/her password.
|
* This {@link JavaDelegate activiti delegate} is executed when a user resets his/her password.
|
||||||
*
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class PerformResetPasswordDelegate extends AbstractResetPasswordDelegate
|
public class PerformResetPasswordDelegate extends AbstractResetPasswordDelegate
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
|
@@ -30,11 +30,14 @@ import org.activiti.engine.delegate.DelegateExecution;
|
|||||||
import org.activiti.engine.delegate.JavaDelegate;
|
import org.activiti.engine.delegate.JavaDelegate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* This {@link JavaDelegate activiti delegate} is executed when a user is finished resetting his/her password.
|
* This {@link JavaDelegate activiti delegate} is executed when a user is finished resetting his/her password.
|
||||||
*
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class SendResetPasswordConfirmationEmailDelegate extends AbstractResetPasswordDelegate
|
public class SendResetPasswordConfirmationEmailDelegate extends AbstractResetPasswordDelegate
|
||||||
{
|
{
|
||||||
private static final String EMAIL_SUBJECT_KEY = "reset-password-confirmation.email.subject";
|
private static final String EMAIL_SUBJECT_KEY = "reset-password-confirmation.email.subject";
|
||||||
|
@@ -29,12 +29,15 @@ package org.alfresco.repo.security.authentication.activiti;
|
|||||||
import org.activiti.engine.delegate.DelegateExecution;
|
import org.activiti.engine.delegate.DelegateExecution;
|
||||||
import org.activiti.engine.delegate.JavaDelegate;
|
import org.activiti.engine.delegate.JavaDelegate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* This {@link JavaDelegate activiti delegate} is executed when a user request password reset.
|
* This {@link JavaDelegate activiti delegate} is executed when a user request password reset.
|
||||||
*
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class SendResetPasswordEmailDelegate extends AbstractResetPasswordDelegate
|
public class SendResetPasswordEmailDelegate extends AbstractResetPasswordDelegate
|
||||||
{
|
{
|
||||||
private static final String EMAIL_SUBJECT_KEY = "reset-password-request.email.subject";
|
private static final String EMAIL_SUBJECT_KEY = "reset-password-request.email.subject";
|
||||||
|
@@ -29,9 +29,12 @@ package org.alfresco.repo.workflow;
|
|||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated from 7.1.0
|
||||||
|
*
|
||||||
* @author Jamal Kaabi-Mofrad
|
* @author Jamal Kaabi-Mofrad
|
||||||
* @since 5.2.1
|
* @since 5.2.1
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface WorkflowModelResetPassword
|
public interface WorkflowModelResetPassword
|
||||||
{
|
{
|
||||||
// namespace
|
// namespace
|
||||||
|
Reference in New Issue
Block a user