cancel
Showing results for 
Search instead for 
Did you mean: 

Configure default checkout space for each user?

pdoggett
Champ in-the-making
Champ in-the-making
Is it possible to configure a space that is a sub-space of the user's 'My Home' that is always suggested as the inital space into which checkouts are directed?

The current situation is that the default checkout space is the 'current' space.  Because we would like to have users checkout documents into their own space, a user is forced to navigate through the space hierarchy one click/space at a time.

The class controlling this behaviour (org/alfresco/web/bean/CheckinCheckoutBean.java) does not appear to have any hooks into the configuration.
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

There is no way to do this at the moment. I suggest you raise it as an enhancement on Jira.

Andy

pdoggett
Champ in-the-making
Champ in-the-making
Here is a script that puts the working copy into a space under the users home:

if (document.isDocument && (1 == document.hasAspect("cm:workingcopy"))) {
// find the backup folder - create if not already exists
var checkoutsFolder = userhome.childByNamePath("My Checkouts");
if (checkoutsFolder == null && userhome.hasPermission("CreateChildren"))
{
   // create the folder for the first time
   checkoutsFolder = userhome.createFolder("My Checkouts");
}
if (checkoutsFolder != null && checkoutsFolder.hasPermission("CreateChildren"))
{
   // move the doc into the checkouts folder
   document.move(checkoutsFolder);
}
}