|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides methods to set and get properties for various objects including users and groups, servers, database objects, and load balancing elements and containers.
For a list and description of properties (fields), see the following:
AgiAdmElement
AgiAdmElement
AgiAdmDatabase
AgiAdmLBElement
AgiAdmLBContainer
AgiAdmLBClusterEnv
AgiAdmServer
Method Summary | |
Hashtable |
getProperties()
Get element's properties. |
Object |
getProperty(String name)
Obtain the value of the property with the specified name. |
void |
setProperties(Hashtable props)
Set the element's properties. |
void |
setProperty(String name,
Object value)
Set the value of the property with the specified name |
Method Detail |
public Object getProperty(String name) throws AgoUnrecoverableSystemException, AgoSecurityException
name
- the name of the property whose value is to be retrievedFor a description of values returnable by this method, see the list of properties above.
// Get the value of the description property of a particular SilverUser. AgiAdmUser user = (AgiAdmUser)server.getElement( "user1", AgiAdmUser.SILVERUSER, null); String description = (String)user.getProperty(AgiAdmElement.PROP_DESCRIPTION);
public void setProperty(String name, Object value) throws AgoUnrecoverableSystemException, AgoSecurityException
name
- the name of the property whose value is to be setvalue
- the value of the propertyIn order for the change to take effect, the saveChanges method must be called on the element.
For a description of values to use with this method, see the list of properties above.
// Set the description for a SilverUser. AgiAdmUser user = (AgiAdmUser)server.getElement( "user1", AgiAdmUser.SILVERUSER, null); user.setProperty(AgiAdmElement.PROP_DESCRIPTION, "Test user"); user.saveChanges();
public void setProperties(Hashtable props) throws AgoUnrecoverableSystemException, AgoSecurityException
props
- a map of property names to the values that are to be setIn order for the change to take effect, the saveChanges method must be called on the element.
For a description of values to use with this method, see the list of properties above.
// Set password, description, and a full name for a SilverUser. AgiAdmUser user = (AgiAdmUser)server.getElement( "user1", AgiAdmUser.SILVERUSER, null); Hashtable props = new Hashtable(); props.put(AgiAdmElement.PROP_PASSWORD, "newpassword"); props.put(AgiAdmElement.PROP_DESCRIPTION, "Test user"); props.put(AgiAdmElement.PROP_FULL_NAME, "John Brown"); user.setProperties(props); user.saveChanges();
public Hashtable getProperties() throws AgoUnrecoverableSystemException, AgoSecurityException
For a description of values returnable by this method, see the list of properties above.
// Get all the properties of a particular SilverUser. AgiAdmUser user = (AgiAdmUser)server.getElement( "user1", AgiAdmUser.SILVERUSER, null); Hashtable props = user.getProperties();
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |