Examples of findObjectById()


Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

        }
        if (locale == null) {
            throw new NullPointerException("No null locale accepted");
        }
        POMSession session = manager.getSession();
        WorkspaceObject obj = session.findObjectById(id);
        I18NAdapter able = obj.adapt(I18NAdapter.class);
        Described desc = able.getI18NMixin(Described.class, locale, false);
        return desc != null ? desc.getState() : null;
    }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

        }
        if (locale == null) {
            throw new NullPointerException("No null locale accepted");
        }
        POMSession session = manager.getSession();
        WorkspaceObject obj = session.findObjectById(id);
        I18NAdapter able = obj.adapt(I18NAdapter.class);
        Described desc = able.getI18NMixin(Described.class, locale, true);
        cache.removeState(new CacheKey(locale, id));
        desc.setState(description);
    }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

    public Described.State getDescription(String id) {
        if (id == null) {
            throw new NullPointerException("No null id accepted");
        }
        POMSession session = manager.getSession();
        WorkspaceObject obj = session.findObjectById(id);
        I18NAdapter able = obj.adapt(I18NAdapter.class);
        Described desc = able.getMixin(Described.class, false);
        return desc != null ? desc.getState() : null;
    }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

    public void setDescription(String id, Described.State description) {
        if (id == null) {
            throw new NullPointerException("No null id accepted");
        }
        POMSession session = manager.getSession();
        WorkspaceObject obj = session.findObjectById(id);
        I18NAdapter able = obj.adapt(I18NAdapter.class);
        if (description != null) {
            Described desc = able.getMixin(Described.class, true);
            desc.setState(description);
        } else {
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

    public Map<Locale, Described.State> getDescriptions(String id) {
        if (id == null) {
            throw new NullPointerException("No null id accepted");
        }
        POMSession session = manager.getSession();
        WorkspaceObject obj = session.findObjectById(id);
        I18NAdapter able = obj.adapt(I18NAdapter.class);
        Map<Locale, Described> mixins = able.getI18NMixin(Described.class);
        Map<Locale, Described.State> names = null;
        if (mixins != null) {
            names = new HashMap<Locale, Described.State>(mixins.size());
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

    public void setDescriptions(String id, Map<Locale, Described.State> descriptions) {
        if (id == null) {
            throw new NullPointerException("No null id accepted");
        }
        POMSession session = manager.getSession();
        WorkspaceObject obj = session.findObjectById(id);
        I18NAdapter able = obj.adapt(I18NAdapter.class);
        Collection<Locale> locales = able.removeI18NMixin(Described.class);
        for (Locale locale : locales) {
            cache.removeState(new CacheKey(locale, id));
        }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

      if (locale == null)
      {
         throw new NullPointerException("No null locale accepted");
      }
      POMSession session = manager.getSession();
      WorkspaceObject obj = session.findObjectById(id);
      I18NAdapter able = obj.adapt(I18NAdapter.class);
      Described desc = able.getI18NMixin(Described.class, locale, false);
      return desc != null ? desc.getState() : null;
   }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

      if (locale == null)
      {
         throw new NullPointerException("No null locale accepted");
      }
      POMSession session = manager.getSession();
      WorkspaceObject obj = session.findObjectById(id);
      I18NAdapter able = obj.adapt(I18NAdapter.class);
      Described desc = able.getI18NMixin(Described.class, locale, true);
      desc.setState(description);
   }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

      if (id == null)
      {
         throw new NullPointerException("No null id accepted");
      }
      POMSession session = manager.getSession();
      WorkspaceObject obj = session.findObjectById(id);
      I18NAdapter able = obj.adapt(I18NAdapter.class);
      Described desc = able.getMixin(Described.class, false);
      return desc != null ? desc.getState() : null;
   }
View Full Code Here

Examples of org.exoplatform.portal.pom.config.POMSession.findObjectById()

      if (id == null)
      {
         throw new NullPointerException("No null id accepted");
      }
      POMSession session = manager.getSession();
      WorkspaceObject obj = session.findObjectById(id);
      I18NAdapter able = obj.adapt(I18NAdapter.class);
      if (description != null)
      {
         Described desc = able.getMixin(Described.class, true);
         desc.setState(description);
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.