Skip to content

Commit

Permalink
direct actions should have return value of WOActionResults
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv authored and Pascal Robert committed Apr 30, 2012
1 parent dfce79a commit 33416ce
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected boolean canPerformActionWithPasswordKey(String passwordKey) {
* @return {@link er.testrunner.ERXWOTestInterface ERXWOTestInterface}
* with the results after performing the given test.
*/
public WOComponent testAction() {
public WOActionResults testAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXJUnitPassword")) {
ERXWOTestInterface result = pageWithName(ERXWOTestInterface.class);
session().setObjectForKey(Boolean.TRUE, "ERXWOTestInterface.enabled");
Expand Down Expand Up @@ -206,7 +206,7 @@ public WOActionResults eventsSetupAction() {
* Note: this action must be invoked against a specific instance (the instance number must be in the request URL).
* @return a page showing what action was taken (with regard to EOAdaptorDebugging), if any.
*/
public WOComponent eoAdaptorDebuggingAction() {
public WOActionResults eoAdaptorDebuggingAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXEOAdaptorDebuggingPassword")) {
ERXStringHolder result = pageWithName(ERXStringHolder.class);
result.setEscapeHTML(false);
Expand Down Expand Up @@ -262,7 +262,7 @@ public WOComponent eoAdaptorDebuggingAction() {
* <br/>
* @return {@link ERXLog4JConfiguration} for modifying current logging settings.
*/
public WOComponent log4jAction() {
public WOActionResults log4jAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXLog4JPassword")) {
session().setObjectForKey(Boolean.TRUE, "ERXLog4JConfiguration.enabled");
return pageWithName(ERXLog4JConfiguration.class);
Expand All @@ -282,7 +282,7 @@ public WOComponent log4jAction() {
* <br/>
* @return {@link ERXLog4JConfiguration} for modifying current logging settings.
*/
public WOComponent remoteShellAction() {
public WOActionResults remoteShellAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXRemoteShellPassword")) {
session().setObjectForKey(Boolean.TRUE, "ERXRemoteShell.enabled");
return pageWithName(ERXRemoteShell.class);
Expand All @@ -302,7 +302,7 @@ public WOComponent remoteShellAction() {
* <br/>
* @return {@link ERXLog4JConfiguration} for modifying current logging settings.
*/
public WOComponent databaseConsoleAction() {
public WOActionResults databaseConsoleAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXDatabaseConsolePassword")) {
session().setObjectForKey(Boolean.TRUE, "ERXDatabaseConsole.enabled");
return pageWithName(ERXDatabaseConsole.class);
Expand All @@ -322,7 +322,7 @@ public WOComponent databaseConsoleAction() {
* <br/>
* @return short info about free and used memory before and after GC.
*/
public WOComponent forceGCAction() {
public WOActionResults forceGCAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXGCPassword")) {
ERXStringHolder result = pageWithName(ERXStringHolder.class);
Runtime runtime = Runtime.getRuntime();
Expand Down Expand Up @@ -361,7 +361,7 @@ public WOComponent forceGCAction() {
*
* @return list of lock traces
*/
public WOComponent showOpenEditingContextLockTracesAction() {
public WOActionResults showOpenEditingContextLockTracesAction() {
if (canPerformActionWithPasswordKey("er.extensions.ERXOpenEditingContextLockTracesPassword")) {
ERXStringHolder result = pageWithName(ERXStringHolder.class);
result.setEscapeHTML(false);
Expand Down

0 comments on commit 33416ce

Please sign in to comment.