avoid calling ckan logout if the portlet is accessed from outside
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@142212 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0f9425b55f
commit
ca58bc998e
|
@ -97,10 +97,6 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
|
|||
instanceCkanFrame(ckan.buildURI());
|
||||
GCubeCkanDataCatalogPanel.this.rootPanel.remove(loading);
|
||||
|
||||
if(ckan.isOutsideFromPortal())
|
||||
hideHeaderSection();
|
||||
|
||||
|
||||
// now perform the other requests
|
||||
GCubeCkanDataCatalog.service.outsidePortal(new AsyncCallback<Boolean>() {
|
||||
|
||||
|
@ -227,18 +223,6 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
|
|||
listenForPostMessage();
|
||||
}
|
||||
|
||||
private native void hideHeaderSection() /*-{
|
||||
|
||||
var e = $wnd.document.getElementByTagName('<header>');
|
||||
console.log('header : '+e);
|
||||
if(e){
|
||||
console.log('header found');
|
||||
e.style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
}-*/;
|
||||
|
||||
|
||||
public static String getLatestSelectedProductIdentifier(){
|
||||
return latestSelectedProductIdentifier;
|
||||
}
|
||||
|
|
|
@ -317,6 +317,10 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem
|
|||
*/
|
||||
@Override
|
||||
public String logoutFromCkanURL() {
|
||||
|
||||
// check if the portlet is accessed from outside the portal
|
||||
if(outsidePortal())
|
||||
return null;
|
||||
|
||||
HttpSession httpSession = this.getThreadLocalRequest().getSession();
|
||||
String username = SessionUtil.getCurrentUser(getThreadLocalRequest()).getUsername();
|
||||
|
|
Loading…
Reference in New Issue