-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two getMetadataMap interfaces on console and admincenter modules
- Loading branch information
Showing
10 changed files
with
428 additions
and
12 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
...discovery-common/src/main/java/com/nepxion/discovery/common/entity/MetadataParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package com.nepxion.discovery.common.entity; | ||
|
||
/** | ||
* <p>Title: Nepxion Discovery</p> | ||
* <p>Description: Nepxion Discovery</p> | ||
* <p>Copyright: Copyright (c) 2017-2050</p> | ||
* <p>Company: Nepxion</p> | ||
* @author Haojun Ren | ||
* @version 1.0 | ||
*/ | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
|
||
public class MetadataParameter implements Serializable { | ||
private static final long serialVersionUID = -8708814947706738426L; | ||
|
||
public static final String SEPARATE = " | "; | ||
|
||
private List<String> metadataKeys; | ||
private List<String> serviceIds; | ||
private String separate = SEPARATE; | ||
|
||
public List<String> getMetadataKeys() { | ||
return metadataKeys; | ||
} | ||
|
||
public void setMetadataKeys(List<String> metadataKeys) { | ||
this.metadataKeys = metadataKeys; | ||
} | ||
|
||
public List<String> getServiceIds() { | ||
return serviceIds; | ||
} | ||
|
||
public void setServiceIds(List<String> serviceIds) { | ||
this.serviceIds = serviceIds; | ||
} | ||
|
||
public String getSeparate() { | ||
return separate; | ||
} | ||
|
||
public void setSeparate(String separate) { | ||
this.separate = separate; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object object) { | ||
return EqualsBuilder.reflectionEquals(this, object); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.