org.pandora.client.admin
Class AdminDatabase

java.lang.Object
  extended by org.pandora.client.admin.AdminDatabase

public class AdminDatabase
extends java.lang.Object


Constructor Summary
AdminDatabase()
           
 
Method Summary
 PandoraInstance changeDescription(PandoraInstance instance, java.lang.String description)
           
 PandoraInstance createInstance(java.lang.String database, java.lang.String userId, java.lang.String description, boolean isAdult, boolean isPrivate)
           
 User createUser(User user)
           
 void deleteInstance(PandoraInstance instance)
           
 java.util.List<PandoraInstance> getAllInstances(PandoraBean.InstanceFilter filter, User user)
           
 javax.persistence.EntityManagerFactory getFactory()
           
 java.util.logging.Logger getLog()
           
static AdminDatabase instance()
           
 void setLog(java.util.logging.Logger log)
           
 PandoraInstance updateInstance(java.lang.String database, java.lang.String userId, java.lang.String description, boolean isAdult, boolean isPrivate)
           
 User updateUser(User user)
           
 PandoraInstance validateInstance(java.lang.String database, java.lang.String userId)
           
 PandoraInstance validateNewInstance(java.lang.String database)
           
 User validateUser(java.lang.String id, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminDatabase

public AdminDatabase()
Method Detail

instance

public static AdminDatabase instance()

getLog

public java.util.logging.Logger getLog()

setLog

public void setLog(java.util.logging.Logger log)

getFactory

public javax.persistence.EntityManagerFactory getFactory()

getAllInstances

public java.util.List<PandoraInstance> getAllInstances(PandoraBean.InstanceFilter filter,
                                                       User user)

createUser

public User createUser(User user)

updateUser

public User updateUser(User user)

changeDescription

public PandoraInstance changeDescription(PandoraInstance instance,
                                         java.lang.String description)

createInstance

public PandoraInstance createInstance(java.lang.String database,
                                      java.lang.String userId,
                                      java.lang.String description,
                                      boolean isAdult,
                                      boolean isPrivate)

updateInstance

public PandoraInstance updateInstance(java.lang.String database,
                                      java.lang.String userId,
                                      java.lang.String description,
                                      boolean isAdult,
                                      boolean isPrivate)

deleteInstance

public void deleteInstance(PandoraInstance instance)

validateInstance

public PandoraInstance validateInstance(java.lang.String database,
                                        java.lang.String userId)

validateNewInstance

public PandoraInstance validateNewInstance(java.lang.String database)

validateUser

public User validateUser(java.lang.String id,
                         java.lang.String password)