org.rhq.enterprise.server.perspective.activator.context
Class AbstractResourceOrGroupActivationContext

java.lang.Object
  extended by org.rhq.enterprise.server.perspective.activator.context.GlobalActivationContext
      extended by org.rhq.enterprise.server.perspective.activator.context.AbstractResourceOrGroupActivationContext
All Implemented Interfaces:
ActivationContext
Direct Known Subclasses:
GroupActivationContext, ResourceActivationContext

public abstract class AbstractResourceOrGroupActivationContext
extends GlobalActivationContext

Author:
Ian Springer

Constructor Summary
protected AbstractResourceOrGroupActivationContext(org.rhq.core.domain.auth.Subject subject)
           
 
Method Summary
abstract  EnumSet<org.rhq.core.domain.resource.ResourceTypeFacet> getFacets()
           
protected abstract  EnumSet<org.rhq.core.domain.authz.Permission> getResourcePermissions()
           
abstract  Set<org.rhq.core.domain.resource.Resource> getResources()
           
abstract  org.rhq.core.domain.resource.ResourceType getResourceType()
           
 ActivationContextScope getScope()
           
 boolean hasResourcePermission(org.rhq.core.domain.authz.Permission permission)
           
 
Methods inherited from class org.rhq.enterprise.server.perspective.activator.context.GlobalActivationContext
getGlobalPermissions, getLicenseFeatures, getSubject, hasGlobalPermission, isSuperuser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceOrGroupActivationContext

protected AbstractResourceOrGroupActivationContext(org.rhq.core.domain.auth.Subject subject)
Method Detail

getScope

public ActivationContextScope getScope()
Specified by:
getScope in interface ActivationContext
Overrides:
getScope in class GlobalActivationContext

getResourceType

public abstract org.rhq.core.domain.resource.ResourceType getResourceType()

getFacets

public abstract EnumSet<org.rhq.core.domain.resource.ResourceTypeFacet> getFacets()

getResources

public abstract Set<org.rhq.core.domain.resource.Resource> getResources()

getResourcePermissions

protected abstract EnumSet<org.rhq.core.domain.authz.Permission> getResourcePermissions()

hasResourcePermission

public boolean hasResourcePermission(org.rhq.core.domain.authz.Permission permission)


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