public class PortalAccountingQuery extends AccountingQuery
call, dateFormat, groupClause, limitClause, orderClause, query, results| Constructor and Description |
|---|
PortalAccountingQuery() |
| Modifier and Type | Method and Description |
|---|---|
<TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> |
countByType(Class<TYPE> type,
String... scope)
countByType
|
Long |
countByType(String type,
String... scope)
countByType
|
String |
countByTypeAndUserWithGrouping(String type,
String groupBy,
String[] dates,
String... user)
countByTypeAndUserWithScopeGrouping
|
<TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> |
countByUser(Class<TYPE> type,
String user,
String... scope)
countByUser
|
Long |
countByUser(String type,
String user,
String... scope)
countByUser
|
HashMap<String,String> |
getAddresseesGCUBEUsers(String id)
getAddressesGCUBEUsers
|
HashMap<String,String> |
getCollections(String id)
getCollections
|
String[] |
getContent(String id)
getContent
|
HashMap<String,String> |
getGHNDetails(String id)
getGHNDetails
|
<TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> |
getResultsAsMessage(Class<TYPE> type)
get the results as ArrayList
|
HashMap<String,String> |
getTerms(String id)
getTerms
|
HashMap<String,String> |
getWebAppDetails(String id)
getWebAppDetails
|
<TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> |
queryByType(Class<TYPE> type)
queryByType
|
String |
queryByType(String type,
String[] date)
queryByType
|
<TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> |
queryByUser(Class<TYPE> type,
String user,
String... scope)
queryByUser
|
String |
queryByUser(String type,
String user,
String[] date,
String... scope)
queryByUser
|
performQuerygetCall, getDimensions, getGroupClause, getLimitClause, getOrderClause, getQuery, getResults, getResultsAsArray, printQueryResults, query, setCall, setGroupClause, setLimitClause, setLimitClause, setOrderClause, setQuery, setResults, toJSONpublic <TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> String queryByType(Class<TYPE> type) throws Exception
TYPE - the TYPE of Record to retrievetype - the class of resultsException - Exceptionpublic String queryByType(String type, String[] date) throws Exception
type - the class of resultsdate - Exception - Exceptionpublic <TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> String queryByUser(Class<TYPE> type, String user, String... scope) throws Exception
TYPE - the TYPE of Record to retrievetype - the class of resultsuser - the userException - Exceptionpublic String queryByUser(String type, String user, String[] date, String... scope) throws Exception
type - the TYPE of Record to retrievetype - the class of resultsuser - the userdate - Exception - Exceptionpublic <TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> Long countByType(Class<TYPE> type, String... scope) throws Exception
TYPE - the TYPE of Record to retrievetype - the class of resultsscope - the optional scopeException - Exceptionpublic <TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> Long countByUser(Class<TYPE> type, String user, String... scope) throws Exception, EmptyResultException
TYPE - the TYPE of Record to retrievetype - the class of resultsuser - the userscope - the optional scopeEmptyResultException - ExceptionException - Exceptionpublic Long countByType(String type, String... scope) throws Exception
type - the class of resultsscope - the optional scopeException - Exceptionpublic Long countByUser(String type, String user, String... scope) throws Exception, EmptyResultException
type - the class of resultsuser - the userscope - the optional scopeEmptyResultException - ExceptionException - Exceptionpublic String countByTypeAndUserWithGrouping(String type, String groupBy, String[] dates, String... user) throws Exception, EmptyResultException
type - the class of resultsgroupBy - groupByuser - the userscope - the optional scopedates - the optional scopeEmptyResultException - ExceptionException - Exceptionpublic HashMap<String,String> getCollections(String id) throws EmptyResultException, Exception
id - the message idEmptyResultException - exceptionException - exceptionpublic HashMap<String,String> getTerms(String id) throws EmptyResultException, Exception
id - the message idEmptyResultException - exceptionException - exceptionpublic HashMap<String,String> getWebAppDetails(String id) throws EmptyResultException, Exception
id - the message idEmptyResultException - exceptionException - exceptionpublic HashMap<String,String> getGHNDetails(String id) throws EmptyResultException, Exception
id - the message idEmptyResultException - exceptionException - exceptionpublic HashMap<String,String> getAddresseesGCUBEUsers(String id) throws EmptyResultException, Exception
id - the message idEmptyResultException - exceptionException - exceptionpublic String[] getContent(String id) throws EmptyResultException, Exception
id - the message idEmptyResultException - exceptionException - exceptionpublic <TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> ArrayList<org.gcube.messaging.common.messages.PortalAccountingMessage<TYPE>> getResultsAsMessage(Class<TYPE> type) throws Exception, EmptyResultException
TYPE - type - the typeException - exceptionEmptyResultException - exceptionCopyright © 2015. All Rights Reserved.