Interface AdminService

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag

public interface AdminService extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
Admin Service exists in every instance. It is the configuration for either a normal server, DAS or PE instance.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default AuthRealm
    This is the place where the iteration for the AuthRealm for administration should be carried out in server.
    @NotNull String
    Gets the name of the auth realm to be used for administration.
    @NotNull DasConfig
    Gets the value of the dasConfig property.
    Gets the value of the jmxConnector property.
    List<org.jvnet.hk2.config.types.Property>
    Properties as per PropertyBag
    default JmxConnector
     
    Gets the value of the systemJmxConnectorName property.
    @Pattern(regexp="(das|das-and-server|server)",message="Pattern: (das|das-and-server|server)") String
    Gets the value of the type property.
    void
    setAuthRealmName(String authRealmName)
     
    void
    Sets the value of the dasConfig property.
    void
    setSystemJmxConnectorName(String systemJmxConnectorName)
    Sets the value of the systemJmxConnectorName property.
    void
    Sets the value of the type property.
    default boolean
    Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.

    Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy

    createChild, deepCopy, getParent, getParent

    Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag

    addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
  • Field Details

  • Method Details

    • getType

      @Pattern(regexp="(das|das-and-server|server)", message="Pattern: (das|das-and-server|server)") @Pattern(regexp="(das|das-and-server|server)",message="Pattern: (das|das-and-server|server)") String getType()
      Gets the value of the type property. An instance can either be of type das Domain Administration Server in SE/EE or the PE instance das-and-server same as das server Any non-DAS instance in SE/EE. Not valid for PE.
      Returns:
      possible object is String
    • setType

      void setType(String type) throws PropertyVetoException
      Sets the value of the type property.
      Parameters:
      type - allowed object is String
      Throws:
      PropertyVetoException
    • getSystemJmxConnectorName

      String getSystemJmxConnectorName()
      Gets the value of the systemJmxConnectorName property. The name of the internal jmx connector.
      Returns:
      possible object is String
    • setSystemJmxConnectorName

      void setSystemJmxConnectorName(String systemJmxConnectorName) throws PropertyVetoException
      Sets the value of the systemJmxConnectorName property.
      Parameters:
      systemJmxConnectorName - allowed object is String
      Throws:
      PropertyVetoException
    • getJmxConnector

      List<JmxConnector> getJmxConnector()
      Gets the value of the jmxConnector property. The jmx-connector element defines the configuration of a JSR 160 compliant remote JMX Connector. Objects of the following type(s) are allowed in the list JmxConnector
    • getDasConfig

      @NotNull @NotNull DasConfig getDasConfig()
      Gets the value of the dasConfig property.
      Returns:
      possible object is DasConfig
    • setDasConfig

      void setDasConfig(DasConfig dasConfig) throws PropertyVetoException
      Sets the value of the dasConfig property.
      Parameters:
      dasConfig - allowed object is DasConfig
      Throws:
      PropertyVetoException
    • getProperty

      @ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<org.jvnet.hk2.config.types.Property> getProperty()
      Properties as per PropertyBag
      Specified by:
      getProperty in interface org.jvnet.hk2.config.types.PropertyBag
    • getAuthRealmName

      @NotNull @NotNull String getAuthRealmName()
      Gets the name of the auth realm to be used for administration. This obsoletes/deprecates the similarly named attribute on JmxConnector. Note that this is of essence where admin access is done outside the containers. Container managed security is still applicable and is handled via security annotations and deployment descriptors of the admin applications (aka admin GUI application, MEjb application).
      Returns:
      name of the auth realm to be used for admin access
    • setAuthRealmName

      void setAuthRealmName(String authRealmName)
    • getSystemJmxConnector

      default JmxConnector getSystemJmxConnector()
    • getAssociatedAuthRealm

      default AuthRealm getAssociatedAuthRealm()
      This is the place where the iteration for the AuthRealm for administration should be carried out in server. A convenience method for the same.
      Returns:
      AuthRealm instance for which the name is same as getAuthRealmName(), null otherwise.
    • usesFileRealm

      default boolean usesFileRealm()
      Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.
      Returns:
      true if associated authrealm is non-null and its classname equals com.sun.enterprise.security.auth.realm.file.FileRealm, false otherwise