ALL, client, elementName, infoMethod, MINE, MINE_GROUP, poolElements
Constructor and Description |
---|
TemplatePool(Client client)
Creates a new Template pool with the default filter flag value
set to
Pool.MINE_GROUP (Template belonging to the connected user,
and the ones in his group) |
TemplatePool(Client client,
int filter)
Creates a new Template pool.
|
Modifier and Type | Method and Description |
---|---|
PoolElement |
factory(org.w3c.dom.Node node)
The factory method returns a suitable PoolElement object from
an XML node.
|
Template |
getById(int id)
Returns the Template with the given Id from the pool.
|
OneResponse |
info()
Loads the xml representation of all or part of the
Templates in the pool.
|
static OneResponse |
info(Client client,
int filter)
Retrieves all or part of the Templates in the pool.
|
static OneResponse |
info(Client client,
int filter,
int startId,
int endId)
Retrieves all or part of the Templates in the pool.
|
OneResponse |
info(int filter,
int startId,
int endId)
Retrieves all or part of the Templates in the pool.
|
OneResponse |
infoAll()
Loads the xml representation of all the Templates in the pool.
|
static OneResponse |
infoAll(Client client)
Retrieves all the Templates in the pool.
|
OneResponse |
infoGroup()
Loads the xml representation of all the connected user's Templates and
the ones in his group.
|
static OneResponse |
infoGroup(Client client)
Retrieves all the connected user's Templates and the ones in
his group.
|
OneResponse |
infoMine()
Loads the xml representation of all the connected user's Templates.
|
static OneResponse |
infoMine(Client client)
Retrieves all the connected user's Templates.
|
java.util.Iterator<Template> |
iterator() |
getLength, info, info, infoAll, infoGroup, infoMine, item, processInfo, xmlrpcInfo
public TemplatePool(Client client)
Pool.MINE_GROUP
(Template belonging to the connected user,
and the ones in his group)client
- XML-RPC Client.TemplatePool(Client, int)
public TemplatePool(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag to use by default in the method
info()
. Possible values:
Pool.ALL
: All TemplatesPool.MINE
: Connected user's TemplatesPool.MINE_GROUP
: Connected user's Templates, and the ones in
his grouppublic PoolElement factory(org.w3c.dom.Node node)
Pool
public static OneResponse info(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag to use. Possible values:
Pool.ALL
: All TemplatesPool.MINE
: Connected user's TemplatesPool.MINE_GROUP
: Connected user's Templates, and the ones in
his grouppublic static OneResponse infoAll(Client client)
client
- XML-RPC Client.public static OneResponse infoMine(Client client)
client
- XML-RPC Client.public static OneResponse infoGroup(Client client)
client
- XML-RPC Client.public static OneResponse info(Client client, int filter, int startId, int endId)
client
- XML-RPC Client.filter
- Filter flag to use. Possible values:
Pool.ALL
: All TemplatesPool.MINE
: Connected user's TemplatesPool.MINE_GROUP
: Connected user's Templates, and the ones in
his groupstartId
- Lowest Id to retrieveendId
- Biggest Id to retrievepublic OneResponse info()
info
in class Pool
info(Client, int)
public OneResponse infoAll()
public OneResponse infoMine()
public OneResponse infoGroup()
public OneResponse info(int filter, int startId, int endId)
info
in class Pool
filter
- Filter flag to use. Possible values:
Pool.ALL
: All TemplatesPool.MINE
: Connected user's TemplatesPool.MINE_GROUP
: Connected user's Templates, and the ones in
his groupstartId
- Lowest Id to retrieveendId
- Biggest Id to retrievepublic java.util.Iterator<Template> iterator()
iterator
in interface java.lang.Iterable<Template>
Visit OpenNebula.org
Copyright 2002-2013 ©
OpenNebula Project (OpenNebula.org), C12G Labs.