public class Domain extends Object implements Serializable
| Constructor and Description |
|---|
Domain(String name,
String description,
List<DomainSpecification> specifications) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDescription()
Returns the description of this domain.
|
String |
getName()
Returns the name of the domain.
|
List<DomainSpecification> |
getSpecifications()
Returns the
DomainSpecifications for this Domain. |
String |
getUrl()
Return the store relative URL of this domain.
|
static Domain |
global()
Returns the special "global" domain.
|
int |
hashCode() |
boolean |
isGlobal()
Tests if this is the
global() domain. |
Domain |
resolve()
Resolve the correct domain instance.
|
boolean |
test(DomainRequirement... requirements)
|
boolean |
test(List<DomainRequirement> requirements)
|
@DataBoundConstructor public Domain(String name, String description, List<DomainSpecification> specifications)
@NonNull public static Domain global()
public Domain resolve()
global().@CheckForNull public String getDescription()
@NonNull public List<DomainSpecification> getSpecifications()
DomainSpecifications for this Domain.DomainSpecifications for this Domain.@CheckForNull public String getName()
public String getUrl()
public boolean isGlobal()
global() domain.true if and only if this is the global() domain.public boolean test(DomainRequirement... requirements)
requirements - the DomainRequirements to test.true if and only if the supplied DomainRequirements are a match for this Domain.public boolean test(@NonNull
List<DomainRequirement> requirements)
requirements - the DomainRequirements to test.true if and only if the supplied DomainRequirements are a match for this Domain.Copyright © 2016–2017. All rights reserved.