public class WebtopNamingSiteUtils extends Object
WebtopNaming
service.
In particular translating concepts that are based on users Sessions into
those which WebtopNaming operates in.Constructor and Description |
---|
WebtopNamingSiteUtils(Debug debug,
WebtopNamingQuery query)
Guice initialised default constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getSiteNodes(Session session)
Determines if the Session is associated with a Server that is part of a
Site.
|
Set<URL> |
getSiteNodeURLs(Session session)
Determines the Site (if any) that the Session is based in, and then calculates
the Servers that make up that Site.
|
@Inject public WebtopNamingSiteUtils(@Named(value="amSession") Debug debug, WebtopNamingQuery query)
debug
- Required for debugging.query
- Required for performing WebtopNaming operations.public Set<String> getSiteNodes(Session session)
session
- A non null Session which must be associated with a Server ID.IllegalStateException
- If WebtopNaming was unable to find the IDs
for Servers in the Site. Unlikely as at this point it has indicated that
the Server in question is part of a Site.public Set<URL> getSiteNodeURLs(Session session)
session
- Non null Session to use for query.IllegalStateException
- Thrown if WebtopNaming returned an invalid URL.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.