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
25bae4fe
Commit
25bae4fe
authored
7 years ago
by
Sarath Subramanian
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2771: Add option to exclude internal types when retrieving typedefs via REST
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
eb22be8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
TypesREST.java
...pp/src/main/java/org/apache/atlas/web/rest/TypesREST.java
+10
-3
No files found.
webapp/src/main/java/org/apache/atlas/web/rest/TypesREST.java
View file @
25bae4fe
...
...
@@ -416,11 +416,18 @@ public class TypesREST {
private
SearchFilter
getSearchFilter
(
HttpServletRequest
httpServletRequest
)
{
SearchFilter
ret
=
new
SearchFilter
();
Set
<
String
>
keySet
=
httpServletRequest
.
getParameterMap
().
keySet
();
for
(
String
key
:
keySet
)
{
ret
.
setParam
(
String
.
valueOf
(
key
),
String
.
valueOf
(
httpServletRequest
.
getParameter
(
key
)));
}
for
(
String
k
:
keySet
)
{
String
key
=
String
.
valueOf
(
k
);
String
value
=
String
.
valueOf
(
httpServletRequest
.
getParameter
(
k
));
if
(
key
.
equalsIgnoreCase
(
"excludeInternalTypesAndReferences"
)
&&
value
.
equalsIgnoreCase
(
"true"
))
{
FilterUtil
.
addParamsToHideInternalType
(
ret
);
}
else
{
ret
.
setParam
(
key
,
value
);
}
}
return
ret
;
}
}
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