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.
A much more convenient method of addressing nodes is by using an email alias (Email Alias aspect or emailserver:alias). On a space or file, use the Run Action functionality to add the Email Alias aspect. Edit the space or file's properties and give the node an email alias. To set the email alias on the Space, do "View Details" on the space, in the Properties section, if Email Alias is empty, click the edit on to top right - in line with Properties to provide the alias. For example, the administrator may add a Space called Inbox to handle inbound emailed content.
private void createContent(HttpServletRequest request, HttpServletResponse response, String folder) throws IOException { String[] folders = {"Academic Progress","Accommodation","Admissions","Assessment","Careers and PDP","Finance","Formal Procedures","General Correspondence","Health, Wellbeing and Disability","Placements","Registration","Studentship"}; // Start the session AuthenticationUtils.startSession(Attributes.USERNAME, Attributes.PASSWORD); try { // Make your web service call in here Reference r = SpaceUtil.createSpace(folder); for(int i=0; i<folders.length;i++){ SpaceUtil.createSpace(r,folders[i]); } } catch (Throwable e) { log.error("createContent erorr: " + e.toString()); e.printStackTrace(); } finally { // End the session AuthenticationUtils.endSession(); } }