Rename legacy profile methods to separate them in metrics
This commit is contained in:
parent
caba110266
commit
077ead71a5
|
@ -367,7 +367,7 @@ public class ProfileController {
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Path("/name/{name}")
|
@Path("/name/{name}")
|
||||||
public void setProfile(@Auth AuthenticatedAccount auth,
|
public void setLegacyProfile(@Auth AuthenticatedAccount auth,
|
||||||
@PathParam("name") @ExactlySize(value = {72, 108}, payload = {Unwrapping.Unwrap.class}) Optional<String> name) {
|
@PathParam("name") @ExactlySize(value = {72, 108}, payload = {Unwrapping.Unwrap.class}) Optional<String> name) {
|
||||||
accountsManager.update(auth.getAccount(), a -> a.setProfileName(name.orElse(null)));
|
accountsManager.update(auth.getAccount(), a -> a.setProfileName(name.orElse(null)));
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@ public class ProfileController {
|
||||||
@GET
|
@GET
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Path("/{identifier}")
|
@Path("/{identifier}")
|
||||||
public Profile getProfile(
|
public Profile getLegacyProfile(
|
||||||
@Auth Optional<AuthenticatedAccount> auth,
|
@Auth Optional<AuthenticatedAccount> auth,
|
||||||
@HeaderParam(OptionalAccess.UNIDENTIFIED) Optional<Anonymous> accessKey,
|
@HeaderParam(OptionalAccess.UNIDENTIFIED) Optional<Anonymous> accessKey,
|
||||||
@Context ContainerRequestContext containerRequestContext,
|
@Context ContainerRequestContext containerRequestContext,
|
||||||
|
@ -426,7 +426,7 @@ public class ProfileController {
|
||||||
@GET
|
@GET
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Path("/form/avatar")
|
@Path("/form/avatar")
|
||||||
public ProfileAvatarUploadAttributes getAvatarUploadForm(@Auth AuthenticatedAccount auth) {
|
public ProfileAvatarUploadAttributes getLegacyAvatarUploadForm(@Auth AuthenticatedAccount auth) {
|
||||||
String previousAvatar = auth.getAccount().getAvatar();
|
String previousAvatar = auth.getAccount().getAvatar();
|
||||||
String objectName = generateAvatarObjectName();
|
String objectName = generateAvatarObjectName();
|
||||||
ProfileAvatarUploadAttributes profileAvatarUploadAttributes = generateAvatarUploadForm(objectName);
|
ProfileAvatarUploadAttributes profileAvatarUploadAttributes = generateAvatarUploadForm(objectName);
|
||||||
|
|
Loading…
Reference in New Issue