public class XmlRpcSystemHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
format(Server server)
Basically creates a Minimalist representation of a
server object..
|
static XmlRpcSystemHelper |
getInstance() |
Server |
lookupServer(User user,
java.lang.Number sid)
Helper method to lookup a server from an sid, and throws a FaultException
if the server cannot be found.
|
java.util.List<Server> |
lookupServers(User user,
java.util.List<? extends java.lang.Number> serverIds)
Helper method to lookup a bunch of servers from a list of server ids,
and throws a FaultException
if the server cannot be found.
|
public static XmlRpcSystemHelper getInstance()
public Server lookupServer(User user, java.lang.Number sid) throws NoSuchSystemException
user - The user looking up the serversid - The id of the server we're looking forNoSuchSystemException - A NoSuchSystemException is thrown if the server
corresponding to sid cannot be found.public java.util.List<Server> lookupServers(User user, java.util.List<? extends java.lang.Number> serverIds) throws NoSuchSystemException
user - The user looking up the serverserverIds - The ids of the servers we're looking forNoSuchSystemException - A NoSuchSystemException is thrown if the server
corresponding to sid cannot be found.public java.util.Map<java.lang.String,java.lang.Object> format(Server server)
server - server to format