@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()
EntityManager
public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager
entityManager
- The reference to the EntityManager
public List<WebIcon> getIcons()
IconsDao
public WebIcon getIcon(String icon, String theme)
IconsDao
public boolean iconExists(String iconName, String theme)
IconsDao
iconExists
in interface IconsDao
iconName
- Name of the icon to check existence of.theme
- Theme of the icon.@Transactional public WebIcon saveWebIcon(WebIcon icon)
IconsDao
WebIcon
saveWebIcon
in interface IconsDao
icon
- Icon to persist.Copyright © 2011–2014 The Kuali Foundation. All rights reserved.