|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengroupware.jogi.connect.xmlrpc.XmlRpcContactManager
Holds all the contacts in the OGo database. This combines Person and Enterprise information, as they both are logically contacts. The ContactManager is able to fetch Enterprises and Person with vary attributes.
Constructor Summary | |
XmlRpcContactManager(XmlRpcCaller caller,
OpenGroupWare ogo)
|
Method Summary | |
void |
commitUpdate()
|
protected XmlRpcEnterprise |
createNewEnterprise(java.util.Map content)
|
protected XmlRpcPerson |
createNewPerson(java.util.Map content)
|
void |
delete(Enterprise enterprise)
|
void |
delete(Person person)
|
java.util.Iterator |
fetchContacts(FetchSpecification fspec)
Fetches both Person and Enterprise records that match the FetchSpecification. |
java.lang.Object |
fetchEnterpriseMapId(int integer)
|
java.util.Iterator |
fetchEnterprises(FetchSpecification fspec)
Fetches only Enterprise records that match the FetchSpecification. |
java.lang.Object |
fetchPersonMapId(int integer)
|
java.util.Iterator |
fetchPersons(FetchSpecification fspec)
Fetches only Person records that match the FetchSpecification. |
protected XmlRpcEnterprise |
getCachedEnterprise(java.lang.Object obj)
|
protected XmlRpcPerson |
getCachedPerson(java.lang.Object obj)
|
Enterprise |
getEnterprise(int number)
|
Enterprise |
getEnterprise(java.lang.String number)
|
Enterprise |
getEnterpriseById(java.lang.String id)
|
java.util.Iterator |
getEnterprises(java.util.Map attributes)
|
java.util.Iterator |
getEnterprisesByAttributes(java.util.Map attributes)
Gets the Iterator of a List of Enterprise objects that have the attributes contained in the attributes argument. |
Person |
getPersonById(java.lang.String id)
|
Person |
getPersonByNumber(java.lang.String number)
|
java.util.Iterator |
getPersonsByAttributes(java.util.Map attributes)
Gets the Iterator of a List of Person objects that have the attributes contained in the attributes argument. |
Enterprise |
insertEnterprise(java.lang.String description)
|
Person |
insertPerson(java.lang.String first_name,
java.lang.String last_name)
|
protected XmlRpcEnterprise |
receiveEnterprise(java.lang.Object enterprise_tmp)
|
protected XmlRpcPerson |
receivePerson(java.lang.Object person_tmp)
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONTACTMANAGER_PERSON_INSERT
public static final java.lang.String CONTACTMANAGER_PERSON_UPDATE
public static final java.lang.String CONTACTMANAGER_PERSON_DELETE
public static final java.lang.String CONTACTMANAGER_PERSON_GET_BY_ID
public static final java.lang.String CONTACTMANAGER_PERSON_GET_BY_NUMBER
public static final java.lang.String CONTACTMANAGER_PERSON_DELETE_BY_NUMBER
public static final java.lang.String CONTACTMANAGER_PERSON_FETCH
public static final java.lang.String CONTACTMANAGER_PERSON_FETCH_IDS
public static final java.lang.String CONTACTMANAGER_PERSON_FETCH_ENTERPRISES
public static final java.lang.String CONTACTMANAGER_PERSON_FETCH_JOBS
public static final java.lang.String CONTACTMANAGER_PERSON_FETCH_JOB_IDS
public static final java.lang.String CONTACTMANAGER_PERSON_GET_ENTERPRISES
public static final java.lang.String CONTACTMANAGER_PERSON_INSERT_ENTERPRISE
public static final java.lang.String CONTACTMANAGER_PERSON_DELETE_ENTERPRISE
public static final java.lang.String CONTACTMANAGER_PERSON_GET_BY_ATTRIBUTES
public static final java.lang.String CONTACTMANAGER_PERSON_UPDATE_JOB
public static final java.lang.String CONTACTMANAGER_PERSON_INSERT_JOB
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_UPDATE
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_GET_BY_ID
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_GET_BY_NUMBER
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_DELETE
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_INSERT
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_FETCH_IDS
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_FETCH
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_GET
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_GET_PERSONS
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_FETCH_PERSONS
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_GET_PROJECTS
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_DELETE_PERSON
public static final java.lang.String CONTACTMANAGER_ENTERPRISE_INSERT_PERSON
protected java.util.Map cached_persons_
protected java.util.Map cached_enterprises_
protected OpenGroupWare ogo
protected XmlRpcCaller xmlcaller_
Constructor Detail |
public XmlRpcContactManager(XmlRpcCaller caller, OpenGroupWare ogo)
Method Detail |
public java.util.Iterator fetchContacts(FetchSpecification fspec) throws OgoException, ConnectionException
ContactManager
fetchContacts
in interface ContactManager
fspec
- A FetchSpecification describing the contacts to fetch.
null
if no matching records were found.
OgoException
ConnectionException
FetchSpecification
public java.util.Iterator fetchPersons(FetchSpecification fspec) throws OgoException, ConnectionException
ContactManager
fetchPersons
in interface ContactManager
fspec
- A FetchSpecification describing the contacts to fetch.
null
if no matching records were found.
OgoException
ConnectionException
FetchSpecification
public java.util.Iterator fetchEnterprises(FetchSpecification fspec) throws OgoException, ConnectionException
ContactManager
fetchEnterprises
in interface ContactManager
fspec
- A FetchSpecification describing the contacts to fetch.
null
if no matching records were found.
OgoException
ConnectionException
FetchSpecification
public void commitUpdate()
public void delete(Enterprise enterprise) throws OgoException, ConnectionException
delete
in interface ContactManager
OgoException
ConnectionException
public void delete(Person person) throws OgoException, ConnectionException
delete
in interface ContactManager
OgoException
ConnectionException
public Enterprise insertEnterprise(java.lang.String description) throws OgoException, ConnectionException
insertEnterprise
in interface ContactManager
OgoException
ConnectionException
public Person insertPerson(java.lang.String first_name, java.lang.String last_name) throws OgoException, ConnectionException
insertPerson
in interface ContactManager
OgoException
ConnectionException
public java.lang.Object fetchPersonMapId(int integer) throws OgoException, ConnectionException
fetchPersonMapId
in interface ContactManager
OgoException
ConnectionException
public java.lang.Object fetchEnterpriseMapId(int integer) throws OgoException, ConnectionException
fetchEnterpriseMapId
in interface ContactManager
OgoException
ConnectionException
public Enterprise getEnterpriseById(java.lang.String id) throws OgoException, ConnectionException
getEnterpriseById
in interface ContactManager
OgoException
ConnectionException
public Person getPersonById(java.lang.String id) throws OgoException, ConnectionException
getPersonById
in interface ContactManager
OgoException
ConnectionException
public Person getPersonByNumber(java.lang.String number) throws OgoException, ConnectionException
getPersonByNumber
in interface ContactManager
OgoException
ConnectionException
public java.util.Iterator getPersonsByAttributes(java.util.Map attributes) throws OgoException, ConnectionException
ContactManager
getPersonsByAttributes
in interface ContactManager
attributes
- a Map with key= name of attribute (eg name,...)
and value=String for the value of the attribute;
OgoException
ConnectionException
public java.util.Iterator getEnterprisesByAttributes(java.util.Map attributes) throws OgoException, ConnectionException
ContactManager
getEnterprisesByAttributes
in interface ContactManager
attributes
- a Map with key= name of attribute (eg name,...)
and value=String for the value of the attribute;
OgoException
ConnectionException
public Enterprise getEnterprise(int number) throws OgoException, ConnectionException
getEnterprise
in interface ContactManager
OgoException
ConnectionException
public Enterprise getEnterprise(java.lang.String number) throws OgoException, ConnectionException
getEnterprise
in interface ContactManager
OgoException
ConnectionException
public java.util.Iterator getEnterprises(java.util.Map attributes) throws OgoException, ConnectionException
getEnterprises
in interface ContactManager
OgoException
ConnectionException
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
protected XmlRpcPerson receivePerson(java.lang.Object person_tmp) throws OgoException, ConnectionException
OgoException
ConnectionException
protected XmlRpcPerson createNewPerson(java.util.Map content) throws OgoException, ConnectionException
OgoException
ConnectionException
protected XmlRpcPerson getCachedPerson(java.lang.Object obj)
protected XmlRpcEnterprise receiveEnterprise(java.lang.Object enterprise_tmp) throws OgoException, ConnectionException
OgoException
ConnectionException
protected XmlRpcEnterprise createNewEnterprise(java.util.Map content) throws OgoException, ConnectionException
OgoException
ConnectionException
protected XmlRpcEnterprise getCachedEnterprise(java.lang.Object obj) throws OgoException, ConnectionException
OgoException
ConnectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |