Examples of Site


Examples of org.cast.cwm.data.Site

      @Override
      protected void onUpdate(AjaxRequestTarget target) {
        ISISession.get().setStudentModel(null); // Reset session's selected student since period changed
        ISISession.get().setCurrentPeriodModel(periodChoice.getModel()); // Save period change in session
        // Save current site information
        Site currentSite = ISISession.get().getCurrentPeriodModel().getObject().getSite();
        IModel<Site> mCurrentSite = new Model<Site>(currentSite);
        ISISession.get().setCurrentSiteModel(mCurrentSite);
        if (showStudents) {
          studentChoice.setChoices(getUserListModel()); // Alert student drop-down of the change
          target.addComponent(studentChoice);
View Full Code Here

Examples of org.dspace.content.Site

     */
    public void convertAll()
            throws SQLException
    {
        report("Starting conversion of all DSpaceItems, this may take a while...");
        this.convert(new Site(), true);
        report("Conversion ended.");
    }
View Full Code Here

Examples of org.gatein.api.site.Site

        ((SiteImpl) site).save(dataStorage, userPortalConfigService);
    }

    @Override
    public boolean removeSite(SiteId siteId) {
        Site site = getSite(siteId);
        if (site == null) {
            return false;
        }
        SiteKey siteKey = Util.from(Parameters.requireNonNull(siteId, "siteId"));
        PortalConfig data = new PortalConfig(siteKey.getTypeName(), siteKey.getName());
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

      super.tearDown();
   }

   public void testNavigation() throws Exception
   {
      Site portal = session.getWorkspace().getSite(ObjectType.PORTAL_SITE, "test");
      assertNotNull(portal);

      //
      Navigation rootNavigation = portal.getRootNavigation();
      assertNotNull(rootNavigation);

      //
      Navigation defaultNav = rootNavigation.getChild("default");
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

      assertNotNull(link);
   }

   public void testPortal() throws Exception
   {
      Site portal = session.getWorkspace().getSite(ObjectType.PORTAL_SITE, "test");
      assertNotNull(portal);

      //
      assertTrue(portal.isAdapted(ProtectedResource.class));
      ProtectedResource pr = portal.adapt(ProtectedResource.class);
      assertEquals(Arrays.asList("test_access_permissions"), pr.getAccessPermissions());
      assertEquals("test_edit_permission", pr.getEditPermission());

      //
      assertEquals("test", portal.getName());
      Attributes attrs = portal.getAttributes();
      assertEquals("en", attrs.getString("locale"));
      assertEquals("test_skin", attrs.getString("skin"));
      assertEquals("test_prop_value", attrs.getString("prop_key"));

      //
      Page layout = portal.getRootNavigation().getTemplatized().getTemplate();
      assertNotNull(layout);
      assertSame(portal.getRootPage().getChild("templates").getChild("default"), layout);
   }
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

      assertSame(portal.getRootPage().getChild("templates").getChild("default"), layout);
   }

   public void testPageWithoutPageId() throws Exception
   {
      Site testPortal = session.getWorkspace().getSite(ObjectType.PORTAL_SITE, "test");
      Page testRootPage = testPortal.getRootPage();
      Page pages = testRootPage.getChild("pages");
      Page testPage = pages.getChild("test2");
      assertNotNull(testPage);
   }
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

      assertNotNull(testPage);
   }

   public void testPage() throws Exception
   {
      Site testPortal = session.getWorkspace().getSite(ObjectType.PORTAL_SITE, "test");
      Page testRootPage = testPortal.getRootPage();
      Page pages = testRootPage.getChild("pages");
      Page testPage = pages.getChild("test1");
      assertNotNull(testPage);

      //
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

            // mappings.setRedirectMap((HashMap)mappingsData.getMappings());
        }
    }

    public PageData load(org.gatein.mop.api.workspace.Page src) {
        Site site = src.getSite();
        String ownerType = getOwnerType(site.getObjectType());
        String ownerId = site.getName();
        String name = src.getName();
        List<ComponentData> children = loadChildren(src.getRootComponent());
        Attributes attrs = src.getAttributes();

        //
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

            if (component instanceof UIContainer) {
                UIContainer srcContainer = (UIContainer) component;
                Attributes attrs = srcContainer.getAttributes();
                String type = attrs.getValue(MappedAttributes.TYPE);
                if ("dashboard".equals(type)) {
                    Site owner = src.getPage().getSite();
                    TransientApplicationState<Portlet> state = new TransientApplicationState<Portlet>(
                            "dashboard/DashboardPortlet", null, getOwnerType(owner.getObjectType()), owner.getName());

                    //
                    boolean showInfoBar = attrs.getValue(MappedAttributes.SHOW_INFO_BAR, false);
                    boolean showMode = attrs.getValue(MappedAttributes.SHOW_MODE, false);
                    boolean showWindowState = attrs.getValue(MappedAttributes.SHOW_WINDOW_STATE, false);
View Full Code Here

Examples of org.gatein.mop.api.workspace.Site

            //
            TransientApplicationState<S> transientState = (TransientApplicationState<S>) instanceState;

            // Attempt to get a site from the instance state
            Site site = null;
            if (transientState.getOwnerType() != null && transientState.getOwnerId() != null) {
                ObjectType<Site> siteType = parseSiteType(transientState.getOwnerType());
                site = session.getWorkspace().getSite(siteType, transientState.getOwnerId());
            }

            // The current site
            Site currentSite = dst.getPage().getSite();

            // If it is the same site than the current page
            // set null
            if (site == dst.getPage().getSite()) {
                site = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.