public class UserDirectoryHelper extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
static String |
ORGUNITS_METADATA
The orgUnit parent metadata
|
static String |
ROLE
The avalon role.
|
static String |
USER_DIRECTORY_ROOT_NODE
The root node name of the plugin
|
Constructor and Description |
---|
UserDirectoryHelper() |
Modifier and Type | Method and Description |
---|---|
List<Content> |
getOrgUnits(Content user)
Get the list of orgunits content
|
Content |
getUserContent(UserIdentity user,
String lang)
Get user content from user identity
|
AmetysObjectCollection |
getUserDirectoryRootContent()
Gets the root of user directory contents
|
AmetysObjectCollection |
getUserDirectoryRootContent(boolean create)
Gets the root of user directory contents
|
void |
service(ServiceManager manager) |
getLogger, setLogger
public static final String USER_DIRECTORY_ROOT_NODE
public static final String ORGUNITS_METADATA
protected AmetysObjectResolver _resolver
protected ContentTypeExtensionPoint _cTypeEP
public UserDirectoryHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public AmetysObjectCollection getUserDirectoryRootContent()
public AmetysObjectCollection getUserDirectoryRootContent(boolean create)
create
- true
to create automatically the root when missing.public List<Content> getOrgUnits(Content user)
user
- the user contentpublic Content getUserContent(UserIdentity user, String lang)
user
- the user identitylang
- the lang