As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String path = getCompanyHome().getPath() + "/cm:" + ISO9075.encode("someName"); Reference ref = null; try { ref = new Reference(WORKSPACE_STORE, null, path); Node[] nodeArray = getRepositoryService().get(new Predicate(new Reference[] { ref }, WORKSPACE_STORE, null)); ref = nodeArray[0].getReference(); System.out.println(ref.getUuid()); // Here you can get UUID } catch (Exception e) { System.out.println("Ref with path not found."); }
space = new Reference(WORKSPACE_STORE, "your-uuid", null);
Could you please tell me the whole procedure like how you did it. ? Please I am a noob just started this .