Package io.jans.scim.service
Class PersonService
- java.lang.Object
-
- io.jans.scim.service.PersonService
-
- All Implemented Interfaces:
Serializable
@ApplicationScoped public class PersonService extends Object implements Serializable
Provides operations with persons- Author:
- Yuriy Movchan Date: 10.13.2010
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersonService()
-
Method Summary
-
-
-
Method Detail
-
addCustomObjectClass
public void addCustomObjectClass(GluuCustomPerson person)
-
addPerson
public void addPerson(GluuCustomPerson person) throws Exception
- Throws:
Exception
-
updatePerson
public void updatePerson(GluuCustomPerson person) throws Exception
- Throws:
Exception
-
removePerson
public void removePerson(GluuCustomPerson person)
-
searchPersons
public List<GluuCustomPerson> searchPersons(String pattern, int sizeLimit)
-
searchPersons
public List<GluuCustomPerson> searchPersons(String pattern)
-
findPersons
public List<GluuCustomPerson> findPersons(GluuCustomPerson person, int sizeLimit)
-
searchPersons
public List<GluuCustomPerson> searchPersons(String pattern, int sizeLimit, List<GluuCustomPerson> excludedPersons) throws Exception
- Throws:
Exception
-
findAllPersons
public List<GluuCustomPerson> findAllPersons(String[] returnAttributes)
-
findPersonsByUids
public List<GluuCustomPerson> findPersonsByUids(List<String> uids, String[] returnAttributes) throws Exception
- Throws:
Exception
-
findPersonsByMailids
public List<GluuCustomPerson> findPersonsByMailids(List<String> mailids, String[] returnAttributes) throws Exception
- Throws:
Exception
-
findPersonByDn
public GluuCustomPerson findPersonByDn(String dn, String... returnAttributes)
-
containsPerson
public boolean containsPerson(GluuCustomPerson person)
-
contains
public boolean contains(String dn)
-
getPersonByDn
public GluuCustomPerson getPersonByDn(String dn)
-
getPersonByInum
public GluuCustomPerson getPersonByInum(String inum)
-
getPersonByUid
public GluuCustomPerson getPersonByUid(String uid, String... returnAttributes)
-
countPersons
public int countPersons()
-
generateInumForNewPerson
public String generateInumForNewPerson()
-
getMandatoryAtributes
public List<GluuCustomAttribute> getMandatoryAtributes()
-
getPersonUids
public String getPersonUids(List<GluuCustomPerson> persons) throws Exception
- Throws:
Exception
-
getPersonMailids
public String getPersonMailids(List<GluuCustomPerson> persons) throws Exception
- Throws:
Exception
-
createEntities
public List<GluuCustomPerson> createEntities(Map<String,List<io.jans.orm.model.AttributeData>> entriesAttributes) throws Exception
- Throws:
Exception
-
getPersonByEmail
public GluuCustomPerson getPersonByEmail(String mail, String... returnAttributes)
-
getPersonsByUid
public List<GluuCustomPerson> getPersonsByUid(String uid, String... returnAttributes)
-
getPersonsByEmail
public List<GluuCustomPerson> getPersonsByEmail(String mail, String... returnAttributes)
-
getPersonByAttribute
public GluuCustomPerson getPersonByAttribute(String attribute, String value) throws Exception
- Throws:
Exception
-
-