Blue Mind
Release 1.0

net.bluemind.core.session.database
Class PermanentTokenSystemHook

java.lang.Object
  extended by net.bluemind.core.hooks.DefaultSystemHook
      extended by net.bluemind.core.session.database.PermanentTokenSystemHook
All Implemented Interfaces:
ISystemHook

public class PermanentTokenSystemHook
extends DefaultSystemHook


Field Summary
 
Fields inherited from class net.bluemind.core.hooks.DefaultSystemHook
core
 
Constructor Summary
PermanentTokenSystemHook(ICore core)
           
 
Method Summary
 void onHostDeleted(Host h)
          Get called after an Host is deleted from the persistent storage.
 void onHostTagged(AccessToken at, String tag, Host h)
          Get called when a system role (aka system tag) is assigned to an Host.
 void onUpgrade(AccessToken at, VersionInfo from, VersionInfo to)
          Get called on Blue-Mind software upgrade.
 
Methods inherited from class net.bluemind.core.hooks.DefaultSystemHook
createToken, dropToken, exec, getDomain, getNodeClient, onAclChanged, onAclDenyAll, onAclSetConsumerRights, onAclSetConsumersRights, onAclSetRight, onDomainCreated, onDomainUpdated, onGlobalSettingChanged, onGroupCreated, onGroupDeleted, onGroupMembersChanged, onGroupUpdated, onHostAssigned, onHostCreated, onHostUnassigned, onHostUntagged, onHostUpdated, onMailshareCreated, onMailshareDeleted, onMailshareUpdated, onUserCreated, onUserDeleted, onUserUpdated, validate, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermanentTokenSystemHook

public PermanentTokenSystemHook(ICore core)
Method Detail

onHostTagged

public void onHostTagged(AccessToken at,
                         String tag,
                         Host h)
                  throws AuthFault,
                         ServerFault
Description copied from interface: ISystemHook
Get called when a system role (aka system tag) is assigned to an Host. A system tag is mean to describe a service or a role provided by an host on the Blue-Mind architecture. A system tag is composed of two parts :

Specified by:
onHostTagged in interface ISystemHook
Overrides:
onHostTagged in class DefaultSystemHook
Parameters:
at - User who is charged for the Host tag.
tag - The system tag.
h - Host that hold the role described by tag.
Throws:
AuthFault - If the at don't have permission to execute the action contained in the hook.
ServerFault - If any things go wrongs, this is the default Exception to throw.
See Also:
ISystem.tag(AccessToken, Host, String)

onUpgrade

public void onUpgrade(AccessToken at,
                      VersionInfo from,
                      VersionInfo to)
               throws ServerFault,
                      AuthFault
Description copied from interface: ISystemHook
Get called on Blue-Mind software upgrade.

Specified by:
onUpgrade in interface ISystemHook
Overrides:
onUpgrade in class DefaultSystemHook
Parameters:
at - This is always the AccessToken of admin0@global.virt.
from - VersionInfo containing the version of Blue-Mind before upgrade
to - VersionInfo containing the version of Blue-Mind after upgrade
Throws:
ServerFault - If any things go wrongs, this is the default Exception to throw.
AuthFault - If the at don't have permission to execute the action contained in the hook.

onHostDeleted

public void onHostDeleted(Host h)
                   throws ServerFault
Description copied from interface: ISystemHook
Get called after an Host is deleted from the persistent storage.

Specified by:
onHostDeleted in interface ISystemHook
Overrides:
onHostDeleted in class DefaultSystemHook
Parameters:
h - This is a snapshot of the removed Host before removal.
Throws:
ServerFault - If any things go wrongs, this is the default Exception to throw.
See Also:
ISystem.delete(AccessToken, Host)

Blue Mind
Release 1.0