org.rhq.enterprise.server.perspective.activator
Class SuperuserActivator

java.lang.Object
  extended by org.rhq.enterprise.server.perspective.activator.AbstractGlobalActivator
      extended by org.rhq.enterprise.server.perspective.activator.SuperuserActivator
All Implemented Interfaces:
Serializable, Activator<GlobalActivationContext>

public class SuperuserActivator
extends AbstractGlobalActivator

An subject-scoped activator that checks if the current user is the RHQ superuser.

Author:
Ian Springer
See Also:
Serialized Form

Constructor Summary
SuperuserActivator()
           
 
Method Summary
 boolean isActive(GlobalActivationContext context)
           
 
Methods inherited from class org.rhq.enterprise.server.perspective.activator.AbstractGlobalActivator
getScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperuserActivator

public SuperuserActivator()
Method Detail

isActive

public boolean isActive(GlobalActivationContext context)
Parameters:
context - The context information required to process the activation conditions.
Returns:
true if all of the activation cnditions for this Activator have been met. Otherwise, false.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.