/*
* @see vn.pyco.tinycms.dao.AuthorityDao#getByName(java.lang.String)
*/
@Override
public Authority getByName(String authority) {
Authority result = null;
try {
Criteria criteria = createCriteria();
criteria.add(Restrictions.eq(Authority.PROP_AUTHORITY, authority));
result = (Authority) findUniqueByCriteria(criteria);