@ SuppressWarnings ( "unchecked" ) public List < Permission > getPermissions ( ) { final Query query = pm . newQuery ( Permission . class ) ; query . setOrdering ( "name asc" ) ; return ( List < Permission > ) query . execute ( ) ; }
Returns a list of all Permissions defined in the system .