Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.openl.rules.repository.jcr;
  
 
 import javax.jcr.Node;
 import java.util.List;
 
 public class JcrProductionProject extends JcrProductionEntity implements RProject {
     public static final String NODE_FILES = "files";
     private RFolder rootFolder;

    
Creates new project instance.

Parameters:
parentNode parent node
nodeName name of node
Returns:
newly created project
Throws:
javax.jcr.RepositoryException if fails
 
     protected static JcrProductionProject createProject(Node parentNodeString nodeNamethrows RepositoryException {
         Node n = NodeUtil.createNode(parentNodenodeName.false);
 
         parentNode.save();
         n.save();
 
         Node nodeFiles = NodeUtil.createNode(n.false);
         n.save();
         nodeFiles.save();
 
         return new JcrProductionProject(n);
     }
 
     public JcrProductionProject(Node nodethrows RepositoryException {
         super(node);
 
         Node files = node.getNode();
 
          = new JcrProductionFolder(files);
     }

    
Commits changes in background versioned storage.

 
     public void commit(CommonUser userthrows RRepositoryException {
         throw new UnsupportedOperationException();
     }

    
Marks the project for deletion. Project is too important to be deleted so easily.

 
     public void delete(CommonUser userthrows RRepositoryException {
         throw new UnsupportedOperationException();
     }

    
Erases the project from the repository completely. Before erasing the project must be marked for deletion. I.e. JcrProductionEntity.delete() should be invoked. Otherwise this method will throw exception.

 
     public void erase(CommonUser userthrows RRepositoryException {
         throw new UnsupportedOperationException();
     }
 
         throw new UnsupportedOperationException();
     }
 
     public RProject getProjectVersion(CommonVersion versionthrows RRepositoryException {
         throw new UnsupportedOperationException();
     }

    
Returns root folder of the project.

Returns:
root folder
 
     public RFolder getRootFolder() {
         return ;
     }

    
Returns whether the project is marked for deletion. If a project is marked for deletion, it should not be used.

Returns:
true if project is marked for deletion; false otherwise
    public boolean isMarked4Deletion() throws RRepositoryException {
        return false;
    }
    public void riseVersion(int majorint minorthrows RRepositoryException {
        throw new UnsupportedOperationException();
    }
    public void setDependencies(Collection<? extends ProjectDependencydependenciesthrows RRepositoryException {
        throw new UnsupportedOperationException();
    }

    
Unmarks the project from deletion.

    public void undelete(CommonUser userthrows RRepositoryException {
        throw new UnsupportedOperationException();
    }
    
    
    public RFile createFile(String namethrows RRepositoryException {
        throw new UnsupportedOperationException();
    }
    public RFolder createFolder(String namethrows RRepositoryException {
        throw new UnsupportedOperationException();
    }
    public List<RFilegetFiles() throws RRepositoryException {
        return .getFiles();
    }
    public List<RFoldergetFolders() throws RRepositoryException {
        return .getFolders();
    }
New to GrepCode? Check out our FAQ X