Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synergy-api-util
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raimbek Egemberdiev
synergy-api-util
Commits
c4a7691e
Commit
c4a7691e
authored
Nov 11, 2016
by
Raimbek Egemberdiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advanced search one
parent
9aac5358
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/main/java/kz/arta/synergy/api/asforms/AsFormService.java
src/main/java/kz/arta/synergy/api/asforms/AsFormService.java
+6
-0
No files found.
src/main/java/kz/arta/synergy/api/asforms/AsFormService.java
View file @
c4a7691e
...
@@ -45,6 +45,12 @@ public class AsFormService {
...
@@ -45,6 +45,12 @@ public class AsFormService {
return
JsonUtils
.
read
(
result
,
new
TypeReference
<
List
<
AdvancedSearchResult
>>()
{});
return
JsonUtils
.
read
(
result
,
new
TypeReference
<
List
<
AdvancedSearchResult
>>()
{});
}
}
public
List
<
AdvancedSearchResult
>
advancedSearch
(
String
formId
,
String
key
,
String
value
)
throws
IOException
{
return
advancedSearch
(
AdvancedSearchParams
.
build
(
String
.
format
(
"where uuid='%s' and %s='%s'"
,
formId
,
key
,
value
),
key
));
}
public
<
T
extends
AsForm
>
T
fetch
(
Class
<
T
>
formClass
,
String
dataUUID
)
throws
IOException
{
public
<
T
extends
AsForm
>
T
fetch
(
Class
<
T
>
formClass
,
String
dataUUID
)
throws
IOException
{
String
data
=
restHttpQuery
.
doQuery
(
Query
.
newInstance
().
url
(
"/rest/api/asforms/data/"
+
dataUUID
));
String
data
=
restHttpQuery
.
doQuery
(
Query
.
newInstance
().
url
(
"/rest/api/asforms/data/"
+
dataUUID
));
return
asfFormConverter
.
toAsForm
(
formClass
,
JsonUtils
.
read
(
data
,
AsFormWrapper
.
class
));
return
asfFormConverter
.
toAsForm
(
formClass
,
JsonUtils
.
read
(
data
,
AsFormWrapper
.
class
));
...
...
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