@Repository public class IconsDaoImpl extends Object implements IconsDao
IconsDao| Constructor and Description |
|---|
IconsDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManager |
getEntityManager()
Gets the reference to the
EntityManager |
WebIcon |
getIcon(String icon,
String theme)
Gets a specific icon.
|
List<WebIcon> |
getIcons()
Returns a list of all the persisted icons.
|
boolean |
iconExists(String iconName,
String theme)
Returns true if the icon with the specific name and theme exists
|
WebIcon |
saveWebIcon(WebIcon icon)
Persists a
WebIcon |
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Sets the reference to the
EntityManager |
public IconsDaoImpl()
public javax.persistence.EntityManager getEntityManager()
EntityManagerpublic void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManagerentityManager - The reference to the EntityManagerpublic List<WebIcon> getIcons()
IconsDaopublic WebIcon getIcon(String icon, String theme)
IconsDaopublic boolean iconExists(String iconName, String theme)
IconsDaoiconExists in interface IconsDaoiconName - Name of the icon to check existence of.theme - Theme of the icon.@Transactional public WebIcon saveWebIcon(WebIcon icon)
IconsDaoWebIconsaveWebIcon in interface IconsDaoicon - Icon to persist.Copyright © 2011–2014 The Kuali Foundation. All rights reserved.