Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.Inode




      java.util.Iterator elementsIter = elements.iterator();
      while (elementsIter.hasNext()) {
        Inode asset = (Inode) elementsIter.next();
        if (asset instanceof WebAsset) {
          if(!((WebAsset)asset).isLive() && (permissionAPI.doesUserHavePermission(((WebAsset)asset), PERMISSION_PUBLISH, user, respectFrontendRoles) || !checkPublishPermissions)) {
            relatedAssets.add(asset);
          }
        }else if(!returnOnlyWebAssets){
View Full Code Here


            Logger.info(MaintenanceUtil.class, "Unable to instaniate object");
            Logger.debug(MaintenanceUtil.class,"Unable to instaniate object", e);
            continue;
          }
          if(o instanceof Inode){
            Inode i = (Inode)o;
            String type = i.getType();
            String tableName = ((com.dotcms.repackage.net.sf.hibernate.persister.AbstractEntityPersister)map.get(x)).getTableName();
            MaintenanceUtil.cleanInodeTableData(tableName, type);
            //FixAssetsProcessStatus.addAError();
          }
        }
      }
      it = map.entrySet().iterator();
      while (it.hasNext()) {
        Map.Entry pairs = (Map.Entry) it.next();
        Class x = (Class) pairs.getKey();
        if (!x.equals(Inode.class)){
          Object o;
          try {
            o = x.newInstance();
          } catch (Exception e) {
            Logger.info(MaintenanceUtil.class,"Unable to instaniate object");
            Logger.debug(MaintenanceUtil.class,"Unable to instaniate object", e);
            continue;
          }
          if(o instanceof Inode){
            Inode i = (Inode)o;
            String type = i.getType();
            String tableName = ((com.dotcms.repackage.net.sf.hibernate.persister.AbstractEntityPersister)map.get(x)).getTableName();
            MaintenanceUtil.removeOphanedInodes(tableName, type);
           
          }
        }
View Full Code Here

  /* (non-Javadoc)
   * @see com.dotmarketing.business.PermissionAPI#getRoles(long, int, java.lang.String, int, int)
   */
  public List<Role> getRoles(String inode, int permissionType, String filter, int start, int limit) {

    Inode inodeObj = null;
    List<Role> roleList = null;
    List<Permission> permissionList = null;

    try {

View Full Code Here

  /* (non-Javadoc)
   * @see com.dotmarketing.business.PermissionAPI#getRoleCount(long, int, java.lang.String)
   */
  public int getRoleCount(String inode, int permissionType, String filter) {

    Inode inodeObj = null;
    List<Role> roleList = null;
    List<Permission> permissionList = null;
    int count = 0;

    try {
View Full Code Here

  }


  public int getRoleCount(String inode, int permissionType,
      String filter, boolean hideSystemRoles) {
    Inode inodeObj = null;
    List<Role> roleList = null;
    List<Permission> permissionList = null;
    int count = 0;

    try {
View Full Code Here

  /* (non-Javadoc)
   * @see com.dotmarketing.business.PermissionAPI#getUsers(long, int, java.lang.String, int, int)
   */
  public List<User> getUsers(String inode, int permissionType, String filter, int start, int limit) {

    Inode inodeObj = null;
    List<User> userList = null;

    try {

      Logger.debug( PermissionAPI.class, String.format("::getUsers -> before loading inode object(%s)", inode) );
View Full Code Here

  /* (non-Javadoc)
   * @see com.dotmarketing.business.PermissionAPI#getUserCount(long, int, java.lang.String)
   */
  public int getUserCount(String inode, int permissionType, String filter) {

    Inode inodeObj = null;
    int count = 0;

    try {

      Logger.debug( PermissionAPI.class, String.format("::getUserCount -> before loading inode object(%s)", inode) );
View Full Code Here

      List<Permission> assetPermissions = getPermissions(permissionable, true);
      Map<String, Inode> inodeCache = new HashMap<String, Inode>();
        for(Permission p : assetPermissions) {
          if(!p.getInode().equals(permissionable.getPermissionId())) {
            String assetInode = p.getInode();
          Inode inode = inodeCache.get(p.getInode());
          if(inode == null) {
            inode = InodeFactory.getInode(assetInode, Inode.class);
            inodeCache.put(inode.getInode(), inode);
          }
          if(inode instanceof Folder) {
            parentPermissionable = (Folder)inode;
          } else if (inode instanceof Structure) {
            parentPermissionable = (Structure)inode;
View Full Code Here

    return getSelectCategories(null, 0, current, user, respectFrontendRoles);
  }

  public static String getSelectCategoriesByParent(Inode parent, User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException {
    Inode current = new Inode();
    Category parentCat = (Category) parent;
    StringBuffer strHTML = new StringBuffer();
    strHTML.append("<option value=\"" + parent.getInode() + "\" class='topCat'>");
    strHTML.append(parentCat.getCategoryName() + "</option>\n");
    strHTML.append(getSelectCategories(parent, 1, current, user, respectFrontendRoles));
View Full Code Here

    // live.
    while (parentsIterator.hasNext()) {
      Object obj = parentsIterator.next();
     
      if(obj instanceof Inode){
        Inode parentInode = (Inode) obj;
        parentInode.addChild(workingLink);

        //to keep relation types from parent only if it exists
        Tree tree = com.dotmarketing.factories.TreeFactory.getTree(
            parentInode, currentLink);
        if ((tree.getRelationType() != null)
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.Inode

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.