I want to add a space in admins home with java in alfresco so i'm trying to use this code:
serviceRegistry.getFileFolderService().create(adminhomeRef,"Some space name",ContentModel.TYPE_FOLDER);
The problem is that i don't khow how to get the reference of admin's home so how do i do it or is there any service who provides this.
I have checked the
PersonServiceImpl
class of Alfresco API, and I saw these lines that can be useful for you:Can you test if this is what you need?