org.kinsources.kiwa.kernel
Class KiwaStorer

java.lang.Object
  extended by org.kinsources.kiwa.kernel.KiwaStorer

public class KiwaStorer
extends java.lang.Object

Class Kiwa uses singleton holder to be sure than Plaf modules are initialized.

Author:
Christian P. Momon

Constructor Summary
KiwaStorer(java.lang.String resourceName)
           
KiwaStorer(java.lang.String driverClassName, java.lang.String url, java.lang.String login, java.lang.String password)
           
 
Method Summary
 fr.devinsy.sikevadb.SikevaDB database()
           
 AccountManager getAccountManager()
           
 Actalog getActalog()
           
 Actilog getActilog()
           
 Actulog getActulog()
           
 Agora getAgora()
           
 Hico getHico()
           
 Kidarep getKidarep(Accounts accounts)
           
 byte[] getKidarepFile(long id)
           
 java.lang.String getKiwaRandomKey()
           
 Kiwa.Status getKiwaStatus()
           
 Sciboard getSciboard()
           
 void patch20131115()
           
 void patch20131211()
          Corpus -> Dataset Veto -> Vote
 void patch20151223()
          Rename ACCEPTED_WITH_MODIFICATION as ACCEPTED_WITH_REVISIONS.
 void patch20161028()
          Add dataset type field after the status field.
 void patch20161112()
          Split account fullName field in firstName and lastName.
 void remove(Article source)
           
 void remove(Collection source)
           
 void remove(Dataset source)
           
 void remove(EventLog source)
           
 void remove(FormatIssue source)
           
 void remove(Log source)
           
 void remove(Logs source)
           
 void remove(Message source)
           
 void remove(Topic source)
           
 void remove(Wire source)
           
 void removeKidarepFile(long id)
           
 void store(Account source)
           
 void store(AccountManager source)
           
 void store(Actilog source)
           
 void store(Article source)
           
 void store(Collection source)
           
 void store(Dataset source)
           
 void store(EventLog source)
           
 void store(FormatIssue source)
           
 void store(Forums source)
           
 void store(Log source)
           
 void store(Message source)
           
 void store(Request source)
           
 void store(Topic source)
           
 void store(Wire source)
           
 void storeKidarepFile(long id, byte[] source)
           
 void storeKiwaRandomKey(java.lang.String value)
           
 void storeKiwaStatus(Kiwa.Status value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KiwaStorer

public KiwaStorer(java.lang.String resourceName)
Throws:
java.lang.Exception

KiwaStorer

public KiwaStorer(java.lang.String driverClassName,
                  java.lang.String url,
                  java.lang.String login,
                  java.lang.String password)
Parameters:
resourceName -
Method Detail

database

public fr.devinsy.sikevadb.SikevaDB database()
Returns:

getAccountManager

public AccountManager getAccountManager()
Returns:

getActalog

public Actalog getActalog()
Returns:

getActilog

public Actilog getActilog()
Returns:

getActulog

public Actulog getActulog()
Returns:

getAgora

public Agora getAgora()
Returns:

getHico

public Hico getHico()
Returns:

getKidarep

public Kidarep getKidarep(Accounts accounts)
Returns:

getKidarepFile

public byte[] getKidarepFile(long id)
Returns:

getKiwaRandomKey

public java.lang.String getKiwaRandomKey()
Returns:

getKiwaStatus

public Kiwa.Status getKiwaStatus()
Returns:

getSciboard

public Sciboard getSciboard()
Returns:

patch20131115

public void patch20131115()
                   throws java.lang.Exception
Throws:
java.lang.Exception

patch20131211

public void patch20131211()
                   throws java.lang.Exception
Corpus -> Dataset Veto -> Vote

Throws:
java.lang.Exception

patch20151223

public void patch20151223()
                   throws java.lang.Exception
Rename ACCEPTED_WITH_MODIFICATION as ACCEPTED_WITH_REVISIONS.

Throws:
java.lang.Exception

patch20161028

public void patch20161028()
                   throws java.lang.Exception
Add dataset type field after the status field.

Throws:
java.lang.Exception

patch20161112

public void patch20161112()
                   throws java.lang.Exception
Split account fullName field in firstName and lastName.

Throws:
java.lang.Exception

remove

public void remove(Article source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Collection source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Dataset source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(EventLog source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(FormatIssue source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Log source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Logs source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Message source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Topic source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

remove

public void remove(Wire source)
            throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

removeKidarepFile

public void removeKidarepFile(long id)
                       throws java.lang.Exception
Parameters:
source -
Throws:
java.lang.Exception

store

public void store(Account source)

store

public void store(AccountManager source)
Parameters:
source -

store

public void store(Actilog source)
Parameters:
source -

store

public void store(Article source)
Parameters:
source -

store

public void store(Collection source)
Parameters:
source -

store

public void store(Dataset source)
Parameters:
source -

store

public void store(EventLog source)

store

public void store(FormatIssue source)

store

public void store(Forums source)
Parameters:
source -

store

public void store(Log source)
Parameters:
source -

store

public void store(Message source)
Parameters:
source -

store

public void store(Request source)

store

public void store(Topic source)
Parameters:
source -

store

public void store(Wire source)

storeKidarepFile

public void storeKidarepFile(long id,
                             byte[] source)
Parameters:
source -

storeKiwaRandomKey

public void storeKiwaRandomKey(java.lang.String value)
Parameters:
source -

storeKiwaStatus

public void storeKiwaStatus(Kiwa.Status value)
Parameters:
source -