@Exported public class AssetStatisticsStorage extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_ACTION_ |
static String |
_ASSETID_ |
static String |
_ASSETTYPE_ |
static String |
_ASSIGNEE_ |
static String |
_COMMENTS_ |
static String |
_EDITOR_ |
static String |
_SITE_ |
static String |
_UPDATEDDATE_ |
protected String |
selectSQL |
static String |
storageTable |
protected static String |
SystemInfo |
protected String |
tableExistSQL |
Constructor and Description |
---|
AssetStatisticsStorage(ICS ics) |
Modifier and Type | Method and Description |
---|---|
protected void |
callCatalogManager(FTValList lst) |
void |
clear() |
protected void |
createTbl() |
void |
deinstall()
delete the storage table
|
protected void |
deleteTbl() |
protected void |
enterReadLock() |
protected void |
enterWriteLock() |
List<AssetStatistics> |
getAssetStatistics(AssetId assetId,
String siteName) |
int |
getContributionCounts(Date from,
Date end,
String assettype,
String siteName) |
Map<String,Integer> |
getTopAssetsCount(Date from,
Date end,
String siteName,
boolean contentAssetOnly) |
Map<String,Integer> |
getTopSearches(Date from,
Date end,
String siteName,
boolean contentAssetOnly) |
void |
install()
create the storage table for asset statistics and the indexes
|
protected boolean |
isTableExist() |
protected void |
leaveReadLock() |
protected void |
leaveWriteLock() |
IList |
query(Date from,
Date end,
List<AssetStatisticsAction> actions,
String userField,
String username,
String siteName,
String what,
String sqlEnd,
boolean contentAssetOnly) |
void |
save(List<com.openmarket.basic.event.AssetStatisticsItem> statics) |
List<AssetId> |
selectCheckedOutAsset(Date from,
Date end,
String siteName)
select a list of assets that was checked out for a given period of time, in the given site
|
int |
selectCountContributedAsset(Date from,
Date end,
String username,
String site,
boolean contentAssetOnly) |
int |
selectCountCreatedAsset(Date from,
Date end,
String author,
String siteName,
boolean contentAssetOnly) |
int |
selectCountEditedAsset(Date from,
Date end,
String editor,
String siteName,
boolean contentAssetOnly)
select the count of edited assets for a given period of time, by the given user in the given site
|
List<AssetId> |
selectCreatedAsset(Date from,
Date end,
String author,
String siteName,
boolean contentAssetOnly)
select a list of assets that was created for a given period of time, by the given user in the given site
|
List<AssetId> |
selectEditedAsset(Date from,
Date end,
String editor,
String siteName,
boolean contentAssetOnly)
select a list of edited assets for a given period of time, by the given user in the given site
|
Map<String,Integer> |
selectTopContributions(Date from,
Date end,
String siteName,
boolean contentAssetOnly) |
Map<String,Integer> |
selectTopCreates(Date from,
Date end,
String siteName,
boolean contentAssetOnly) |
Map<String,Integer> |
selectTopEdits(Date from,
Date end,
String siteName,
boolean contentAssetOnly) |
List<AssetId> |
selectWorkflowAsset(Date from,
Date end,
String assignee,
String siteName,
boolean contentAssetOnly)
select a list of assets that was put into workflow for a given period of time, by the given user in the given site
|
public static final String storageTable
protected static final String SystemInfo
protected String selectSQL
protected String tableExistSQL
public static final String _ASSETTYPE_
public static final String _ASSETID_
public static final String _SITE_
public static final String _EDITOR_
public static final String _UPDATEDDATE_
public static final String _ASSIGNEE_
public static final String _COMMENTS_
public static final String _ACTION_
public AssetStatisticsStorage(ICS ics)
public void install() throws Exception
Exception
public List<AssetId> selectEditedAsset(Date from, Date end, String editor, String siteName, boolean contentAssetOnly)
from
- the start of interested periodend
- the end of interested periodeditor
- the name of the editorsiteName
- the site namecontentAssetOnly
- whether only Content assets are interested or notpublic int selectCountEditedAsset(Date from, Date end, String editor, String siteName, boolean contentAssetOnly)
from
- the start of interested periodend
- the end of interested periodeditor
- the name of the editorsiteName
- the site namecontentAssetOnly
- whether only Content assets are interested or notpublic List<AssetId> selectWorkflowAsset(Date from, Date end, String assignee, String siteName, boolean contentAssetOnly)
from
- the start of interested periodend
- the end of interested periodassignee
- the name of the assigneesiteName
- the site namecontentAssetOnly
- whether only Content assets are interested or notpublic List<AssetId> selectCheckedOutAsset(Date from, Date end, String siteName)
from
- the start of interested periodend
- the end of interested periodsiteName
- the site namepublic List<AssetId> selectCreatedAsset(Date from, Date end, String author, String siteName, boolean contentAssetOnly)
from
- the start of interested periodend
- the end of interested periodauthor
- the name of the authorsiteName
- the site namecontentAssetOnly
- whether only Content assets are interested or notpublic int selectCountCreatedAsset(Date from, Date end, String author, String siteName, boolean contentAssetOnly)
public Map<String,Integer> selectTopEdits(Date from, Date end, String siteName, boolean contentAssetOnly)
public Map<String,Integer> selectTopCreates(Date from, Date end, String siteName, boolean contentAssetOnly)
public void save(List<com.openmarket.basic.event.AssetStatisticsItem> statics)
public IList query(Date from, Date end, List<AssetStatisticsAction> actions, String userField, String username, String siteName, String what, String sqlEnd, boolean contentAssetOnly)
protected void callCatalogManager(FTValList lst) throws Exception
Exception
protected boolean isTableExist()
public Map<String,Integer> selectTopContributions(Date from, Date end, String siteName, boolean contentAssetOnly)
public int selectCountContributedAsset(Date from, Date end, String username, String site, boolean contentAssetOnly)
public List<AssetStatistics> getAssetStatistics(AssetId assetId, String siteName)
public int getContributionCounts(Date from, Date end, String assettype, String siteName)
public Map<String,Integer> getTopSearches(Date from, Date end, String siteName, boolean contentAssetOnly)