Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
8344e8e3
Commit
8344e8e3
authored
Dec 09, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added NON_NULL
parent
a298e3bd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
239 additions
and
46 deletions
+239
-46
Credentials.java
...mons/src/main/java/nl/uva/sne/drip/model/Credentials.java
+2
-1
Message.java
...-commons/src/main/java/nl/uva/sne/drip/model/Message.java
+2
-0
MessageParameter.java
...src/main/java/nl/uva/sne/drip/model/MessageParameter.java
+2
-0
NodeTemplate.java
...ons/src/main/java/nl/uva/sne/drip/model/NodeTemplate.java
+2
-1
TopologyTemplate.java
...src/main/java/nl/uva/sne/drip/model/TopologyTemplate.java
+2
-1
ToscaTemplate.java
...ns/src/main/java/nl/uva/sne/drip/model/ToscaTemplate.java
+2
-1
User.java
drip-commons/src/main/java/nl/uva/sne/drip/model/User.java
+227
-42
No files found.
drip-commons/src/main/java/nl/uva/sne/drip/model/Credentials.java
View file @
8344e8e3
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -14,7 +15,7 @@ import org.springframework.data.annotation.Id;
...
@@ -14,7 +15,7 @@ import org.springframework.data.annotation.Id;
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
Credentials
{
public
class
Credentials
{
/**
/**
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/Message.java
View file @
8344e8e3
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
...
@@ -24,6 +25,7 @@ import java.util.List;
...
@@ -24,6 +25,7 @@ import java.util.List;
*
*
* @author S. Koulouzis.
* @author S. Koulouzis.
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
Message
implements
Serializable
{
public
class
Message
implements
Serializable
{
private
String
owner
;
private
String
owner
;
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/MessageParameter.java
View file @
8344e8e3
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -22,6 +23,7 @@ import java.util.Map;
...
@@ -22,6 +23,7 @@ import java.util.Map;
*
*
* @author S. Koulouzis.
* @author S. Koulouzis.
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
MessageParameter
implements
Serializable
{
public
class
MessageParameter
implements
Serializable
{
private
String
url
;
private
String
url
;
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/NodeTemplate.java
View file @
8344e8e3
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -15,7 +16,7 @@ import javax.validation.Valid;
...
@@ -15,7 +16,7 @@ import javax.validation.Valid;
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
NodeTemplate
{
public
class
NodeTemplate
{
@JsonProperty
(
"derived_from"
)
@JsonProperty
(
"derived_from"
)
private
String
derivedFrom
=
null
;
private
String
derivedFrom
=
null
;
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/TopologyTemplate.java
View file @
8344e8e3
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -15,7 +16,7 @@ import javax.validation.Valid;
...
@@ -15,7 +16,7 @@ import javax.validation.Valid;
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
TopologyTemplate
{
public
class
TopologyTemplate
{
@JsonProperty
(
"description"
)
@JsonProperty
(
"description"
)
private
String
description
=
null
;
private
String
description
=
null
;
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/ToscaTemplate.java
View file @
8344e8e3
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -17,7 +18,7 @@ import org.springframework.data.annotation.Id;
...
@@ -17,7 +18,7 @@ import org.springframework.data.annotation.Id;
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-06T13:31:49.386Z"
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
ToscaTemplate
{
public
class
ToscaTemplate
{
/**
/**
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/User.java
View file @
8344e8e3
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty.Access
;
import
io.swagger.annotations.ApiModelProperty
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
/**
* User
* User
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-1
2-06T13:31:49.386
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-1
0-25T14:09:25.182
Z"
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
User
{
public
class
User
{
@JsonProperty
(
"id"
)
private
Long
id
=
null
;
@JsonProperty
(
"username"
)
private
String
username
=
null
;
@JsonProperty
(
"firstName"
)
private
String
firstName
=
null
;
@JsonProperty
(
"lastName"
)
private
String
lastName
=
null
;
@JsonProperty
(
"email"
)
private
String
email
=
null
;
@JsonProperty
(
value
=
"password"
,
access
=
Access
.
WRITE_ONLY
)
private
String
password
=
null
;
@JsonProperty
(
"userStatus"
)
private
Integer
userStatus
=
null
;
public
User
id
(
Long
id
)
{
this
.
id
=
id
;
return
this
;
}
/**
* Get id
*
* @return id
*
*/
@ApiModelProperty
(
value
=
""
)
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
User
username
(
String
username
)
{
this
.
username
=
username
;
return
this
;
}
/**
* Get username
*
* @return username
*
*/
@ApiModelProperty
(
value
=
""
)
public
String
getUsername
()
{
return
username
;
}
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
public
User
firstName
(
String
firstName
)
{
this
.
firstName
=
firstName
;
return
this
;
}
/**
* Get firstName
*
* @return firstName
*
*/
@ApiModelProperty
(
value
=
""
)
public
String
getFirstName
()
{
return
firstName
;
}
public
void
setFirstName
(
String
firstName
)
{
this
.
firstName
=
firstName
;
}
public
User
lastName
(
String
lastName
)
{
this
.
lastName
=
lastName
;
return
this
;
}
/**
* Get lastName
*
* @return lastName
*
*/
@ApiModelProperty
(
value
=
""
)
public
String
getLastName
()
{
return
lastName
;
}
public
void
setLastName
(
String
lastName
)
{
this
.
lastName
=
lastName
;
}
public
User
email
(
String
email
)
{
this
.
email
=
email
;
return
this
;
}
/**
* Get email
*
* @return email
*
*/
@ApiModelProperty
(
value
=
""
)
public
String
getEmail
()
{
return
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
User
password
(
String
password
)
{
this
.
password
=
password
;
return
this
;
}
/**
* Get password
*
* @return password
*
*/
@ApiModelProperty
(
value
=
""
)
@JsonIgnore
public
String
getPassword
()
{
return
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
User
userStatus
(
Integer
userStatus
)
{
this
.
userStatus
=
userStatus
;
return
this
;
}
/**
* User Status
*
* @return userStatus
*
*/
@ApiModelProperty
(
value
=
"User Status"
)
public
Integer
getUserStatus
()
{
return
userStatus
;
}
public
void
setUserStatus
(
Integer
userStatus
)
{
this
.
userStatus
=
userStatus
;
}
@Override
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
if
(
this
==
o
)
{
...
@@ -21,12 +193,19 @@ public class User {
...
@@ -21,12 +193,19 @@ public class User {
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
return
false
;
}
}
return
true
;
User
user
=
(
User
)
o
;
return
Objects
.
equals
(
this
.
id
,
user
.
id
)
&&
Objects
.
equals
(
this
.
username
,
user
.
username
)
&&
Objects
.
equals
(
this
.
firstName
,
user
.
firstName
)
&&
Objects
.
equals
(
this
.
lastName
,
user
.
lastName
)
&&
Objects
.
equals
(
this
.
email
,
user
.
email
)
&&
Objects
.
equals
(
this
.
password
,
user
.
password
)
&&
Objects
.
equals
(
this
.
userStatus
,
user
.
userStatus
);
}
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
Objects
.
hash
(
);
return
Objects
.
hash
(
id
,
username
,
firstName
,
lastName
,
email
,
password
,
userStatus
);
}
}
@Override
@Override
...
@@ -34,6 +213,13 @@ public class User {
...
@@ -34,6 +213,13 @@ public class User {
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class User {\n"
);
sb
.
append
(
"class User {\n"
);
sb
.
append
(
" id: "
).
append
(
toIndentedString
(
id
)).
append
(
"\n"
);
sb
.
append
(
" username: "
).
append
(
toIndentedString
(
username
)).
append
(
"\n"
);
sb
.
append
(
" firstName: "
).
append
(
toIndentedString
(
firstName
)).
append
(
"\n"
);
sb
.
append
(
" lastName: "
).
append
(
toIndentedString
(
lastName
)).
append
(
"\n"
);
sb
.
append
(
" email: "
).
append
(
toIndentedString
(
email
)).
append
(
"\n"
);
sb
.
append
(
" password: "
).
append
(
toIndentedString
(
password
)).
append
(
"\n"
);
sb
.
append
(
" userStatus: "
).
append
(
toIndentedString
(
userStatus
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
return
sb
.
toString
();
}
}
...
@@ -49,4 +235,3 @@ public class User {
...
@@ -49,4 +235,3 @@ public class User {
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
}
}
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