Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
b7c219a5
Commit
b7c219a5
authored
4 years ago
by
Mandar Ambawane
Committed by
nixonrodrigues
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-4016 : Update authorization - 'admin-audits' for retrieving admin audits
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
801d40c3
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
AtlasPrivilege.java
.../main/java/org/apache/atlas/authorize/AtlasPrivilege.java
+3
-1
AdminResource.java
...in/java/org/apache/atlas/web/resources/AdminResource.java
+2
-0
No files found.
authorization/src/main/java/org/apache/atlas/authorize/AtlasPrivilege.java
View file @
b7c219a5
...
@@ -44,7 +44,9 @@ public enum AtlasPrivilege {
...
@@ -44,7 +44,9 @@ public enum AtlasPrivilege {
ENTITY_REMOVE_LABEL
(
"entity-remove-label"
),
ENTITY_REMOVE_LABEL
(
"entity-remove-label"
),
ENTITY_UPDATE_BUSINESS_METADATA
(
"entity-update-business-metadata"
),
ENTITY_UPDATE_BUSINESS_METADATA
(
"entity-update-business-metadata"
),
TYPE_READ
(
"type-read"
);
TYPE_READ
(
"type-read"
),
ADMIN_AUDITS
(
"admin-audits"
);
private
final
String
type
;
private
final
String
type
;
...
...
This diff is collapsed.
Click to expand it.
webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
View file @
b7c219a5
...
@@ -624,6 +624,8 @@ public class AdminResource {
...
@@ -624,6 +624,8 @@ public class AdminResource {
perf
=
AtlasPerfTracer
.
getPerfTracer
(
PERF_LOG
,
"AdminResource.getAtlasAudits("
+
auditSearchParameters
+
")"
);
perf
=
AtlasPerfTracer
.
getPerfTracer
(
PERF_LOG
,
"AdminResource.getAtlasAudits("
+
auditSearchParameters
+
")"
);
}
}
AtlasAuthorizationUtils
.
verifyAccess
(
new
AtlasAdminAccessRequest
(
AtlasPrivilege
.
ADMIN_AUDITS
),
"Admin Audits"
);
return
auditService
.
get
(
auditSearchParameters
);
return
auditService
.
get
(
auditSearchParameters
);
}
finally
{
}
finally
{
AtlasPerfTracer
.
log
(
perf
);
AtlasPerfTracer
.
log
(
perf
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment