Skip to content

Commit

Permalink
Add predefined roles #30
Browse files Browse the repository at this point in the history
  • Loading branch information
zaharchenko committed Apr 27, 2020
1 parent fe60a3d commit 4852a36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@
import de.diedavids.cuba.runtimediagnose.entity.DiagnoseExecutionLog;
import de.diedavids.cuba.runtimediagnose.wizard.DiagnoseWizardResult;

@Role(name = "Admin tools full access")
@Role(name = "admin-tools-full-access")
public class AdminToolsAdminRole extends AnnotatedRoleDefinition {

@Override
public String getLocName() {
return "Admin tools full access";
}

@EntityAccess(entityClass = DiagnoseWizardResult.class, operations = {EntityOp.CREATE, EntityOp.UPDATE, EntityOp.READ, EntityOp.DELETE})
@EntityAccess(entityClass = DiagnoseExecutionLog.class,
operations = {EntityOp.CREATE, EntityOp.READ, EntityOp.UPDATE, EntityOp.DELETE})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@
import de.diedavids.cuba.runtimediagnose.entity.DiagnoseExecutionLog;
import de.diedavids.cuba.runtimediagnose.wizard.DiagnoseWizardResult;

@Role(name = "Admin tools diagnose")
@Role(name = "admin-tools-diagnose")
public class DiagnoseWizardRole extends AnnotatedRoleDefinition {

@Override
public String getLocName() {
return "Admin tools diagnose";
}

@EntityAccess(entityClass = DiagnoseExecutionLog.class, operations = EntityOp.CREATE)
@EntityAccess(entityClass = DiagnoseWizardResult.class, operations = {EntityOp.CREATE, EntityOp.READ, EntityOp.UPDATE})
@EntityAccess(entityClass = FileDescriptor.class, operations = {EntityOp.CREATE, EntityOp.READ, EntityOp.UPDATE})
Expand Down

0 comments on commit 4852a36

Please sign in to comment.