Skip to content
Permalink
Browse files
Updating permissions for v2 rest service
  • Loading branch information
effrafax committed Dec 19, 2021
1 parent 5e8ae24 commit 55b1e5d09f280f5747c1ba04517fbc233bed5d97
Show file tree
Hide file tree
Showing 15 changed files with 231 additions and 1,827 deletions.
@@ -45,29 +45,84 @@
// operations
public static final String OPERATION_MANAGE_USERS = "archiva-manage-users";

/**
* Maintenance role, that allows to run all configuration changes
*/
public static final String OPERATION_MANAGE_CONFIGURATION = "archiva-manage-configuration";

public static final String OPERATION_ACTIVE_GUEST = "archiva-guest";

/**
* Allows to run the indexer update
*/
public static final String OPERATION_RUN_INDEXER = "archiva-run-indexer";


public static final String OPERATION_REGENERATE_INDEX = "archiva-regenerate-index";

public static final String OPERATION_ACCESS_REPORT = "archiva-access-reports";

/**
* Permission to add a repository
* Scope: application
*/
public static final String OPERATION_ADD_REPOSITORY = "archiva-add-repository";

public static final String OPERATION_REPOSITORY_ACCESS = "archiva-read-repository";
/**
* Permission to read the attributes and contents of a repository
* Scope: repository
*/
public static final String OPERATION_READ_REPOSITORY = "archiva-read-repository";

/**
* Permission to delete a repository
* Scope: repository
*/
public static final String OPERATION_DELETE_REPOSITORY = "archiva-delete-repository";

/**
* Permission edit attributes of a repository
* Scope: repository
*/
public static final String OPERATION_EDIT_REPOSITORY = "archiva-edit-repository";

public static final String OPERATION_REPOSITORY_UPLOAD = "archiva-upload-repository";

/**
* Permission to upload a artifact to a specific repository
* Scope: repository
*/
public static final String OPERATION_ADD_ARTIFACT = "archiva-add-artifact";

/**
* Permission to delete a artifact from a repository
* Scope: repository
*/
public static final String OPERATION_DELETE_ARTIFACT = "archiva-delete-artifact";

/**
* Permission to delete a namespace (maven group) from a repository.
* Scope: repository
*/
public static final String OPERATION_DELETE_NAMESPACE = "archiva-delete-namespace";

/**
* Permission to delete a project
* Scope: repository
*/
public static final String OPERATION_DELETE_PROJECT = "archiva-delete-project";

/**
* Permission to delete a version
* Scope: repository
*/
public static final String OPERATION_DELETE_VERSION = "archiva-delete-version";

/**
* Permission to upload a file to the upload workspace
* Scope: application
*/
public static final String OPERATION_FILE_UPLOAD = "archiva-upload-file";

public static final String OPERATION_REPOSITORY_DELETE = "archiva-delete-artifact";


public static final String OPERATION_MERGE_REPOSITORY = "archiva-merge-repository";

@@ -48,11 +48,31 @@
<name>archiva-merge-repository</name>
<description>Archiva Merge Repository</description>
</operation>
<operation>
<operation>
<id>archiva-delete-namespace</id>
<name>archiva-delete-namespace</name>
<description>Delete Namespace (GroupID) from Archiva Repository</description>
</operation>
<operation>
<id>archiva-delete-project</id>
<name>archiva-delete-project</name>
<description>Delete Project (all versions) from Archiva Repository</description>
</operation>
<operation>
<id>archiva-delete-version</id>
<name>archiva-delete-version</name>
<description>Delete Version from Archiva Repository</description>
</operation>
<operation>
<id>archiva-delete-artifact</id>
<name>archiva-delete-artifact</name>
<description>Delete Artifact</description>
</operation>
<operation>
<id>archiva-add-artifact</id>
<name>archiva-add-artifact</name>
<description>Add artifact to Archiva Repository</description>
</operation>
<operation>
<id>archiva-access-reports</id>
<name>archiva-access-reports</name>
@@ -78,11 +98,6 @@
<name>archiva-edit-repository</name>
<description>Edit Archiva Repository</description>
</operation>
<operation>
<id>archiva-upload-repository</id>
<name>archiva-upload-repository</name>
<description>Upload Archiva Repository</description>
</operation>
<operation>
<id>archiva-upload-file</id>
<name>archiva-upload-file</name>
@@ -238,12 +253,36 @@
<namePrefix>Repository Manager</namePrefix>
<assignable>true</assignable>
<permissions>
<permission>
<permission>
<id>archiva-delete-namespace</id>
<name>Archiva Delete Namespace (GroupId)</name>
<operation>archiva-delete-namespace</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-delete-project</id>
<name>Archiva Delete Project</name>
<operation>archiva-delete-project</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-delete-version</id>
<name>Archiva Delete Version</name>
<operation>archiva-delete-version</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-delete-artifact</id>
<name>Delete Artifact</name>
<operation>archiva-delete-artifact</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-add-artifact</id>
<name>Add Artifact</name>
<operation>archiva-add-artifact</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-edit-repository</id>
<name>Archiva Edit Repository</name>
@@ -256,12 +295,6 @@
<operation>archiva-delete-repository</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-upload-repository</id>
<name>Archiva Upload to Repository</name>
<operation>archiva-upload-repository</operation>
<resource>${resource}</resource>
</permission>
<permission>
<id>archiva-upload-file</id>
<name>Archiva Upload File to Archiva</name>

0 comments on commit 55b1e5d

Please sign in to comment.