diff options
author | seshukm <seshu.kumar.m@huawei.com> | 2018-07-25 18:24:54 +0800 |
---|---|---|
committer | seshukm <seshu.kumar.m@huawei.com> | 2018-07-25 18:24:54 +0800 |
commit | a5653b265d45f70c49a472b9298829cb06afe75e (patch) | |
tree | 15a4f1e3b4f94a7c971ccfafbd840ec1d90a865a | |
parent | 572d9b8259e2d66abdfb28be503fc62e7732c5b5 (diff) |
basic code Issues of keystone model
Issue-ID: SO-729
Change-Id: I176585bd54714fdd891f9e67474fa3b23183fd9b
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
7 files changed, 521 insertions, 521 deletions
diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Role.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Role.java index 325184c..317ea35 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Role.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Role.java @@ -23,61 +23,61 @@ import org.codehaus.jackson.map.annotate.JsonRootName; @JsonRootName("role") public class Role implements Serializable { - private String id; - - private String name; - - private String description; - - private String enabled; + private String id; + + private String name; + + private String description; + + private String enabled; - /** - * @return the id - */ - public String getId() { - return id; - } + /** + * @return the id + */ + public String getId() { + return id; + } - /** - * @return the name - */ - public String getName() { - return name; - } + /** + * @return the name + */ + public String getName() { + return name; + } - /** - * @param name the name to set - */ - public void setName(String name) { - this.name = name; - } + /** + * @param name the name to set + */ + public void setName(String name) { + this.name = name; + } - /** - * @return the description - */ - public String getDescription() { - return description; - } + /** + * @return the description + */ + public String getDescription() { + return description; + } - /** - * @param description the description to set - */ - public void setDescription(String description) { - this.description = description; - } + /** + * @param description the description to set + */ + public void setDescription(String description) { + this.description = description; + } - /** - * @return the enabled - */ - public String getEnabled() { - return enabled; - } + /** + * @return the enabled + */ + public String getEnabled() { + return enabled; + } - /** - * @param enabled the enabled to set - */ - public void setEnabled(String enabled) { - this.enabled = enabled; - } + /** + * @param enabled the enabled to set + */ + public void setEnabled(String enabled) { + this.enabled = enabled; + } } diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Roles.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Roles.java index 9d33f57..bee8b66 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Roles.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Roles.java @@ -24,27 +24,27 @@ import org.codehaus.jackson.annotate.JsonProperty; public class Roles implements Iterable<Role>, Serializable { - @JsonProperty("roles") - private List<Role> list; + @JsonProperty("roles") + private List<Role> list; - /** - * @return the list - */ - public List<Role> getList() { - return list; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "Roles [list=" + list + "]"; - } + /** + * @return the list + */ + public List<Role> getList() { + return list; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "Roles [list=" + list + "]"; + } - @Override - public Iterator<Role> iterator() { - return list.iterator(); - } - + @Override + public Iterator<Role> iterator() { + return list.iterator(); + } + } diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Service.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Service.java index 31d37d1..ff01737 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Service.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Service.java @@ -21,44 +21,44 @@ import org.codehaus.jackson.map.annotate.JsonRootName; @JsonRootName("service") public class Service { - private String id; - - private String type; - - private String name; - - private String description; + private String id; + + private String type; + + private String name; + + private String description; - public String getId() { - return id; - } + public String getId() { + return id; + } - public void setId(String id) { - this.id = id; - } + public void setId(String id) { + this.id = id; + } - public String getType() { - return type; - } + public String getType() { + return type; + } - public void setType(String type) { - this.type = type; - } + public void setType(String type) { + this.type = type; + } - public String getName() { - return name; - } + public String getName() { + return name; + } - public void setName(String name) { - this.name = name; - } + public void setName(String name) { + this.name = name; + } - public String getDescription() { - return description; - } + public String getDescription() { + return description; + } - public void setDescription(String description) { - this.description = description; - } - + public void setDescription(String description) { + this.description = description; + } + } diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Services.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Services.java index 7b97e74..466817e 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Services.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Services.java @@ -26,27 +26,27 @@ import com.woorea.openstack.keystone.model.Service; public class Services implements Iterable<Service>, Serializable { - @JsonProperty("services") - private List<Service> list; - - /** - * @return the list - */ - public List<Service> getList() { - return list; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "Services [list=" + list + "]"; - } - - @Override - public Iterator<Service> iterator() { - return list.iterator(); - } - + @JsonProperty("services") + private List<Service> list; + + /** + * @return the list + */ + public List<Service> getList() { + return list; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "Services [list=" + list + "]"; + } + + @Override + public Iterator<Service> iterator() { + return list.iterator(); + } + } diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Token.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Token.java index 2b2a710..2078804 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Token.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Token.java @@ -27,360 +27,360 @@ import org.codehaus.jackson.map.annotate.JsonRootName; @JsonRootName("token") @JsonIgnoreProperties(ignoreUnknown=true) public class Token implements Serializable { - - private String id; - - @JsonProperty("expires_at") - private Calendar expiresAt; - - @JsonProperty("issued_at") - private Calendar issuedAt; - - private List<String> methods; - - @JsonIgnoreProperties(ignoreUnknown=true) - public static final class Domain { - - private String id; - - private String name; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - } - - private Domain domain; - - @JsonIgnoreProperties(ignoreUnknown=true) - public static final class Project { - - private Domain domain; - - private String id; - - private String name; - - public Domain getDomain() { - return domain; - } - - public void setDomain(Domain domain) { - this.domain = domain; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - } - - private Project project; - - @JsonIgnoreProperties(ignoreUnknown=true) - public static final class User { - - @JsonIgnoreProperties(ignoreUnknown=true) - private static final class Domain { - - private String id; - - private String name; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - } - - private String id; - - private String name; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - } - - private User user; - - @JsonIgnoreProperties(ignoreUnknown=true) - public static final class Role { - - private String id; - - private String name; - - } - - private List<Role> roles; - - public static final class Service { - - public static final class Endpoint { - - private String id; - - private String url; - - private String region; - - private Boolean enabled; - - @JsonProperty("legacy_endpoint_id") - private String legacyEndpointId; - - @JsonProperty("interface") - private String iface; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public Boolean getEnabled() { - return enabled; - } - - public void setEnabled(Boolean enabled) { - this.enabled = enabled; - } + + private String id; + + @JsonProperty("expires_at") + private Calendar expiresAt; + + @JsonProperty("issued_at") + private Calendar issuedAt; + + private List<String> methods; + + @JsonIgnoreProperties(ignoreUnknown=true) + public static final class Domain { + + private String id; + + private String name; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + } + + private Domain domain; + + @JsonIgnoreProperties(ignoreUnknown=true) + public static final class Project { + + private Domain domain; + + private String id; + + private String name; + + public Domain getDomain() { + return domain; + } + + public void setDomain(Domain domain) { + this.domain = domain; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + } + + private Project project; + + @JsonIgnoreProperties(ignoreUnknown=true) + public static final class User { + + @JsonIgnoreProperties(ignoreUnknown=true) + private static final class Domain { + + private String id; + + private String name; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + } + + private String id; + + private String name; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + } + + private User user; + + @JsonIgnoreProperties(ignoreUnknown=true) + public static final class Role { + + private String id; + + private String name; + + } + + private List<Role> roles; + + public static final class Service { + + public static final class Endpoint { + + private String id; + + private String url; + + private String region; + + private Boolean enabled; + + @JsonProperty("legacy_endpoint_id") + private String legacyEndpointId; + + @JsonProperty("interface") + private String iface; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } - public String getLegacyEndpointId() { - return legacyEndpointId; - } + public String getLegacyEndpointId() { + return legacyEndpointId; + } - public void setLegacyEndpointId(String legacyEndpointId) { - this.legacyEndpointId = legacyEndpointId; - } + public void setLegacyEndpointId(String legacyEndpointId) { + this.legacyEndpointId = legacyEndpointId; + } - public String getInterface() { - return iface; - } + public String getInterface() { + return iface; + } - public void setInterface(String iface) { - this.iface = iface; - } - - } - - private String id; - - private String type; - - private List<Endpoint> endpoints; + public void setInterface(String iface) { + this.iface = iface; + } + + } + + private String id; + + private String type; + + private List<Endpoint> endpoints; - public String getId() { - return id; - } + public String getId() { + return id; + } - public void setId(String id) { - this.id = id; - } + public void setId(String id) { + this.id = id; + } - public String getType() { - return type; - } + public String getType() { + return type; + } - public void setType(String type) { - this.type = type; - } + public void setType(String type) { + this.type = type; + } - public List<Endpoint> getEndpoints() { - return endpoints; - } + public List<Endpoint> getEndpoints() { + return endpoints; + } - public void setEndpoints(List<Endpoint> endpoints) { - this.endpoints = endpoints; - } - - } - - private List<Service> catalog; + public void setEndpoints(List<Endpoint> endpoints) { + this.endpoints = endpoints; + } + + } + + private List<Service> catalog; - public String getId() { - return id; - } + public String getId() { + return id; + } - public void setId(String id) { - this.id = id; - } + public void setId(String id) { + this.id = id; + } - public Calendar getExpiresAt() { - return expiresAt; - } + public Calendar getExpiresAt() { + return expiresAt; + } - public void setExpiresAt(Calendar expiresAt) { - this.expiresAt = expiresAt; - } + public void setExpiresAt(Calendar expiresAt) { + this.expiresAt = expiresAt; + } - public Calendar getIssuedAt() { - return issuedAt; - } + public Calendar getIssuedAt() { + return issuedAt; + } - public void setIssuedAt(Calendar issuedAt) { - this.issuedAt = issuedAt; - } + public void setIssuedAt(Calendar issuedAt) { + this.issuedAt = issuedAt; + } - public List<String> getMethods() { - return methods; - } + public List<String> getMethods() { + return methods; + } - public void setMethods(List<String> methods) { - this.methods = methods; - } + public void setMethods(List<String> methods) { + this.methods = methods; + } - public Domain getDomain() { - return domain; - } + public Domain getDomain() { + return domain; + } - public void setDomain(Domain domain) { - this.domain = domain; - } + public void setDomain(Domain domain) { + this.domain = domain; + } - public Project getProject() { - return project; - } + public Project getProject() { + return project; + } - public void setProject(Project project) { - this.project = project; - } + public void setProject(Project project) { + this.project = project; + } - public User getUser() { - return user; - } + public User getUser() { + return user; + } - public void setUser(User user) { - this.user = user; - } + public void setUser(User user) { + this.user = user; + } - public List<Role> getRoles() { - return roles; - } + public List<Role> getRoles() { + return roles; + } - public void setRoles(List<Role> roles) { - this.roles = roles; - } + public void setRoles(List<Role> roles) { + this.roles = roles; + } - public List<Service> getCatalog() { - return catalog; - } + public List<Service> getCatalog() { + return catalog; + } - public void setCatalog(List<Service> catalog) { - this.catalog = catalog; - } + public void setCatalog(List<Service> catalog) { + this.catalog = catalog; + } - - @Override - public String toString() { - return "Token [id=" + id + ", expiresAt=" + expiresAt + ", issuedAt=" - + issuedAt + ", methods=" + methods + ", domain=" + domain - + ", project=" + project + ", user=" + user + ", roles=" - + roles + ", catalog=" + catalog + "]"; - } + + @Override + public String toString() { + return "Token [id=" + id + ", expiresAt=" + expiresAt + ", issuedAt=" + + issuedAt + ", methods=" + methods + ", domain=" + domain + + ", project=" + project + ", user=" + user + ", roles=" + + roles + ", catalog=" + catalog + "]"; + } } diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/User.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/User.java index 7ee8528..9675ce5 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/User.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/User.java @@ -22,86 +22,86 @@ import org.codehaus.jackson.map.annotate.JsonRootName; @JsonRootName("user") public class User { - private String id; - - @JsonProperty("domain_id") - private String domainId; - - @JsonProperty("default_project_id") - private String defaultProjectId; - - private String name; - - private String password; - - private String email; - - private String description; - - private Boolean enabled; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getDomainId() { - return domainId; - } - - public void setDomainId(String domainId) { - this.domainId = domainId; - } - - public String getDefaultProjectId() { - return defaultProjectId; - } - - public void setDefaultProjectId(String defaultProjectId) { - this.defaultProjectId = defaultProjectId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Boolean getEnabled() { - return enabled; - } - - public void setEnabled(Boolean enabled) { - this.enabled = enabled; - } - + private String id; + + @JsonProperty("domain_id") + private String domainId; + + @JsonProperty("default_project_id") + private String defaultProjectId; + + private String name; + + private String password; + + private String email; + + private String description; + + private Boolean enabled; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public String getDefaultProjectId() { + return defaultProjectId; + } + + public void setDefaultProjectId(String defaultProjectId) { + this.defaultProjectId = defaultProjectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + } diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Users.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Users.java index 0dd6165..208af1a 100644 --- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Users.java +++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Users.java @@ -26,27 +26,27 @@ import com.woorea.openstack.keystone.model.User; public class Users implements Iterable<User>, Serializable { - @JsonProperty("users") - private List<User> list; - - /** - * @return the list - */ - public List<User> getList() { - return list; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "Users [list=" + list + "]"; - } - - @Override - public Iterator<User> iterator() { - return list.iterator(); - } - + @JsonProperty("users") + private List<User> list; + + /** + * @return the list + */ + public List<User> getList() { + return list; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "Users [list=" + list + "]"; + } + + @Override + public Iterator<User> iterator() { + return list.iterator(); + } + } |