public class LiferayPortalUserManager extends Object implements PortalUserManager
| Constructor and Description |
|---|
LiferayPortalUserManager(String administratorUsername) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createUser(PortalUserModel user2Add)
The username of one administrator is needed to perform this operation
|
boolean |
deactivateUser(String username) |
boolean |
deleteUser(String username) |
static com.liferay.portal.model.Company |
getCompany()
return the companyId
|
protected static String |
getDefaultCommunityName()
read the root Default Community name from a property file and returns it
|
static String |
getDefaultCompanyWebId() |
protected static String |
getRootOrganizationName()
read the root VO name from a property file and returns it
|
PortalUserModel |
getUserByFiscalCode(String fiscalCode) |
PortalUserModel |
getUserByUsername(String username) |
List<PortalUserModel> |
listPortalUsers() |
void |
updateGroups()
update the groups for each user of the portal
|
void |
updatePositions()
update the groups for each user of the portal
|
boolean |
updateUser(PortalUserModel user2Update) |
public LiferayPortalUserManager(String administratorUsername)
administratorUsername - one of the administrators username (screenname) of the portalpublic boolean createUser(PortalUserModel user2Add) throws UserManagementSystemException, UserRetrievalFault
createUser in interface PortalUserManageruser2Add - PortalUserModelUserManagementSystemExceptionUserRetrievalFaultpublic boolean updateUser(PortalUserModel user2Update) throws UserManagementSystemException, UserRetrievalFault
updateUser in interface PortalUserManageruser2Update - PortalUserModelUserManagementSystemExceptionUserRetrievalFaultpublic boolean deactivateUser(String username) throws UserManagementSystemException, UserRetrievalFault
deactivateUser in interface PortalUserManagerusername - the username (screenname) of the user to deactivateUserManagementSystemExceptionUserRetrievalFaultpublic boolean deleteUser(String username) throws UserManagementSystemException, UserRetrievalFault
deleteUser in interface PortalUserManagerusername - the username (screenname) of the user to deleteUserManagementSystemExceptionUserRetrievalFaultpublic PortalUserModel getUserByUsername(String username) throws UserManagementSystemException
getUserByUsername in interface PortalUserManagerPortalUserModelUserManagementSystemExceptionpublic PortalUserModel getUserByFiscalCode(String fiscalCode) throws UserManagementSystemException
getUserByFiscalCode in interface PortalUserManagerPortalUserModelUserManagementSystemExceptionpublic List<PortalUserModel> listPortalUsers() throws UserManagementSystemException
listPortalUsers in interface PortalUserManagerPortalUserModel istancesUserManagementSystemExceptionpublic static com.liferay.portal.model.Company getCompany()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
webId - .com.liferay.portal.kernel.exception.PortalException - .com.liferay.portal.kernel.exception.SystemException - .public static String getDefaultCompanyWebId()
protected static String getRootOrganizationName()
protected static String getDefaultCommunityName()
public void updatePositions()
throws Exception
ExceptionCopyright © 2014. All Rights Reserved.