public JcrEntityAPI(Node node, ArtefactPath path, boolean oldVersion) throws RepositoryException { super(node, path.segment(path.segmentCount() - 1), oldVersion); this.path = path; version = new JcrVersion(node); properties = new HashMap<String, org.openl.rules.common.Property>(); initProperties(); props = new HashMap<String, Object>(); loadProps(); }
private File getProjectLocation(){ String projectName = getArtefactPath().segment(0); return new File(workspace.getLocation(), projectName); }
public JcrEntityAPI(Node node, ArtefactPath path, boolean oldVersion) throws RepositoryException { super(node, path.segment(path.segmentCount() - 1), oldVersion); this.path = path; version = new JcrVersion(node); properties = new HashMap<String, org.openl.rules.common.Property>(); initProperties(); props = new HashMap<String, Object>(); loadProps(); }
public AProjectArtefact getArtefactByPath(ArtefactPath artefactPath) throws ProjectException { String projectName = artefactPath.segment(0); AProject uwp = getProject(projectName); ArtefactPath pathInProject = artefactPath.withoutFirstSegment(); return uwp.getArtefactByPath(pathInProject); }
AProjectFolder folder = selectedProject; for (int i = 0; i < artefactPath.segmentCount() - 1; i++) { String segment = artefactPath.segment(i); if (!folder.hasArtefact(segment)) { folder.addFolder(segment); .addResource(artefactPath.segment(artefactPath.segmentCount() - 1), is); fileName = addedFileResource.getName(); repositoryTreeState
public AProjectArtefact getArtefactByPath(ArtefactPath artefactPath) throws ProjectException { String projectName = artefactPath.segment(0); AProject lp = getProject(projectName); ArtefactPath pathInProject = artefactPath.withoutFirstSegment(); return lp.getArtefactByPath(pathInProject); }
AProjectFolder folder = selectedProject; for (int i = 0; i < artefactPath.segmentCount() - 1; i++) { String segment = artefactPath.segment(i); if (!folder.hasArtefact(segment)) { folder.addFolder(segment); .addResource(artefactPath.segment(artefactPath.segmentCount() - 1), is); fileName = addedFileResource.getName(); repositoryTreeState
public AProjectArtefact getArtefactByPath(ArtefactPath artefactPath) throws ProjectException { String projectName = artefactPath.segment(0); AProject ralProject = getProject(projectName); ArtefactPath pathInProject = artefactPath.withoutFirstSegment(); return ralProject.getArtefactByPath(pathInProject); }