You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
accounting-dashboard/src/main/java/org/gcube/portlets/user/accountingdashboard/server/accounting/AccountingService.java

34 lines
833 B
Java

package org.gcube.portlets.user.accountingdashboard.server.accounting;
import org.gcube.data.access.accounting.summary.access.AccountingDao;
import org.gcube.data.access.accounting.summary.access.model.ScopeDescriptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author Giancarlo Panichi
*
*/
public class AccountingService {
private static Logger logger = LoggerFactory.getLogger(AccountingService.class);
private AccountingDao dao;
public AccountingService() {
dao = AccountingDao.get();
}
public void getTree() {
try {
logger.debug("AccountingService GetTree()");
ScopeDescriptor scopeDescriptor = dao.getTree(null);
logger.debug("ScopeDescriptor: "+scopeDescriptor);
} catch (Exception e) {
logger.error("Error retrieving Tree: "+e.getLocalizedMessage(),e);
}
}
}