|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The client side view of a server-side resource.
The whole servers state are exported through resources, which allows
the administration application to discover and query it using a
homogeneous interface.
All methods will throw a RemoteAccessException
in case of
network failure.
ResourceBroker
Method Summary | |
void |
delete()
Delete that resource, and detach it from its container. |
java.lang.String[] |
enumerateResourceIdentifiers()
|
Attribute[] |
getAttributes()
Get the target resource list of attributes. |
java.lang.String[] |
getClassHierarchy()
Get the target resource class hierarchy. |
RemoteResource[] |
getFrames()
Get the frames attached to that resource. |
java.lang.Object |
getValue(java.lang.String attr)
|
java.lang.Object[] |
getValues(java.lang.String[] attrs)
|
boolean |
isContainer()
|
boolean |
isDirectoryResource()
|
boolean |
isFrame()
|
boolean |
isFramed()
Is this resource a framed resource ? |
boolean |
isIndexersCatalog()
|
RemoteResource |
loadResource(java.lang.String identifier)
|
RemoteResource |
registerFrame(java.lang.String identifier,
java.lang.String classname)
Attach a new frame to that resource. |
RemoteResource |
registerResource(java.lang.String id,
java.lang.String classname)
Register a new resource within this container. |
void |
reindex()
Reindex the resource's children if this resource is a DirectoryResource. |
void |
setValue(java.lang.String attr,
java.lang.Object value)
|
void |
setValues(java.lang.String[] attrs,
java.lang.Object[] values)
Set a set of attribute values in one shot. |
void |
unregisterFrame(RemoteResource frame)
Unregister a given frame from that resource. |
void |
updateURL(java.net.URL parentURL)
Is this resource a filtered resource ? |
Method Detail |
public java.lang.String[] getClassHierarchy() throws RemoteAccessException
public void delete() throws RemoteAccessException
public void reindex() throws RemoteAccessException
public Attribute[] getAttributes() throws RemoteAccessException
Even though this returns all the attribute resources, only the ones that are advertized as being editable can be set through this interface.
public java.lang.Object getValue(java.lang.String attr) throws RemoteAccessException
name
- The attribute whose value is to be fetched, encoded as
its name.public java.lang.Object[] getValues(java.lang.String[] attrs) throws RemoteAccessException
attrs
- The (ordered) set of attributes whose value is to be
fetched.public void setValue(java.lang.String attr, java.lang.Object value) throws RemoteAccessException
attr
- The attribute to set, encoded as it's name.value
- The new value for that attribute.public void setValues(java.lang.String[] attrs, java.lang.Object[] values) throws RemoteAccessException
attrs
- The (ordered) list of attribute to set, encoded as their
names.values
- The (ordered) list of values, for each of the above
attributes.public boolean isContainer() throws RemoteAccessException
public boolean isDirectoryResource() throws RemoteAccessException
public boolean isIndexersCatalog() throws RemoteAccessException
public java.lang.String[] enumerateResourceIdentifiers() throws RemoteAccessException
public RemoteResource loadResource(java.lang.String identifier) throws RemoteAccessException
public RemoteResource registerResource(java.lang.String id, java.lang.String classname) throws RemoteAccessException
id
- The identifier of the resource to be created.classname
- The name of the class of the resource to be added.public boolean isFramed() throws RemoteAccessException
public boolean isFrame()
public RemoteResource[] getFrames() throws RemoteAccessException
public void unregisterFrame(RemoteResource frame) throws RemoteAccessException
filter
- The frame to unregister.public RemoteResource registerFrame(java.lang.String identifier, java.lang.String classname) throws RemoteAccessException
identifier
- The name for this frame (if any).clsname
- The name of the frame's class.public void updateURL(java.net.URL parentURL)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |