Examples of find()


Examples of com.dotcms.repackage.net.sf.hibernate.Session.find()

      StringBuffer query = new StringBuffer();
      query.append(
        "FROM PortletPreferences IN CLASS com.liferay.portal.ejb.PortletPreferencesHBM ");

      Iterator itr = session.find(query.toString()).iterator();
      List list = new ArrayList();

      while (itr.hasNext()) {
        PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)itr.next();
        list.add(PortletPreferencesHBMUtil.model(portletPreferencesHBM));
View Full Code Here

Examples of com.dotmarketing.business.IdentifierAPI.find()

      IdentifierAPI idenAPI = APILocator.getIdentifierAPI();
      FolderAPI folderAPI = APILocator.getFolderAPI();
      List<Container> containerList = new ArrayList<Container>();

      for (String pageId : htmlPagesSet) {
        Identifier iden = idenAPI.find(pageId);

        // Host dependency
        Host h = APILocator.getHostAPI().find(iden.getHostId(), user, false);
        hosts.addOrClean( iden.getHostId(), h.getModDate());
        hostsSet.add(iden.getHostId());
View Full Code Here

Examples of com.dotmarketing.portlets.categories.business.CategoryAPI.find()

    }

    if (UtilMethods.isSet(form.getCategory())) {
      Category category;
      for (String categoryId: form.getCategory()) {
        category = categoryAPI.find(categoryId, APILocator.getUserAPI().getSystemUser(), false);
        if(InodeUtils.isSet(category.getInode())) {
          categoryAPI.addChild(userProxy, category, APILocator.getUserAPI().getSystemUser(), false);
        }
      }
    }
View Full Code Here

Examples of com.dotmarketing.portlets.contentlet.business.ContentletAPI.find()

  public List<Contentlet> getComments(String inode, boolean descendingOrder){
    try{
      ContentletAPI conAPI = APILocator.getContentletAPI();
      Contentlet contentlet = new Contentlet();
      try{
        contentlet = conAPI.find(inode, APILocator.getUserAPI().getSystemUser(), true);
      }catch(DotDataException e){
        Logger.debug(this, "Unable to look up contentlet with inode " + inode, e);
      }
      validateComments(contentlet);
      if(!InodeUtils.isSet(contentlet.getInode())){
View Full Code Here

Examples of com.dotmarketing.portlets.contentlet.business.HostAPI.find()

    context.put("user", user);
    context.put("UtilMethods", new UtilMethods());
    context.put("language", "1");
    context.put("password", newPassword);

    Host host = hostAPI.find(hostId, user, true);
    context.put("host", host);

    StringWriter writer = new StringWriter();

    String idInode = APILocator.getIdentifierAPI().find(host, Config
View Full Code Here

Examples of com.dotmarketing.portlets.folders.business.FolderAPI.find()

    File file = (File) req.getAttribute(WebKeys.FILE_EDIT);

       Folder parentFolder = null;

    if(req.getParameter("parent") != null) {
      parentFolder = folderAPI.find(req.getParameter("parent"),user,false);
    } else {
      parentFolder = fileAPI.getFileFolder(file,WebAPILocator.getHostWebAPI().getCurrentHost(req), user, false);
    }

    // setting parent folder path and inode on the form bean
View Full Code Here

Examples of com.dotmarketing.portlets.folders.business.FolderAPIImpl.find()


    String inode = req.getParameter("inode");

    FolderAPI folderAPI = new FolderAPIImpl();
    Folder folder = folderAPI.find(inode, _getUser(req), false);

    java.util.List relatedAssets = new java.util.ArrayList();

        if (InodeUtils.isSet(folder.getInode())) {
      //calls the asset factory edit
View Full Code Here

Examples of com.dotmarketing.portlets.hostvariable.bussiness.HostVariableAPI.find()

    UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
    User user = userWebAPI.getLoggedInUser(req);
    boolean respectFrontendRoles = userWebAPI.isLoggedToFrontend(req);

    HostVariableAPI hostVariableAPI = APILocator.getHostVariableAPI();
    HostVariable hvar = hostVariableAPI.find(hvarId, user, respectFrontendRoles);
    hostVariableAPI.delete(hvar, user, respectFrontendRoles);

  }

  public List<Map<String, Object>> getHostVariables(String hostId) throws Exception {
View Full Code Here

Examples of com.dtrules.session.DTState.find()

     * @return
     */
    IREntity getInstance(IRSession s)throws RulesException{
        if(number.equals("1"))return entity;
        DTState state = s.getState();
        IRObject rarray = state.find(RName.getRName(name+"s"));
       
        IREntity newentity = (IREntity) entity.clone(s);
        if(rarray!=null && rarray.type() ==IRObject.iArray){
           ((RArray)rarray).add(newentity);
        }
View Full Code Here

Examples of com.ecyrd.jspwiki.auth.user.UserDatabase.find()

        {
            throw new IllegalStateException( "User database cannot be null." );
        }
        try
        {
            UserProfile profile = database.find( searchId );
            Principal[] principals = database.getPrincipals( profile.getLoginName() );
            for ( Principal principal : principals )
            {
                // Add the Principal to the Subject
                m_subject.getPrincipals().add( principal );
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.