Package com.logicaldoc.core.util
Class UserUtil
- java.lang.Object
 - 
- com.logicaldoc.core.util.UserUtil
 
 
- 
public class UserUtil extends Object
Various utilities about users.- Since:
 - 6.1
 - Author:
 - Matteo Caruso - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UserUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilegetUserHome(long id)This method retrieves the user folder.static FilegetUserResource(long id, String path)This method retrieves a user resource (file or folder).static FilegetUsersDir()This method retrieves the users root folder. 
 - 
 
- 
- 
Method Detail
- 
getUserHome
public static File getUserHome(long id)
This method retrieves the user folder. If not exists, it creates the folder. The folder is: conf.userdir/id- Parameters:
 id- The user identifier- Returns:
 - the user's data folder
 
 
- 
getUserResource
public static File getUserResource(long id, String path)
This method retrieves a user resource (file or folder). If the resource is a folder and not exists, it creates the folder. The folder will be: conf.userdir/id/path- Parameters:
 id- The user identifierpath- The resource path- Returns:
 - the user's resource
 
 
- 
getUsersDir
public static File getUsersDir()
This method retrieves the users root folder. If not exists, it creates the folder. The folder is: conf.userdir- Returns:
 - the root folder that contains the users data folders
 
 
 - 
 
 -