@PermitAll public class JpaVaadinThemeDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<VaadinTheme,java.lang.Long> implements VaadinThemeDao
| Constructor and Description |
|---|
JpaVaadinThemeDao()
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String name)
Deletes the theme from the database.
|
java.util.List<VaadinTheme> |
findAll() |
java.util.List<java.lang.String> |
getAllThemeNames()
Returns names of all themes, currently available in the database.
|
protected javax.persistence.EntityManager |
getEntityManager() |
byte[] |
getZip(java.lang.String name)
Returns the current Vaadin theme zip, based on the theme name.
|
void |
update(java.lang.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,java.lang.Long>public void update(java.lang.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(java.lang.String name)
VaadinThemeDaodelete in interface VaadinThemeDaoname - the theme name, not null.public byte[] getZip(java.lang.String name)
VaadinThemeDaogetZip in interface VaadinThemeDaoname - the theme name, not null.public java.util.List<java.lang.String> getAllThemeNames()
VaadinThemeDaogetAllThemeNames in interface VaadinThemeDaopublic java.util.List<VaadinTheme> findAll()
findAll in interface VaadinThemeDaoCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.