Signed-off-by:Roland Häder <roland@mxchange.org>
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
* @param shareeUserId Sharee's user id
*/
public void setShareeUserId (final Long shareeUserId);
+
+ /**
+ * Checks whether the sharee's user id is set
+ * <p>
+ * @return Whether the sharee's user id is set
+ */
+ public boolean isShareeUserIdSet ();
}
#{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
</ui:define>
- <ui:define name="content">
+ <ui:define name="content" rendered="#{shareController.isShareeUserIdSet()}">
Here goes your content.
</ui:define>
</ui:composition>