Class SampleRestrictor

java.lang.Object
org.jolokia.server.core.restrictor.AbstractConstantRestrictor
org.jolokia.server.core.restrictor.AllowAllRestrictor
org.jolokia.osgi.restrictor.SampleRestrictor
All Implemented Interfaces:
org.jolokia.server.core.service.api.Restrictor

public class SampleRestrictor extends org.jolokia.server.core.restrictor.AllowAllRestrictor
Sample restrictor, which grants read/write/exec access only on a certain JMX-domain.
Since:
22.03.11
Author:
roland
  • Constructor Details

    • SampleRestrictor

      public SampleRestrictor(String pAllowedDomain)
  • Method Details

    • isAttributeReadAllowed

      public boolean isAttributeReadAllowed(ObjectName pName, String pAttribute)
      Specified by:
      isAttributeReadAllowed in interface org.jolokia.server.core.service.api.Restrictor
      Overrides:
      isAttributeReadAllowed in class org.jolokia.server.core.restrictor.AbstractConstantRestrictor
    • isAttributeWriteAllowed

      public boolean isAttributeWriteAllowed(ObjectName pName, String pAttribute)
      Specified by:
      isAttributeWriteAllowed in interface org.jolokia.server.core.service.api.Restrictor
      Overrides:
      isAttributeWriteAllowed in class org.jolokia.server.core.restrictor.AbstractConstantRestrictor
    • isOperationAllowed

      public boolean isOperationAllowed(ObjectName pName, String pOperation)
      Specified by:
      isOperationAllowed in interface org.jolokia.server.core.service.api.Restrictor
      Overrides:
      isOperationAllowed in class org.jolokia.server.core.restrictor.AbstractConstantRestrictor