-
1. Re: How to create a workspace programatically in modeshape 2.x ?
akrambenaissi Mar 24, 2012 10:01 AM (in response to akrambenaissi)Replying to my self.
I was using the modeshape package for JBoss AS and it seems that the admin user defined does not have admin role.
To change it, simply edit the file $JBOSS_AS_HOME/<profile>/conf/props/modeshape-roles.properties and append the admin role to the admin user.
-
2. Re: How to create a workspace programatically in modeshape 2.x ?
rhauch Mar 26, 2012 9:16 AM (in response to akrambenaissi)Thanks for catching that! Manually changing the file certainly works, but I've logged MODE-1442 to fix the file in our kits.
-
3. Re: How to create a workspace programatically in modeshape 2.x ?
akrambenaissi Mar 26, 2012 3:33 PM (in response to rhauch)Hi,
another related question: The documentation deals with setting permission on repository or on a workspace, using the following Modeshape custom syntax:
myrole=readonly.modeshape_repo.myworkspace
from what I experiencied here is the working syntax, assuming the role is user1:
user1=connect,connect.store.workspace1,read.store.workspace1,readonly.store.workspace1,readwrite.store.workspace1
Where store is the repositorySourceName (probably the store name). Putting the repository name, in my case, I use the defaut repository named "repository" does not seem to work.
Is it the expected behavior or maybe I get something wrong ?
-
4. Re: How to create a workspace programatically in modeshape 2.x ?
rhauch Mar 26, 2012 3:36 PM (in response to akrambenaissi)Yes, the format should use the name of the repository source, not the repository name (see this code). Sorry for the confusion.