SilverStream
Application Server 3.5

com.sssw.rts.adminapi
Interface AgiAdmChanges

All Known Subinterfaces:
AgiAdmCluster, AgiAdmClusterServer, AgiAdmContainer, AgiAdmDatabase, AgiAdmDesignElement, AgiAdmDirectory, AgiAdmEjbJar, AgiAdmElement, AgiAdmGroup, AgiAdmLBClusterEnv, AgiAdmLBContainer, AgiAdmServer, AgiAdmUser, AgiAdmUserReference, AgiDatabase, AgiServer

public interface AgiAdmChanges

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

saveChanges

public void saveChanges()
                 throws AgoUnrecoverableSystemException,
                        AgoSecurityException
Save the changes cached (accumulated) for the object.
Usage:
When changes are made to the set of object's properties, permissions, and/or components, the changes are held and registered in the order they were made. This method commits them all to the server.

Note that it is up to the implementation in each particular case to define the kinds of changes that are cached.

Example:
		// 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();
 
See Also:
AgiAdmChanges.cancelChanges()

cancelChanges

public void cancelChanges()
                   throws AgoUnrecoverableSystemException,
                          AgoSecurityException
Cancel (discard) the changes cached (accumulated) for the object.
Example:
		// 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();
 
See Also:
AgiAdmChanges.saveChanges()

SilverStream
Application Server 3.5