|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.messaging.common.consumerlibrary.query.Query<ConsumerCL>
org.gcube.messaging.common.consumerlibrary.query.AccountingQuery
org.gcube.messaging.common.consumerlibrary.query.PortalAccountingQuery
public class PortalAccountingQuery
Field Summary |
---|
Fields inherited from class org.gcube.messaging.common.consumerlibrary.query.Query |
---|
call, dateFormat, groupClause, limitClause, orderClause, query, results |
Constructor Summary | |
---|---|
PortalAccountingQuery()
|
Method Summary | ||
---|---|---|
|
countByType(Class<TYPE> type,
org.gcube.common.core.scope.GCUBEScope... scope)
countByType |
|
Long |
countByType(String type,
org.gcube.common.core.scope.GCUBEScope... scope)
countByType |
|
String |
countByTypeAndUserWithGrouping(String type,
String groupBy,
String[] dates,
String... user)
countByTypeAndUserWithScopeGrouping |
|
|
countByUser(Class<TYPE> type,
String user,
org.gcube.common.core.scope.GCUBEScope... scope)
countByUser |
|
Long |
countByUser(String type,
String user,
org.gcube.common.core.scope.GCUBEScope... 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 |
|
|
getResultsAsMessage(Class<TYPE> type)
get the results as ArrayList |
|
HashMap<String,String> |
getTerms(String id)
getTerms |
|
HashMap<String,String> |
getWebAppDetails(String id)
getWebAppDetails |
|
|
queryByType(Class<TYPE> type)
queryByType |
|
String |
queryByType(String type,
String[] date)
queryByType |
|
|
queryByUser(Class<TYPE> type,
String user,
org.gcube.common.core.scope.GCUBEScope... scope)
queryByUser |
|
String |
queryByUser(String type,
String user,
String[] date,
org.gcube.common.core.scope.GCUBEScope... scope)
queryByUser |
Methods inherited from class org.gcube.messaging.common.consumerlibrary.query.AccountingQuery |
---|
performQuery |
Methods inherited from class org.gcube.messaging.common.consumerlibrary.query.Query |
---|
getCall, getDimensions, getGroupClause, getLimitClause, getOrderClause, getQuery, getResults, getResultsAsArray, printQueryResults, query, setCall, setGroupClause, setLimitClause, setLimitClause, setOrderClause, setQuery, setResults, toJSON |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalAccountingQuery()
Method Detail |
---|
public <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 results
Exception
- 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, org.gcube.common.core.scope.GCUBEScope... scope) throws Exception
TYPE
- the TYPE of Record to retrievetype
- the class of resultsuser
- the user
Exception
- Exceptionpublic String queryByUser(String type, String user, String[] date, org.gcube.common.core.scope.GCUBEScope... 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, org.gcube.common.core.scope.GCUBEScope... scope) throws Exception
TYPE
- the TYPE of Record to retrievetype
- the class of resultsscope
- the optional scope
Exception
- Exceptionpublic <TYPE extends org.gcube.messaging.common.messages.records.BaseRecord> Long countByUser(Class<TYPE> type, String user, org.gcube.common.core.scope.GCUBEScope... scope) throws Exception, EmptyResultException
TYPE
- the TYPE of Record to retrievetype
- the class of resultsuser
- the userscope
- the optional scope
EmptyResultException
- Exception
Exception
- Exceptionpublic Long countByType(String type, org.gcube.common.core.scope.GCUBEScope... scope) throws Exception
type
- the class of resultsscope
- the optional scope
Exception
- Exceptionpublic Long countByUser(String type, String user, org.gcube.common.core.scope.GCUBEScope... scope) throws Exception, EmptyResultException
type
- the class of resultsuser
- the userscope
- the optional scope
EmptyResultException
- Exception
Exception
- 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 scope
EmptyResultException
- Exception
Exception
- Exceptionpublic HashMap<String,String> getCollections(String id) throws EmptyResultException, Exception
id
- the message id
EmptyResultException
- exception
Exception
- exceptionpublic HashMap<String,String> getTerms(String id) throws EmptyResultException, Exception
id
- the message id
EmptyResultException
- exception
Exception
- exceptionpublic HashMap<String,String> getWebAppDetails(String id) throws EmptyResultException, Exception
id
- the message id
EmptyResultException
- exception
Exception
- exceptionpublic HashMap<String,String> getGHNDetails(String id) throws EmptyResultException, Exception
id
- the message id
EmptyResultException
- exception
Exception
- exceptionpublic HashMap<String,String> getAddresseesGCUBEUsers(String id) throws EmptyResultException, Exception
id
- the message id
EmptyResultException
- exception
Exception
- exceptionpublic String[] getContent(String id) throws EmptyResultException, Exception
id
- the message id
EmptyResultException
- exception
Exception
- 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 type
Exception
- exception
EmptyResultException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |