@PermitAll public class JpaVaadinThemeDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<VaadinTheme,Long> implements VaadinThemeDao
| Constructor and Description |
|---|
JpaVaadinThemeDao()
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String name)
Deletes the theme from the database.
|
List<VaadinTheme> |
findAll() |
List<String> |
getAllThemeNames()
Returns names of all themes, currently available in the database.
|
protected javax.persistence.EntityManager |
getEntityManager() |
byte[] |
getZip(String name)
Returns the current Vaadin theme zip, based on the theme name.
|
void |
update(String name,
byte[] zip)
Updates the theme, creating it if it does not exist.
|
clear, contains, findById, findById, findByIds, flush, getColName, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected javax.persistence.EntityManager getEntityManager()
getEntityManager in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<VaadinTheme,Long>public void update(String name, byte[] zip)
VaadinThemeDaoupdate in interface VaadinThemeDaoname - the theme name, not null.zip - the Vaadin theme zip contents, not null. The zip's root contains the styles.css file.public void delete(String name)
VaadinThemeDaodelete in interface VaadinThemeDaoname - the theme name, not null.public byte[] getZip(String name)
VaadinThemeDaogetZip in interface VaadinThemeDaoname - the theme name, not null.public List<String> getAllThemeNames()
VaadinThemeDaogetAllThemeNames in interface VaadinThemeDaopublic List<VaadinTheme> findAll()
findAll in interface VaadinThemeDaoCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.