public class TranDbUserPermissionsLookupTest {
public static void main(String[] args) throws Exception {
Connection conn = ServerDbInfo.getTranDbConnectionInfo().getConnection();
try {
User user = new User(1, "torgil");
EntityDescriptor entity = new EntityDescriptor(EntityType.Operation, 2);
Permissions p = new TranDbUserPermissionsLookup(conn).getPermissions(user, entity);
System.out.println(p);
} finally {
KongaDbUtils.close(conn);