@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, setLockMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<VaadinTheme,Long>
public void update(String name, byte[] zip)
VaadinThemeDao
update
in interface VaadinThemeDao
name
- 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)
VaadinThemeDao
delete
in interface VaadinThemeDao
name
- the theme name, not null.public byte[] getZip(String name)
VaadinThemeDao
getZip
in interface VaadinThemeDao
name
- the theme name, not null.public List<String> getAllThemeNames()
VaadinThemeDao
getAllThemeNames
in interface VaadinThemeDao
public List<VaadinTheme> findAll()
findAll
in interface VaadinThemeDao
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.