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
4516418b
Commit
4516418b
authored
Dec 28, 2017
by
nixonrodrigues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2272 :- Save the state of dragged columns using save search API.
parent
6eff6b67
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
0010-base_model.json
addons/models/0000-Area0/0010-base_model.json
+8
-0
AtlasUserSavedSearch.java
.../org/apache/atlas/model/profile/AtlasUserSavedSearch.java
+16
-0
AtlasSavedSearchDTO.java
.../org/apache/atlas/repository/ogm/AtlasSavedSearchDTO.java
+5
-0
No files found.
addons/models/0000-Area0/0010-base_model.json
View file @
4516418b
...
...
@@ -184,6 +184,14 @@
"isIndexable"
:
false
,
"isOptional"
:
false
,
"isUnique"
:
false
},
{
"name"
:
"uiParameters"
,
"typeName"
:
"string"
,
"cardinality"
:
"SINGLE"
,
"isIndexable"
:
false
,
"isOptional"
:
true
,
"isUnique"
:
false
}
]
}
...
...
intg/src/main/java/org/apache/atlas/model/profile/AtlasUserSavedSearch.java
View file @
4516418b
...
...
@@ -49,6 +49,7 @@ public class AtlasUserSavedSearch extends AtlasBaseModelObject implements Serial
private
String
name
;
private
SavedSearchType
searchType
;
private
SearchParameters
searchParameters
;
private
String
uiParameters
;
public
AtlasUserSavedSearch
()
{
...
...
@@ -70,6 +71,11 @@ public class AtlasUserSavedSearch extends AtlasBaseModelObject implements Serial
setSearchParameters
(
searchParameters
);
}
public
AtlasUserSavedSearch
(
String
ownerName
,
String
name
,
SavedSearchType
searchType
,
SearchParameters
searchParameters
,
String
uiParameters
)
{
this
(
ownerName
,
name
,
searchType
,
searchParameters
);
setUiParameters
(
uiParameters
);
}
public
String
getOwnerName
()
{
return
this
.
ownerName
;
...
...
@@ -103,6 +109,14 @@ public class AtlasUserSavedSearch extends AtlasBaseModelObject implements Serial
this
.
searchParameters
=
searchParameters
;
}
public
String
getUiParameters
()
{
return
uiParameters
;
}
public
void
setUiParameters
(
String
uiParameters
)
{
this
.
uiParameters
=
uiParameters
;
}
@Override
public
StringBuilder
toString
(
StringBuilder
sb
)
{
sb
.
append
(
", ownerName="
).
append
(
ownerName
);
...
...
@@ -115,6 +129,8 @@ public class AtlasUserSavedSearch extends AtlasBaseModelObject implements Serial
searchParameters
.
toString
(
sb
);
}
sb
.
append
(
", uiParameters="
).
append
(
uiParameters
);
return
sb
;
}
}
repository/src/main/java/org/apache/atlas/repository/ogm/AtlasSavedSearchDTO.java
View file @
4516418b
...
...
@@ -36,6 +36,7 @@ public class AtlasSavedSearchDTO extends AbstractDataTransferObject<AtlasUserSav
private
static
final
String
PROPERTY_SEARCH_PARAMETERS
=
"searchParameters"
;
private
static
final
String
PROPERTY_UNIQUE_NAME
=
"uniqueName"
;
private
static
final
String
PROPERTY_SEARCH_TYPE
=
"searchType"
;
private
static
final
String
PROPERTY_UI_PARAMETERS
=
"uiParameters"
;
public
AtlasSavedSearchDTO
(
AtlasTypeRegistry
typeRegistry
)
{
super
(
typeRegistry
,
AtlasUserSavedSearch
.
class
);
...
...
@@ -56,6 +57,8 @@ public class AtlasSavedSearchDTO extends AbstractDataTransferObject<AtlasUserSav
savedSearch
.
setSearchParameters
(
AtlasType
.
fromJson
(
jsonSearchParams
,
SearchParameters
.
class
));
}
savedSearch
.
setUiParameters
((
String
)
entity
.
getAttribute
(
PROPERTY_UI_PARAMETERS
));
return
savedSearch
;
}
...
...
@@ -77,6 +80,8 @@ public class AtlasSavedSearchDTO extends AbstractDataTransferObject<AtlasUserSav
entity
.
setAttribute
(
PROPERTY_SEARCH_PARAMETERS
,
AtlasType
.
toJson
(
obj
.
getSearchParameters
()));
}
entity
.
setAttribute
(
PROPERTY_UI_PARAMETERS
,
obj
.
getUiParameters
());
return
entity
;
}
...
...
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