|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Observable
org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
org.opengroupware.jogi.connect.xmlrpc.XmlRpcEnterprise
| Field Summary | |
protected XmlRpcCaller |
caller_
|
static java.lang.String |
ENTERPRISE_ADDRESSES
|
static java.lang.String |
ENTERPRISE_BANK
|
static java.lang.String |
ENTERPRISE_BANK_ACCOUNT
|
static java.lang.String |
ENTERPRISE_COMMENT
|
static java.lang.String |
ENTERPRISE_CONTACT
|
static java.lang.String |
ENTERPRISE_CONTACT_ID
|
static java.lang.String |
ENTERPRISE_CONTACT_LOGIN
|
static java.lang.String |
ENTERPRISE_DELETE_PERSON
|
static java.lang.String |
ENTERPRISE_EMAIL
|
static java.lang.String |
ENTERPRISE_EXTENDED_ATTRS
|
static java.lang.String |
ENTERPRISE_EXTENDED_ATTRS_LASTCHANGED
|
static java.lang.String |
ENTERPRISE_EXTENDED_KEYS
|
static java.lang.String |
ENTERPRISE_ID
|
static java.lang.String |
ENTERPRISE_INSERT_PERSON
|
static java.lang.String |
ENTERPRISE_IS_COMPLETE
|
static java.lang.String |
ENTERPRISE_KEYWORDS
|
static java.lang.String |
ENTERPRISE_NAME
|
static java.lang.String |
ENTERPRISE_NUMBER
|
static java.lang.String |
ENTERPRISE_OBJECT_VERSION
|
static java.lang.String |
ENTERPRISE_OWNER
|
static java.lang.String |
ENTERPRISE_OWNER_ID
|
static java.lang.String |
ENTERPRISE_OWNER_LOGIN
|
static java.lang.String |
ENTERPRISE_PHONE_TYPES
|
static java.lang.String |
ENTERPRISE_PHONES
|
static java.lang.String |
ENTERPRISE_URL
|
protected OpenGroupWare |
ogo
|
| Fields inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument |
content_, KEY_ID |
| Constructor Summary | |
protected |
XmlRpcEnterprise(java.lang.String enterprise_name,
OpenGroupWare ogo)
|
| Method Summary | |
protected boolean |
checkNewContent(java.util.Map new_content)
This method checks whether the provided Map contains a valid document. |
protected XmlRpcAddress |
createNewAddress(java.lang.String key_for_map)
|
void |
deletePerson(Person person)
|
java.util.Map |
getAddresses()
|
java.lang.String |
getBank()
|
java.lang.String |
getBankAccount()
|
java.lang.String |
getComment()
|
Person |
getContact()
|
Person |
getContactPerson()
|
java.lang.String |
getEmail()
|
java.util.Map |
getExtendedAttributs()
|
java.lang.String |
getId()
Returns the id associated with this Enterprise object. |
java.lang.String |
getKeywords()
|
java.lang.String |
getLastChanged()
|
java.lang.String |
getName()
|
java.lang.String |
getNumber()
|
int |
getObjectVersion()
|
Account |
getOwner()
|
java.lang.String |
getOwnerId()
|
java.util.Map |
getPhones()
Returns a Map with all phone objects which
are currently available for this enterprise. |
java.util.List |
getPhoneTypes()
Returns a List of all currently available phone types. |
java.util.List |
getProjects()
|
java.lang.String |
getUrl()
|
java.util.Map |
insertExtendedAttrs(java.lang.String key,
java.lang.String val)
|
void |
insertPerson(Person person)
|
Phone |
insertPhone(java.lang.String type,
java.lang.String number,
java.lang.String info)
Inserts a new Phone into the Enterprise. |
boolean |
isComplete()
|
boolean |
removePhone(Phone phone)
Removes the Phone from this
Enterprise. |
void |
setBank(java.lang.String string)
|
void |
setBankAccount(java.lang.String string)
|
void |
setComment(java.lang.String comment)
|
void |
setContact(Person person)
|
void |
setContactPerson(Person person)
|
void |
setEmail(java.lang.String string)
|
void |
setIsComplete(boolean bool)
|
void |
setKeywords()
|
void |
setName(java.lang.String name)
|
void |
setNumber(java.lang.String number)
|
void |
setObjectVersion(int objectVersion)
|
void |
setOwner(Account account)
|
protected void |
setPhoneTypes(java.util.List phone_types)
|
void |
setUrl(java.lang.String url)
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
protected boolean |
updateAddresses(java.util.Map addressesMap)
|
protected boolean |
updatePhones(java.util.Map phonesMap)
This method converts between an XML-RPC result returned by the GroupwareServer and an local XmlRpcPhone
object. |
| Methods inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument |
fireNotify, getContent, getString, put, setContent |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| 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 ENTERPRISE_ID
public static final java.lang.String ENTERPRISE_NUMBER
public static final java.lang.String ENTERPRISE_NAME
public static final java.lang.String ENTERPRISE_BANK
public static final java.lang.String ENTERPRISE_BANK_ACCOUNT
public static final java.lang.String ENTERPRISE_CONTACT
public static final java.lang.String ENTERPRISE_CONTACT_LOGIN
public static final java.lang.String ENTERPRISE_CONTACT_ID
public static final java.lang.String ENTERPRISE_EMAIL
public static final java.lang.String ENTERPRISE_OWNER
public static final java.lang.String ENTERPRISE_OWNER_LOGIN
public static final java.lang.String ENTERPRISE_OWNER_ID
public static final java.lang.String ENTERPRISE_OBJECT_VERSION
public static final java.lang.String ENTERPRISE_ADDRESSES
public static final java.lang.String ENTERPRISE_COMMENT
public static final java.lang.String ENTERPRISE_EXTENDED_ATTRS
public static final java.lang.String ENTERPRISE_EXTENDED_ATTRS_LASTCHANGED
public static final java.lang.String ENTERPRISE_EXTENDED_KEYS
public static final java.lang.String ENTERPRISE_KEYWORDS
public static final java.lang.String ENTERPRISE_IS_COMPLETE
public static final java.lang.String ENTERPRISE_URL
public static final java.lang.String ENTERPRISE_PHONE_TYPES
public static final java.lang.String ENTERPRISE_PHONES
public static final java.lang.String ENTERPRISE_INSERT_PERSON
public static final java.lang.String ENTERPRISE_DELETE_PERSON
protected XmlRpcCaller caller_
protected OpenGroupWare ogo
| Constructor Detail |
protected XmlRpcEnterprise(java.lang.String enterprise_name,
OpenGroupWare ogo)
throws OgoException,
ConnectionException
| Method Detail |
protected XmlRpcAddress createNewAddress(java.lang.String key_for_map)
throws OgoException,
ConnectionException
OgoException
ConnectionException
protected boolean updateAddresses(java.util.Map addressesMap)
throws OgoException,
ConnectionException
addressesMap - the Map returned by OpenGroupware.org, this contains
the Addresses as Maps.
OgoException
ConnectionException
protected boolean updatePhones(java.util.Map phonesMap)
throws OgoException,
ConnectionException
XmlRpcPhone
object. If there is a local object available its data is updated,
if no local object is available it is created and initialized with
the results returned by the XML-RPC call.
phonesMap - The phones object returned by an XML-RPC call to
the Opengroupware.
true if updating the map suceeds and false
otherwise.
OgoException
ConnectionException
public java.lang.String getId()
throws OgoException,
ConnectionException
EnterpriseEnterprise object.
getId in interface EnterprisegetId in class XmlRpcBaseDocumentOgoException
ConnectionException
public java.lang.String getName()
throws OgoException,
ConnectionException
getName in interface EnterpriseOgoException
ConnectionException
public void setName(java.lang.String name)
throws OgoException,
ConnectionException
setName in interface EnterpriseOgoException
ConnectionException
public java.util.Map insertExtendedAttrs(java.lang.String key,
java.lang.String val)
throws OgoException,
ConnectionException
insertExtendedAttrs in interface EnterpriseOgoException
ConnectionException
public int getObjectVersion()
throws OgoException,
ConnectionException
getObjectVersion in interface EnterpriseOgoException
ConnectionException
public void setObjectVersion(int objectVersion)
throws OgoException,
ConnectionException
setObjectVersion in interface EnterpriseOgoException
ConnectionException
public java.lang.String getComment()
throws OgoException,
ConnectionException
getComment in interface EnterpriseOgoException
ConnectionException
public void setComment(java.lang.String comment)
throws OgoException,
ConnectionException
setComment in interface EnterpriseOgoException
ConnectionException
public java.lang.String getUrl()
throws OgoException,
ConnectionException
getUrl in interface EnterpriseOgoException
ConnectionException
public void setUrl(java.lang.String url)
throws OgoException,
ConnectionException
setUrl in interface EnterpriseOgoException
ConnectionException
public java.util.Map getExtendedAttributs()
throws OgoException,
ConnectionException
getExtendedAttributs in interface EnterpriseOgoException
ConnectionException
public java.lang.String getKeywords()
throws OgoException,
ConnectionException
getKeywords in interface EnterpriseOgoException
ConnectionException
public void setKeywords()
throws OgoException,
ConnectionException
setKeywords in interface EnterpriseOgoException
ConnectionException
public void setContact(Person person)
throws OgoException,
ConnectionException
setContact in interface EnterpriseOgoException
ConnectionException
public Person getContact()
throws OgoException,
ConnectionException
getContact in interface EnterpriseOgoException
ConnectionException
public void setOwner(Account account)
throws OgoException,
ConnectionException
setOwner in interface EnterpriseOgoException
ConnectionException
public Account getOwner()
throws OgoException,
ConnectionException
getOwner in interface EnterpriseOgoException
ConnectionException
public java.lang.String getOwnerId()
throws OgoException,
ConnectionException
getOwnerId in interface EnterpriseOgoException
ConnectionException
public boolean isComplete()
throws OgoException,
ConnectionException
isComplete in interface EnterpriseOgoException
ConnectionException
public void setIsComplete(boolean bool)
throws OgoException,
ConnectionException
setIsComplete in interface EnterpriseOgoException
ConnectionException
public java.util.Map getAddresses()
throws OgoException,
ConnectionException
getAddresses in interface EnterpriseOgoException
ConnectionException
public java.util.Map getPhones()
throws OgoException,
ConnectionException
EnterpriseMap with all phone objects which
are currently available for this enterprise. The phones can be accessed
in the map by their Type.
getPhones in interface EnterprisePhone objects associated with this Enterprise.
OgoException
ConnectionException
public java.util.List getPhoneTypes()
throws OgoException,
ConnectionException
Enterprise
getPhoneTypes in interface EnterpriseOgoException
ConnectionException
public Phone insertPhone(java.lang.String type,
java.lang.String number,
java.lang.String info)
throws OgoException,
ConnectionException
EnterprisePhone does not exist it will
be created. Otherwise the existing Phone is updated.
insertPhone in interface Enterprisetype - The type, for example 01_tel
.number - The number, for example
0043-727-1234567info - Additional information.
OgoException
ConnectionException
public boolean removePhone(Phone phone)
throws OgoException,
ConnectionException
EnterprisePhone from this
Enterprise.
removePhone in interface Enterprisephone - The Phone to
remove.
OgoException
ConnectionException
protected void setPhoneTypes(java.util.List phone_types)
throws OgoException,
ConnectionException
OgoException
ConnectionException
public java.lang.String getNumber()
throws OgoException,
ConnectionException
getNumber in interface EnterpriseOgoException
ConnectionException
public void setNumber(java.lang.String number)
throws OgoException,
ConnectionException
setNumber in interface EnterpriseOgoException
ConnectionException
public void insertPerson(Person person)
throws OgoException,
ConnectionException
insertPerson in interface EnterpriseOgoException
ConnectionException
public void deletePerson(Person person)
throws OgoException,
ConnectionException
deletePerson in interface EnterpriseOgoException
ConnectionException
public java.util.List getProjects()
throws OgoException,
ConnectionException
getProjects in interface EnterpriseOgoException
ConnectionException
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observer
public java.lang.String getBank()
throws OgoException,
ConnectionException
getBank in interface EnterpriseOgoException
ConnectionException
public java.lang.String getBankAccount()
throws OgoException,
ConnectionException
getBankAccount in interface EnterpriseOgoException
ConnectionException
public Person getContactPerson()
throws OgoException,
ConnectionException
getContactPerson in interface EnterpriseOgoException
ConnectionException
public java.lang.String getEmail()
throws OgoException,
ConnectionException
getEmail in interface EnterpriseOgoException
ConnectionException
public java.lang.String getLastChanged()
throws OgoException,
ConnectionException
getLastChanged in interface EnterpriseOgoException
ConnectionException
public void setBank(java.lang.String string)
throws OgoException,
ConnectionException
setBank in interface EnterpriseOgoException
ConnectionException
public void setBankAccount(java.lang.String string)
throws OgoException,
ConnectionException
setBankAccount in interface EnterpriseOgoException
ConnectionException
public void setContactPerson(Person person)
throws OgoException,
ConnectionException
setContactPerson in interface EnterpriseOgoException
ConnectionException
public void setEmail(java.lang.String string)
throws OgoException,
ConnectionException
setEmail in interface EnterpriseOgoException
ConnectionExceptionprotected boolean checkNewContent(java.util.Map new_content)
XmlRpcBaseDocument
checkNewContent in class XmlRpcBaseDocumentnew_content - The new content for the document.
true if the content meets all requirements,
otherwise false.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||