com.openexchange.api
Class OXObjectFactory

java.lang.Object
  extended bycom.openexchange.api.OXObjectFactory

public class OXObjectFactory
extends java.lang.Object

OXObjectFactory

Author:
Sebastian Kauss

Constructor Summary
OXObjectFactory(java.lang.Object internalobject)
          Creates a new OXObjectFactory instance with the given internal object
OXObjectFactory(java.lang.String user, java.lang.String password, java.sql.Connection con, java.io.File propfile, javax.naming.ldap.LdapContext context)
          Creates a new OXObjectFactory instance with the given values
 
Method Summary
 OXAppointment createOXAppointment()
          return a new Instance of OXAppointment
 OXAttachment createOXAttachment()
          return a new Instance of OXAttachment
 OXContact createOXContact()
          return a new Instance of OXContact
 OXFolder createOXFolder()
          return a new Instance of OXFolder
 OXGroupuser createOXGroupuser()
          return a new Instance of OXGroupuser
 OXLink createOXLink()
          return a new Instance of OXLink
 OXProject createOXProject()
          return a new Instance of OXProject
 OXTask createOXTask()
          return a new Instance of OXTask
 java.sql.Connection getConnection()
          return the Connection and null if no Connection was set
 java.lang.String getPassword()
          return the password and null of no password was set
 java.lang.String getUser()
          return the loginname and null of no loginname was set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OXObjectFactory

public OXObjectFactory(java.lang.Object internalobject)
Creates a new OXObjectFactory instance with the given internal object

Parameters:
internalobject -

OXObjectFactory

public OXObjectFactory(java.lang.String user,
                       java.lang.String password,
                       java.sql.Connection con,
                       java.io.File propfile,
                       javax.naming.ldap.LdapContext context)
                throws javax.naming.NamingException
Creates a new OXObjectFactory instance with the given values

Parameters:
user -
password -
con -
propfile -
context -
Method Detail

getUser

public java.lang.String getUser()
return the loginname and null of no loginname was set

Returns:
the loginname and null of no loginname was set

getPassword

public java.lang.String getPassword()
return the password and null of no password was set

Returns:
the password and null of no password was set

getConnection

public java.sql.Connection getConnection()
return the Connection and null if no Connection was set

Returns:
the Connection and null if no Connection was set

createOXFolder

public OXFolder createOXFolder()
return a new Instance of OXFolder

Returns:
oxtask

createOXGroupuser

public OXGroupuser createOXGroupuser()
return a new Instance of OXGroupuser

Returns:
oxgroupuser

createOXTask

public OXTask createOXTask()
                    throws OXPermissionException
return a new Instance of OXTask

Returns:
oxtask
Throws:
OXPermissionException

createOXContact

public OXContact createOXContact()
                          throws OXPermissionException
return a new Instance of OXContact

Returns:
oxcontact
Throws:
OXPermissionException

createOXAppointment

public OXAppointment createOXAppointment()
                                  throws OXPermissionException
return a new Instance of OXAppointment

Returns:
oxappointment
Throws:
OXPermissionException

createOXProject

public OXProject createOXProject()
return a new Instance of OXProject

Returns:
oxproject

createOXLink

public OXLink createOXLink()
                    throws java.lang.Exception
return a new Instance of OXLink

Returns:
oxlink
Throws:
java.lang.Exception

createOXAttachment

public OXAttachment createOXAttachment()
                                throws java.lang.Exception
return a new Instance of OXAttachment

Returns:
oxattachment
Throws:
java.lang.Exception