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 -
Method Summary
Modifier and TypeMethodDescriptiondefault AuthRealmThis is the place where the iteration for theAuthRealmfor administration should be carried out in server.@NotNull StringGets the name of the auth realm to be used for administration.@NotNull DasConfigGets the value of thedasConfigproperty.Gets the value of thejmxConnectorproperty.List<org.jvnet.hk2.config.types.Property>Properties as perPropertyBagdefault JmxConnectorGets the value of thesystemJmxConnectorNameproperty.@Pattern(regexp="(das|das-and-server|server)",message="Pattern: (das|das-and-server|server)") StringgetType()Gets the value of thetypeproperty.voidsetAuthRealmName(String authRealmName) voidsetDasConfig(DasConfig dasConfig) Sets the value of thedasConfigproperty.voidsetSystemJmxConnectorName(String systemJmxConnectorName) Sets the value of thesystemJmxConnectorNameproperty.voidSets the value of thetypeproperty.default booleanReturns 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, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Field Details
-
PATTERN_TYPE
- See Also:
-
-
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 thetypeproperty. 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
Sets the value of thetypeproperty.- Parameters:
type- allowed object isString- Throws:
PropertyVetoException
-
getSystemJmxConnectorName
String getSystemJmxConnectorName()Gets the value of thesystemJmxConnectorNameproperty. The name of the internal jmx connector.- Returns:
- possible object is
String
-
setSystemJmxConnectorName
Sets the value of thesystemJmxConnectorNameproperty.- Parameters:
systemJmxConnectorName- allowed object isString- Throws:
PropertyVetoException
-
getJmxConnector
List<JmxConnector> getJmxConnector()Gets the value of thejmxConnectorproperty. Thejmx-connectorelement defines the configuration of a JSR 160 compliant remote JMX Connector. Objects of the following type(s) are allowed in the listJmxConnector -
getDasConfig
Gets the value of thedasConfigproperty.- Returns:
- possible object is
DasConfig
-
setDasConfig
Sets the value of thedasConfigproperty.- Parameters:
dasConfig- allowed object isDasConfig- Throws:
PropertyVetoException
-
getProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<org.jvnet.hk2.config.types.Property> getProperty()Properties as perPropertyBag- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-
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
-
getSystemJmxConnector
-
getAssociatedAuthRealm
This is the place where the iteration for theAuthRealmfor administration should be carried out in server. A convenience method for the same.- Returns:
AuthRealminstance for which the name is same asgetAuthRealmName(),nullotherwise.
-
usesFileRealm
default boolean usesFileRealm()Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.- Returns:
trueif associated authrealm is non-null and its classname equalscom.sun.enterprise.security.auth.realm.file.FileRealm,falseotherwise
-