Skip to content

Commit

Permalink
NOJIRA - Add a Convienence method in ToolUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Jul 30, 2015
1 parent 657cd60 commit 3b4b191
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,17 @@ public static boolean isPortletPlacement(Placement placement)
return (portletContext != null);
}

/**
* Get the base URL for tools with no "border" - (i.e. within an iframe)
*/

public static String getToolBorderlessBaseUrl()
{
return ServerConfigurationService.getToolUrl();
}

/**
* Get the base URL for tools not including the ToolId (only works in tools)
*
* @return Returns true for JSR_168 portlets
*/

public static String getToolBaseUrl()
Expand Down

0 comments on commit 3b4b191

Please sign in to comment.