Package org.exoplatform.portal.mop

Examples of org.exoplatform.portal.mop.Visibility


            node.setLabel(null);
        } else if (node.getLabel() == null || node.getLabel().trim().length() == 0) {
            node.setLabel(node.getName());
        }

        Visibility visibility;
        if (getUICheckBoxInput(VISIBLE).isChecked()) {
            UICheckBoxInput showPubDate = getUICheckBoxInput(SHOW_PUBLICATION_DATE);
            visibility = showPubDate.isChecked() ? Visibility.TEMPORAL : Visibility.DISPLAYED;
        } else {
            visibility = Visibility.HIDDEN;
View Full Code Here


        }
        return false;
    }

    public boolean accept(int depth, String id, String name, NodeState state) {
        Visibility visibility = state.getVisibility();

        // Correct null -> displayed
        if (visibility == null) {
            visibility = Visibility.DISPLAYED;
        }
View Full Code Here

            Described described = navigation.adapt(Described.class);
            label = described.getName();
        }

        //
        Visibility visibility = Visibility.DISPLAYED;
        Date startPublicationDate = null;
        Date endPublicationDate = null;
        if (navigation.isAdapted(Visible.class)) {
            Visible visible = navigation.adapt(Visible.class);
            visibility = visible.getVisibility();
View Full Code Here

            node.setLabel(null);
        } else if (node.getLabel() == null || node.getLabel().trim().length() == 0) {
            node.setLabel(node.getName());
        }

        Visibility visibility;
        if (getUICheckBoxInput(VISIBLE).isChecked()) {
            UICheckBoxInput showPubDate = getUICheckBoxInput(SHOW_PUBLICATION_DATE);
            visibility = showPubDate.isChecked() ? Visibility.TEMPORAL : Visibility.DISPLAYED;
        } else {
            visibility = Visibility.HIDDEN;
View Full Code Here

            uiSettingSet.removeChildById(VISIBLE);
            uiSettingSet.removeChildById(SHOW_PUBLICATION_DATE);
            uiSettingSet.removeChildById(START_PUBLICATION_DATE);
            uiSettingSet.removeChildById(END_PUBLICATION_DATE);
        } else {
            Visibility visibility = pageNode.getVisibility();
            boolean isVisible = visibility == null
                    || EnumSet.of(Visibility.DISPLAYED, Visibility.TEMPORAL).contains(visibility);
            getUICheckBoxInput(VISIBLE).setChecked(isVisible);
            getUICheckBoxInput(SHOW_PUBLICATION_DATE).setChecked(Visibility.TEMPORAL.equals(visibility));
            setShowCheckPublicationDate(isVisible);
View Full Code Here

    public void invokeSetBindingBean(Object bean) throws Exception {
        super.invokeSetBindingBean(bean);
        TreeNode node = (TreeNode) bean;

        if (node.getVisibility() != Visibility.SYSTEM) {
            Visibility visibility;
            if (getUICheckBoxInput(VISIBLE).isChecked()) {
                UICheckBoxInput showPubDate = getUICheckBoxInput(SHOW_PUBLICATION_DATE);
                visibility = showPubDate.isChecked() ? Visibility.TEMPORAL : Visibility.DISPLAYED;
            } else {
                visibility = Visibility.HIDDEN;
View Full Code Here

    */
   private static PageNode filterNodeNavigation(PageNode startNode, String userName, boolean acceptNonDisplayedNode, boolean acceptNodeWithoutPage,
      UserPortalConfigService userService, UserACL userACL) throws Exception
   {
   
      Visibility nodeVisibility = startNode.getVisibility();
      String pageReference = startNode.getPageReference();

      boolean doNothingCase_1 = nodeVisibility == Visibility.SYSTEM && (!userACL.getSuperUser().equals(userName) || !acceptNonDisplayedNode);
      boolean doNothingCase_2 = nodeVisibility != Visibility.SYSTEM && !startNode.isDisplay() && !acceptNonDisplayedNode;
      boolean doNothingCase_3 = (pageReference != null) && (userService.getPage(pageReference, userName) == null) && !acceptNodeWithoutPage;
View Full Code Here

            node.setLabel(null);
        } else if (node.getLabel() == null || node.getLabel().trim().length() == 0) {
            node.setLabel(node.getName());
        }

        Visibility visibility;
        if (getUICheckBoxInput(VISIBLE).isChecked()) {
            UICheckBoxInput showPubDate = getUICheckBoxInput(SHOW_PUBLICATION_DATE);
            visibility = showPubDate.isChecked() ? Visibility.TEMPORAL : Visibility.DISPLAYED;
        } else {
            visibility = Visibility.HIDDEN;
View Full Code Here

      return false;
   }

   public boolean accept(int depth, String id, String name, NodeState state)
   {
      Visibility visibility = state.getVisibility();

      // Correct null -> displayed
      if (visibility == null)
      {
         visibility = Visibility.DISPLAYED;
View Full Code Here

         Described described = navigation.adapt(Described.class);
         label = described.getName();
      }

      //
      Visibility visibility = Visibility.DISPLAYED;
      Date startPublicationDate = null;
      Date endPublicationDate = null;
      if (navigation.isAdapted(Visible.class))
      {
         Visible visible = navigation.adapt(Visible.class);
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.mop.Visibility

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.