|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | 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()
|
AttributeDescription[] |
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(boolean rec)
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
RemoteAccessException - If somenetwork failure occured.
public void delete()
throws RemoteAccessException
RemoteAccessException - If somenetwork failure occured.
public void reindex(boolean rec)
throws RemoteAccessException
rec - recursivly?
RemoteAccessException - If it's not a DirectoryResource
public AttributeDescription[] 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.
RemoteAccessException - If somenetwork failure occured.
public java.lang.Object getValue(java.lang.String attr)
throws RemoteAccessException
RemoteAccessException - If somenetwork failure occured.
public java.lang.Object[] getValues(java.lang.String[] attrs)
throws RemoteAccessException
attrs - The (ordered) set of attributes whose value is to be
fetched.
RemoteAccessException - If somenetwork failure occured.
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.
RemoteAccessException - If somenetwork failure occured.
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.
RemoteAccessException - If somenetwork failure occured.
public boolean isContainer()
throws RemoteAccessException
RemoteAccessException - If somenetwork failure occured.
public boolean isDirectoryResource()
throws RemoteAccessException
RemoteAccessException
public boolean isIndexersCatalog()
throws RemoteAccessException
RemoteAccessException
public java.lang.String[] enumerateResourceIdentifiers()
throws RemoteAccessException
RemoteAccessException - If somenetwork failure occured.
public RemoteResource loadResource(java.lang.String identifier)
throws RemoteAccessException
RemoteAccessException - If somenetwork failure occured.
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.
RemoteAccessException - if a remote access error occurs.
public boolean isFramed()
throws RemoteAccessException
RemoteAccessException - if a remote access error occurs.public boolean isFrame()
public RemoteResource[] getFrames()
throws RemoteAccessException
RemoteAccessException - if a remote access error occurs.
public void unregisterFrame(RemoteResource frame)
throws RemoteAccessException
RemoteAccessException - if a remote access error occurs.
public RemoteResource registerFrame(java.lang.String identifier,
java.lang.String classname)
throws RemoteAccessException
identifier - The name for this frame (if any).
RemoteAccessException - if a remote access error occurs.public void updateURL(java.net.URL parentURL)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||