Allow plugins to check if user is signed in

Change-Id: Ieb724bef5c30fcfdc676dda4d9562b4901257ddd
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-01-20 23:16:26 +01:00
parent 0df53ffac7
commit a30c8355fb
5 changed files with 15 additions and 0 deletions

View File

@@ -54,6 +54,10 @@ public final class Plugin extends JavaScriptObject {
public final native void refreshMenuBar()
/*-{ return this.refreshMenuBar() }-*/;
/** Check if user is signed in. */
public final native boolean isSignedIn()
/*-{ return this.isSignedIn() }-*/;
/** Show message in Gerrit's ErrorDialog. */
public final native void showError(String message)
/*-{ return this.showError(message) }-*/;