public class SiteContext extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
_siteIds |
private SiteManager |
_siteManager |
private SiteContextType |
_type |
| Constructor and Description |
|---|
SiteContext(SiteContextType type,
List<String> sites,
SiteManager siteManager)
Creates a SiteContext
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Optional<List<Site>> |
getSites()
Gets the sites.
|
SiteContextType |
getType()
Gets the type
|
int |
hashCode() |
private SiteContextType _type
private SiteManager _siteManager
public SiteContext(SiteContextType type, List<String> sites, SiteManager siteManager)
type - the typesites - the sites. Must be non-null if type is SiteContextType.AMONG, must be null otherwise.siteManager - The site managerpublic SiteContextType getType()
public Optional<List<Site>> getSites()
getType() returns SiteContextType.AMONG, must be empty otherwise.