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
fa7d1675
Commit
fa7d1675
authored
Jan 21, 2019
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3029: Audit APIs for classification updates.
parent
cd51cefb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ClassificationAssociator.java
...s/repository/store/graph/v2/ClassificationAssociator.java
+7
-7
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/ClassificationAssociator.java
View file @
fa7d1675
...
...
@@ -171,7 +171,7 @@ public class ClassificationAssociator {
operationListMap
.
put
(
op
,
results
);
}
private
void
addClassifications
(
String
entity
ToBeChanged
Guid
,
String
typeName
,
String
qualifiedName
,
List
<
AtlasClassification
>
list
)
{
private
void
addClassifications
(
String
entityGuid
,
String
typeName
,
String
qualifiedName
,
List
<
AtlasClassification
>
list
)
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
;
}
...
...
@@ -179,16 +179,16 @@ public class ClassificationAssociator {
String
status
=
STATUS_DONE
;
String
classificationNames
=
getClassificationNames
(
list
);
try
{
entitiesStore
.
addClassifications
(
entity
ToBeChanged
Guid
,
list
);
entitiesStore
.
addClassifications
(
entityGuid
,
list
);
}
catch
(
AtlasBaseException
e
)
{
status
=
STATUS_PARTIAL
;
LOG
.
warn
(
"{}:{}:{} -> {}: {}."
,
PROCESS_UPDATE
,
typeName
,
qualifiedName
,
classificationNames
,
status
);
}
summarize
(
PROCESS_ADD
,
entity
ToBeChanged
Guid
,
typeName
,
qualifiedName
,
classificationNames
,
status
);
summarize
(
PROCESS_ADD
,
entityGuid
,
typeName
,
qualifiedName
,
classificationNames
,
status
);
}
private
void
updateClassifications
(
String
entity
ToBeChanged
Guid
,
String
typeName
,
String
qualifiedName
,
List
<
AtlasClassification
>
list
)
{
private
void
updateClassifications
(
String
entityGuid
,
String
typeName
,
String
qualifiedName
,
List
<
AtlasClassification
>
list
)
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
;
}
...
...
@@ -197,16 +197,16 @@ public class ClassificationAssociator {
String
classificationNames
=
getClassificationNames
(
list
);
try
{
entitiesStore
.
updateClassifications
(
entity
ToBeChanged
Guid
,
list
);
entitiesStore
.
updateClassifications
(
entityGuid
,
list
);
}
catch
(
AtlasBaseException
e
)
{
status
=
STATUS_PARTIAL
;
LOG
.
warn
(
"{}:{}:{} -> {}: {}."
,
PROCESS_UPDATE
,
typeName
,
qualifiedName
,
classificationNames
,
status
);
}
summarize
(
PROCESS_UPDATE
,
entity
ToBeChanged
Guid
,
typeName
,
qualifiedName
,
classificationNames
,
status
);
summarize
(
PROCESS_UPDATE
,
entityGuid
,
typeName
,
qualifiedName
,
classificationNames
,
status
);
}
private
void
deleteClassifications
(
String
typeName
,
String
entityGuid
,
String
qualifiedName
,
List
<
AtlasClassification
>
list
)
{
private
void
deleteClassifications
(
String
entityGuid
,
String
typeName
,
String
qualifiedName
,
List
<
AtlasClassification
>
list
)
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
;
}
...
...
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