org.rhq.core.domain.resource.composite
Class ResourcePermission

java.lang.Object
  extended by org.rhq.core.domain.resource.composite.ResourcePermission
All Implemented Interfaces:
Serializable

public class ResourcePermission
extends Object
implements Serializable

A set of permissions that apply to a particular Resource or ResourceGroup (i.e. Permissions where Permission.getTarget() is Permission.Target#RESOURCE

See Also:
Serialized Form

Constructor Summary
ResourcePermission()
          All permissions
ResourcePermission(boolean measure, boolean inventory, boolean control, boolean alert, boolean event, boolean configureRead, boolean configureWrite, boolean content, boolean createChildResources, boolean deleteResource, boolean drift)
           
ResourcePermission(Set<Permission> permissions)
           
 
Method Summary
 Set<Permission> getPermissions()
           
 boolean isAlert()
           
 boolean isConfigureRead()
           
 boolean isConfigureWrite()
           
 boolean isContent()
           
 boolean isControl()
           
 boolean isCreateChildResources()
           
 boolean isDeleteResource()
           
 boolean isDrift()
           
 boolean isEvent()
           
 boolean isInventory()
           
 boolean isMeasure()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcePermission

public ResourcePermission()
All permissions


ResourcePermission

public ResourcePermission(boolean measure,
                          boolean inventory,
                          boolean control,
                          boolean alert,
                          boolean event,
                          boolean configureRead,
                          boolean configureWrite,
                          boolean content,
                          boolean createChildResources,
                          boolean deleteResource,
                          boolean drift)

ResourcePermission

public ResourcePermission(Set<Permission> permissions)
Method Detail

isMeasure

public boolean isMeasure()

isInventory

public boolean isInventory()

isControl

public boolean isControl()

isAlert

public boolean isAlert()

isDrift

public boolean isDrift()

isEvent

public boolean isEvent()

isConfigureRead

public boolean isConfigureRead()

isConfigureWrite

public boolean isConfigureWrite()

isContent

public boolean isContent()

isCreateChildResources

public boolean isCreateChildResources()

isDeleteResource

public boolean isDeleteResource()

getPermissions

public Set<Permission> getPermissions()

toString

public String toString()
Overrides:
toString in class Object


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