Class CRMUserService
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.service.user.CRMUserService
-
public class CRMUserService extends Object
CRMUserService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcreate(CRMUser user)Create a newCRMUserList<CRMUser>findAll()Find by primary key.List<CRMUser>findByListIds(List<Integer> listIdsCRMUser)Find by list ids.CRMUserfindByPrimaryKey(int nIdCRMUser)Find by primary keyCRMUserfindByUserGuid(String strUserGuid)Find from a given user guidList<Integer>findListIdsByFilter(CRMUserFilter filter)Find list ids by filter.static CRMUserServicegetService()Get the instance of CRMUserServicevoidremove(int nIdCRMUser)Remove a CRMUservoidsetCRMUserAttributesService(CRMUserAttributesService crmUserAttributesService)Set the crm user attributes servicevoidupdate(CRMUser user)Update aCRMUser
-
-
-
Method Detail
-
getService
public static CRMUserService getService()
Get the instance of CRMUserService- Returns:
- the instance of CRMUserService
-
setCRMUserAttributesService
public void setCRMUserAttributesService(CRMUserAttributesService crmUserAttributesService)
Set the crm user attributes service- Parameters:
crmUserAttributesService- the crm user attributes service
-
findByPrimaryKey
public CRMUser findByPrimaryKey(int nIdCRMUser)
Find by primary key- Parameters:
nIdCRMUser- the id crm user- Returns:
- a
CRMUser
-
findByUserGuid
public CRMUser findByUserGuid(String strUserGuid)
Find from a given user guid- Parameters:
strUserGuid- the user guid- Returns:
- a
CRMUser
-
findListIdsByFilter
public List<Integer> findListIdsByFilter(CRMUserFilter filter)
Find list ids by filter.- Parameters:
filter- the filter- Returns:
- the list
-
findByListIds
public List<CRMUser> findByListIds(List<Integer> listIdsCRMUser)
Find by list ids.- Parameters:
listIdsCRMUser- the list ids crm user- Returns:
- the list
-
create
public int create(CRMUser user)
Create a newCRMUser- Parameters:
user- theCRMUser- Returns:
- the new primary key
-
remove
public void remove(int nIdCRMUser)
Remove a CRMUser- Parameters:
nIdCRMUser- the id crm user
-
-