Blue Mind
Release 1.0

net.bluemind.core.sanity
Interface ISanityChecker


public interface ISanityChecker

ISanityChecker provide a mechanism to check add entity integrity rules from plug-in


Method Summary
 void preCreateCheck(AccessToken at, Entity e)
          Add some integrity rules before create Entity
 void preDeleteCheck(AccessToken at, Entity e)
          Add some integrity rules before delete Entity
 void preUpdateCheck(AccessToken at, Entity prev, Entity e)
          Add some integrity rules before update Entity
 

Method Detail

preCreateCheck

void preCreateCheck(AccessToken at,
                    Entity e)
                    throws ServerFault
Add some integrity rules before create Entity

Parameters:
at - AccessToken
e - Entity to create
Throws:
ServerFault

preUpdateCheck

void preUpdateCheck(AccessToken at,
                    Entity prev,
                    Entity e)
                    throws ServerFault
Add some integrity rules before update Entity

Parameters:
at - AccessToken
prev - previous Entity
e - updated Entity
Throws:
ServerFault

preDeleteCheck

void preDeleteCheck(AccessToken at,
                    Entity e)
                    throws ServerFault
Add some integrity rules before delete Entity

Parameters:
at - AccessToken
e - {link Entity} to delete
Throws:
ServerFault

Blue Mind
Release 1.0