|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AgiAdmChanges interface. Implemented by objects that allow changes to their properties, permissions, components, etc., depending on the implementation.
Method Summary | |
void |
cancelChanges()
Cancel (discard) the changes cached (accumulated) for the object. |
void |
saveChanges()
Save the changes cached (accumulated) for the object. |
Method Detail |
public void saveChanges() throws AgoUnrecoverableSystemException, AgoSecurityException
Note that it is up to the implementation in each particular case to define the kinds of changes that are cached.
// make some changes to a server server.setProperty(AgiAdmServer.PROP_ERRORLOGGING, new Boolean(true)); Hashtable perms = new Hashtable(); perms.put(AgoPermission.PROTECT, "user() in ('admin1','admin2)"); server.setPermissions(perms); server.addCertificate("d:\certs", "cert1.cer"); // now, save the changes server.saveChanges();
AgiAdmChanges.cancelChanges()
public void cancelChanges() throws AgoUnrecoverableSystemException, AgoSecurityException
// make some changes to a server server.setProperty(AgiAdmServer.PROP_ERRORLOGGING, new Boolean(true)); Hashtable perms = new Hashtable(); perms.put(AgoPermission.PROTECT, "user() in ('admin1','admin2)"); server.setPermissions(perms); server.addCertificate("d:\certs", "cert1.cer"); // oops, we changed our mind, discard the changes server.cancelChanges();
AgiAdmChanges.saveChanges()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |