fr.paris.lutece.plugins.crm.service.user
Class CRMUserService

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.service.user.CRMUserService

public class CRMUserService
extends Object

CRMUserService


Constructor Summary
protected CRMUserService()
          Constructor
 
Method Summary
 int create(CRMUser user)
          Create a new CRMUser
 List<CRMUser> findAll()
          Find by primary key.
 List<CRMUser> findByListIds(List<Integer> listIdsCRMUser)
          Find by list ids.
 CRMUser findByPrimaryKey(int nIdCRMUser)
          Find by primary key
 CRMUser findByUserGuid(String strUserGuid)
          Find from a given user guid
 List<Integer> findListIdsByFilter(CRMUserFilter filter)
          Find list ids by filter.
static CRMUserService getService()
          Get the instance of CRMUserService
 void remove(int nIdCRMUser)
          Remove a CRMUser
 void setCRMUserAttributesService(CRMUserAttributesService crmUserAttributesService)
          Set the crm user attributes service
 void update(CRMUser user)
          Update a CRMUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRMUserService

protected CRMUserService()
Constructor

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

findAll

public List<CRMUser> findAll()
Find by primary key.

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 new CRMUser

Parameters:
user - the CRMUser
Returns:
the new primary key

update

public void update(CRMUser user)
Update a CRMUser

Parameters:
user - the CRMUser

remove

public void remove(int nIdCRMUser)
Remove a CRMUser

Parameters:
nIdCRMUser - the id crm user


Copyright © 2013 Mairie de Paris. All Rights Reserved.