org.opengroupware.jogi.ogo
Interface Enterprise

All Known Implementing Classes:
XmlRpcEnterprise

public interface Enterprise

Holds all the Information of an Enterprise. It also provides the methods to modify the attributes of an Enterprise Object.

Author:
Andreas Rath (teddius) E-Mail: arath@htu.tugraz.at

Method Summary
 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)
           
 void setUrl(java.lang.String url)
           
 

Method Detail

getId

public java.lang.String getId()
                       throws OgoException,
                              ConnectionException
Returns the id associated with this Enterprise object.

Returns:
The id associated with this object.
Throws:
OgoException
ConnectionException

getName

public java.lang.String getName()
                         throws OgoException,
                                ConnectionException
Throws:
OgoException
ConnectionException

setName

public void setName(java.lang.String name)
             throws OgoException,
                    ConnectionException
Throws:
OgoException
ConnectionException

insertExtendedAttrs

public java.util.Map insertExtendedAttrs(java.lang.String key,
                                         java.lang.String val)
                                  throws OgoException,
                                         ConnectionException
Throws:
OgoException
ConnectionException

getExtendedAttributs

public java.util.Map getExtendedAttributs()
                                   throws OgoException,
                                          ConnectionException
Throws:
OgoException
ConnectionException

getObjectVersion

public int getObjectVersion()
                     throws OgoException,
                            ConnectionException
Throws:
OgoException
ConnectionException

setObjectVersion

public void setObjectVersion(int objectVersion)
                      throws OgoException,
                             ConnectionException
Throws:
OgoException
ConnectionException

getComment

public java.lang.String getComment()
                            throws OgoException,
                                   ConnectionException
Throws:
OgoException
ConnectionException

setComment

public void setComment(java.lang.String comment)
                throws OgoException,
                       ConnectionException
Throws:
OgoException
ConnectionException

getUrl

public java.lang.String getUrl()
                        throws OgoException,
                               ConnectionException
Throws:
OgoException
ConnectionException

setUrl

public void setUrl(java.lang.String url)
            throws OgoException,
                   ConnectionException
Throws:
OgoException
ConnectionException

getKeywords

public java.lang.String getKeywords()
                             throws OgoException,
                                    ConnectionException
Throws:
OgoException
ConnectionException

setKeywords

public void setKeywords()
                 throws OgoException,
                        ConnectionException
Throws:
OgoException
ConnectionException

setContact

public void setContact(Person person)
                throws OgoException,
                       ConnectionException
Throws:
OgoException
ConnectionException

getContact

public Person getContact()
                  throws OgoException,
                         ConnectionException
Throws:
OgoException
ConnectionException

setOwner

public void setOwner(Account account)
              throws OgoException,
                     ConnectionException
Throws:
OgoException
ConnectionException

getOwner

public Account getOwner()
                 throws OgoException,
                        ConnectionException
Throws:
OgoException
ConnectionException

getOwnerId

public java.lang.String getOwnerId()
                            throws OgoException,
                                   ConnectionException
Throws:
OgoException
ConnectionException

isComplete

public boolean isComplete()
                   throws OgoException,
                          ConnectionException
Throws:
OgoException
ConnectionException

setIsComplete

public void setIsComplete(boolean bool)
                   throws OgoException,
                          ConnectionException
Throws:
OgoException
ConnectionException

getAddresses

public java.util.Map getAddresses()
                           throws OgoException,
                                  ConnectionException
Throws:
OgoException
ConnectionException

getPhones

public java.util.Map getPhones()
                        throws OgoException,
                               ConnectionException
Returns a Map with all phone objects which are currently available for this enterprise. The phones can be accessed in the map by their Type.

Returns:
Map a Map which contains all Phone objects associated with this Enterprise.
Throws:
OgoException
ConnectionException

getPhoneTypes

public java.util.List getPhoneTypes()
                             throws OgoException,
                                    ConnectionException
Returns a List of all currently available phone types.

Returns:
List a List of all currently available phone types.
Throws:
OgoException
ConnectionException

insertPhone

public Phone insertPhone(java.lang.String type,
                         java.lang.String number,
                         java.lang.String info)
                  throws OgoException,
                         ConnectionException
Inserts a new Phone into the Enterprise. If the Phone does not exist it will be created. Otherwise the existing Phone is updated.

Parameters:
type - The type, for example 01_tel .
number - The number, for example 0043-727-1234567
info - Additional information.
Throws:
OgoException
ConnectionException

removePhone

public boolean removePhone(Phone phone)
                    throws OgoException,
                           ConnectionException
Removes the Phone from this Enterprise.

Parameters:
phone - The Phone to remove.
Throws:
OgoException
ConnectionException

getNumber

public java.lang.String getNumber()
                           throws OgoException,
                                  ConnectionException
Throws:
OgoException
ConnectionException

setNumber

public void setNumber(java.lang.String number)
               throws OgoException,
                      ConnectionException
Throws:
OgoException
ConnectionException

insertPerson

public void insertPerson(Person person)
                  throws OgoException,
                         ConnectionException
Throws:
OgoException
ConnectionException

deletePerson

public void deletePerson(Person person)
                  throws OgoException,
                         ConnectionException
Throws:
OgoException
ConnectionException

getProjects

public java.util.List getProjects()
                           throws OgoException,
                                  ConnectionException
Throws:
OgoException
ConnectionException

getContactPerson

public Person getContactPerson()
                        throws OgoException,
                               ConnectionException
Throws:
OgoException
ConnectionException

setContactPerson

public void setContactPerson(Person person)
                      throws OgoException,
                             ConnectionException
Throws:
OgoException
ConnectionException

getEmail

public java.lang.String getEmail()
                          throws OgoException,
                                 ConnectionException
Throws:
OgoException
ConnectionException

setEmail

public void setEmail(java.lang.String string)
              throws OgoException,
                     ConnectionException
Throws:
OgoException
ConnectionException

getBank

public java.lang.String getBank()
                         throws OgoException,
                                ConnectionException
Throws:
OgoException
ConnectionException

setBank

public void setBank(java.lang.String string)
             throws OgoException,
                    ConnectionException
Throws:
OgoException
ConnectionException

getBankAccount

public java.lang.String getBankAccount()
                                throws OgoException,
                                       ConnectionException
Throws:
OgoException
ConnectionException

setBankAccount

public void setBankAccount(java.lang.String string)
                    throws OgoException,
                           ConnectionException
Throws:
OgoException
ConnectionException

getLastChanged

public java.lang.String getLastChanged()
                                throws OgoException,
                                       ConnectionException
Throws:
OgoException
ConnectionException


Copyright © 2003 ogojogi Project, All Rights Reserved.