From: Roland Haeder Date: Thu, 15 Oct 2015 06:59:37 +0000 (+0200) Subject: added isShareeUserIdSet() and used it to hide output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0c658cdfa32e52180cfcde5b042fc5f486a869d;p=jfinancials-war.git added isShareeUserIdSet() and used it to hide output Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java b/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java index 5d57825f..ce4e4675 100644 --- a/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java @@ -88,6 +88,11 @@ public class SharesWebBean implements SharesWebController { this.shareeUserId = shareeUserId; } + @Override + public boolean isShareeUserIdSet () { + return ((this.getShareeUserId() instanceof Long) && (this.getShareeUserId() > 0)); + } + @Override public boolean isSharingAddressbooks () { // Only to be called for logged-in users diff --git a/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java b/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java index b61838db..868fa810 100644 --- a/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java +++ b/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java @@ -45,4 +45,11 @@ public interface SharesWebController extends Serializable { * @param shareeUserId Sharee's user id */ public void setShareeUserId (final Long shareeUserId); + + /** + * Checks whether the sharee's user id is set + *

+ * @return Whether the sharee's user id is set + */ + public boolean isShareeUserIdSet (); } diff --git a/web/user/user_profile.xhtml b/web/user/user_profile.xhtml index b5eeb999..e7b21a7a 100644 --- a/web/user/user_profile.xhtml +++ b/web/user/user_profile.xhtml @@ -20,7 +20,7 @@ #{msg.CONTENT_TITLE_INDEX_USER_PROFILE} - + Here goes your content.