Adapting to redback REST changes

This commit is contained in:
Martin Stockhammer 2020-08-26 17:29:35 +02:00
parent 833651d652
commit 780886fcdc
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ public void downloadWithRemoteRedirect()
RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader ); RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader );
if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER,
"internal" ).isExists() ) "internal" ) )
{ {
roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, "internal" ); roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, "internal" );
} }

View File

@ -131,7 +131,7 @@ public void downloadSNAPSHOT()
RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader ); RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader );
if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER,
id ).isExists() ) id ) )
{ {
roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, id ); roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, id );
} }