|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.ow2.jonas.webapp.jonasadmin.JonasBaseAction org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction org.ow2.jonas.webapp.jonasadmin.joramplatform.EditJoramBaseAction
public abstract class EditJoramBaseAction
Field Summary |
---|
Fields inherited from class org.ow2.jonas.webapp.jonasadmin.JonasBaseAction |
---|
DEPTH_DOMAIN, DEPTH_SERVER, GLOBAL_ERROR_FORWARD, m_Errors, m_Resources, m_Session, m_WhereAreYou |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
EditJoramBaseAction()
|
Method Summary | |
---|---|
static String |
currentServerId(ObjectName destinationOn)
Determine the server Id of a destination. |
protected ArrayList |
getBaseItemList(List inputList,
ObjectName destOn,
String serverName)
Treat a list (Vector) of Joram user names |
protected ArrayList |
getBaseItemList(List inputList,
String serverName)
Treat a list (Vector) of Joram user items (example: User[anonymous]:#0.0.1035) |
ItemDestination |
getDestinationItem(String joramAdminDestination,
String serverName)
Create a ItemDestination object from a String structured as follows: type=queue/topic, name=destName, id=#x.y.z |
ObjectName |
getDestinationOn(String name,
String serverId,
String serverName)
|
protected ObjectName |
getDmq(String dmqId,
String serverName)
|
protected ObjectName |
getDmqOn(String dmqId,
String jonasServerName)
|
ObjectName |
getDmqOn(String name,
String serverId,
String serverName)
|
protected String |
getPathToExportRepository()
|
protected String |
getPathToReloadJoramAdmin()
Get the path to the joramAdmin.xml file |
protected String |
getServerId(String location)
Return server Id |
protected void |
getStatistics(ObjectName destOn,
MonitoringDestForm oMonitForm,
DestinationForm oForm,
String serverName)
|
protected ItemUser |
getUserItem(String joramAdminUser,
String serverName)
Create a ItemUser object from a String structured as follows: User[anonymous]:#0.0.1035 |
protected String |
getUserName(String userId,
String jonasServerName)
Return the name of the User corresponding to a given agent id |
protected ObjectName |
getUserOn(String userName,
Short serverId,
String serverName)
* Return the ObjectName of the User MBean corresponding to a given user |
protected boolean |
hasDeps(String pDestName,
String jonasServerName)
|
protected void |
initRefs(String domainName,
String jonasServerName)
|
protected void |
populate(DestinationForm p_Form)
|
protected void |
populateDestination(ObjectName destOn,
DestinationForm oForm,
String serverName)
|
void |
printDestination(ItemDestination dest,
String serverName)
|
protected org.apache.struts.action.ActionForward |
treatError(Throwable pThrowable,
org.apache.struts.action.ActionMapping pMapping,
HttpServletRequest pRequest)
Treat specific case where Joram RAR was unloaded |
protected void |
updateReadablesWriteables(DestinationForm pForm,
String jonasServerName)
|
Methods inherited from class org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction |
---|
deploy, deployDataSource, deployMailFactory, deployModule, getCurrentJonasDeployment, getDomainDeploymentMethodName, getDomainUploadDeployMethodName, getForwardEdit, getListDeployableFiles, getListDeployedFiles, isConfigurable, isDeployment, isDomain, isModule, refreshJoramTree, refreshMBeansTree, refreshServiceTree, refreshTree, refreshWebServiceTree, removeFile, removeModule, runGC, setCurrentJonasDeployment, undeploy, undeployDataSource, undeployMailFactory, undeployModule |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditJoramBaseAction()
Method Detail |
---|
protected org.apache.struts.action.ActionForward treatError(Throwable pThrowable, org.apache.struts.action.ActionMapping pMapping, HttpServletRequest pRequest)
t
- Exception to treatpMapping
- provided by executeActionpRequest
- provided by executeAction
protected String getPathToExportRepository()
protected String getPathToReloadJoramAdmin()
public ObjectName getDmqOn(String name, String serverId, String serverName) throws MalformedObjectNameException
MalformedObjectNameException
public ObjectName getDestinationOn(String name, String serverId, String serverName) throws MalformedObjectNameException
name
- the destination's admin name or name (agent id based)serverName
- jonas server name being managed
MalformedObjectNameException
protected ObjectName getDmqOn(String dmqId, String jonasServerName) throws MalformedObjectNameException
dmqId
- id=#x.y.z
MalformedObjectNameException
public ItemDestination getDestinationItem(String joramAdminDestination, String serverName) throws MalformedObjectNameException
joramAdminDestination
- String containing destination descriptionserverName
- the name of the JOnAS server to which the current JORAM server is connected
MalformedObjectNameException
- could not construct destination ObjectNameprotected ItemUser getUserItem(String joramAdminUser, String serverName) throws MalformedObjectNameException
joramAdminUser
- String containing user descriptionserverName
- the name of the JOnAS server to which the current JORAM server is connected
MalformedObjectNameException
protected ObjectName getUserOn(String userName, Short serverId, String serverName) throws MalformedObjectNameException
userName
- the user's nameserverId
- the JORAM server's IdserverName
- the name of the JOnAS server to which the current JORAM server is connected
MalformedObjectNameException
protected String getUserName(String userId, String jonasServerName)
userId
- Agent id for a user (#x.y.z.)jonasServerName
- the name of the JOnAS server to which the current JORAM server is connected
public void printDestination(ItemDestination dest, String serverName)
protected void initRefs(String domainName, String jonasServerName)
protected boolean hasDeps(String pDestName, String jonasServerName)
protected String getServerId(String location)
location
- String having this form : server#id
public static String currentServerId(ObjectName destinationOn)
destinationOn
- the ObjectName destination's MBean. The 'loaction' key has the following structure : server#y. The server id to be returned is "y"
protected void populateDestination(ObjectName destOn, DestinationForm oForm, String serverName) throws MalformedObjectNameException
MalformedObjectNameException
protected ArrayList getBaseItemList(List inputList, ObjectName destOn, String serverName) throws MalformedObjectNameException
inputList
- list of Joram user namesdestOn
- the ObjectName corresponding to the destination's MBean
MalformedObjectNameException
protected ObjectName getDmq(String dmqId, String serverName)
protected ArrayList getBaseItemList(List inputList, String serverName) throws MalformedObjectNameException
inputList
- list of Joram user items
MalformedObjectNameException
protected void getStatistics(ObjectName destOn, MonitoringDestForm oMonitForm, DestinationForm oForm, String serverName)
protected void populate(DestinationForm p_Form) throws Exception
Exception
protected void updateReadablesWriteables(DestinationForm pForm, String jonasServerName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |