Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
java-library-glpi
Commits
9a53edf3
Commit
9a53edf3
authored
Oct 30, 2017
by
Rafa Hernandez
Committed by
Alexander Salas Bastidas
Nov 01, 2017
Browse files
refactor(getItem): change method name
refactor(getItems): change method name refactor(getItem): change method name
parent
9de17859
Changes
1
Show whitespace changes
Inline
Side-by-side
glpi/src/main/java/org/glpi/api/GLPI.java
View file @
9a53edf3
...
@@ -463,8 +463,8 @@ public class GLPI extends ServiceGenerator {
...
@@ -463,8 +463,8 @@ public class GLPI extends ServiceGenerator {
* @param id unique identifier of the itemtype
* @param id unique identifier of the itemtype
* @param callback here your are going to get the asynchronous response
* @param callback here your are going to get the asynchronous response
*/
*/
public
void
get
An
Item
(
itemType
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
public
void
getItem
(
itemType
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
get
An
Item
(
new
GetAnItemQuery
(),
itemType
,
id
,
callback
);
getItem
(
new
GetAnItemQuery
(),
itemType
,
id
,
callback
);
}
}
/**
/**
...
@@ -473,8 +473,8 @@ public class GLPI extends ServiceGenerator {
...
@@ -473,8 +473,8 @@ public class GLPI extends ServiceGenerator {
* @param id unique identifier of the itemtype
* @param id unique identifier of the itemtype
* @param callback here your are going to get the asynchronous response
* @param callback here your are going to get the asynchronous response
*/
*/
public
void
get
An
Item
(
String
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
public
void
getItem
(
String
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
get
An
Item
(
new
GetAnItemQuery
(),
itemType
,
id
,
callback
);
getItem
(
new
GetAnItemQuery
(),
itemType
,
id
,
callback
);
}
}
/**
/**
...
@@ -484,8 +484,8 @@ public class GLPI extends ServiceGenerator {
...
@@ -484,8 +484,8 @@ public class GLPI extends ServiceGenerator {
* @param id unique identifier of the itemtype
* @param id unique identifier of the itemtype
* @param callback here your are going to get the asynchronous response
* @param callback here your are going to get the asynchronous response
*/
*/
public
void
get
An
Item
(
GetAnItemQuery
options
,
itemType
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
public
void
getItem
(
GetAnItemQuery
options
,
itemType
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
get
An
Item
(
options
,
itemType
.
name
(),
id
,
callback
);
getItem
(
options
,
itemType
.
name
(),
id
,
callback
);
}
}
/**
/**
...
@@ -495,7 +495,7 @@ public class GLPI extends ServiceGenerator {
...
@@ -495,7 +495,7 @@ public class GLPI extends ServiceGenerator {
* @param id unique identifier of the itemtype
* @param id unique identifier of the itemtype
* @param callback here your are going to get the asynchronous response
* @param callback here your are going to get the asynchronous response
*/
*/
public
void
get
An
Item
(
GetAnItemQuery
options
,
String
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
public
void
getItem
(
GetAnItemQuery
options
,
String
itemType
,
String
id
,
final
JsonObjectCallback
callback
)
{
Call
<
JsonObject
>
responseCall
=
interfaces
.
getAnItem
(
getHeader
(),
itemType
,
id
,
options
.
getQuery
());
Call
<
JsonObject
>
responseCall
=
interfaces
.
getAnItem
(
getHeader
(),
itemType
,
id
,
options
.
getQuery
());
responseCall
.
enqueue
(
new
Callback
<
JsonObject
>()
{
responseCall
.
enqueue
(
new
Callback
<
JsonObject
>()
{
...
...
Write
Preview
Supports
Markdown
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