Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Massimiliano Assante | 3b827f3004 | |
Massimiliano Assante | 10dd295fae |
21
CHANGELOG.md
21
CHANGELOG.md
|
@ -5,27 +5,32 @@ All notable changes to this project will be documented in this file.
|
|||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
|
||||
## [v2.3.1] - 2021-10-28
|
||||
|
||||
- Removed HomeLibrary
|
||||
- Updated GWT version to latest
|
||||
|
||||
## [v2.3.0] - 2021-02-02
|
||||
|
||||
Ported to git
|
||||
- Ported to git
|
||||
|
||||
Feature #21008: UserStatistics portlet: Remove number of comments done and got indicator
|
||||
- Feature #21008: UserStatistics portlet: Remove number of comments done and got indicator
|
||||
|
||||
## [v2.2.0] - 2017-02-20"
|
||||
## [v2.2.0] - 2017-02-20
|
||||
|
||||
Added storage Quota information
|
||||
- Added storage Quota information
|
||||
|
||||
## [v2.1.0] - 2016-10-02
|
||||
|
||||
Posts related to some statistics are now retrievable on the demand
|
||||
- Posts related to some statistics are now retrievable on the demand
|
||||
|
||||
## [v2.0.0] - 2016-04-02
|
||||
|
||||
Ported to Liferay 6.2
|
||||
- Ported to Liferay 6.2
|
||||
|
||||
Minor bug fix: long vre's name managed properly(Bug #2042)
|
||||
- Minor bug fix: long vre's name managed properly(Bug #2042)
|
||||
|
||||
|
||||
## [v1.0.0] - 2015-12-09
|
||||
|
||||
First release
|
||||
- First release
|
||||
|
|
|
@ -38,12 +38,6 @@ open-source software toolkit used for building and operating Hybrid Data
|
|||
Infrastructures enabling the dynamic deployment of Virtual Research Environments
|
||||
by favouring the realisation of reuse oriented policies.
|
||||
|
||||
The projects leading to this software have received funding from a series of European Union programmes including:
|
||||
The projects leading to this software have received funding from a series of European Union programmes see [FUNDING.md](FUNDING.md)
|
||||
|
||||
- the Sixth Framework Programme for Research and Technological Development
|
||||
- DILIGENT (grant no. 004260);
|
||||
- the Seventh Framework Programme for research, technological development and demonstration
|
||||
- D4Science (grant no. 212488), D4Science-II (grant no.239019), ENVRI (grant no. 283465), EUBrazilOpenBio (grant no. 288754), iMarine(grant no. 283644);
|
||||
- the H2020 research and innovation programme
|
||||
- BlueBRIDGE (grant no. 675680), EGIEngage (grant no. 654142), ENVRIplus (grant no. 654182), Parthenos (grant no. 654119), SoBigData (grant no. 654024),DESIRA (grant no. 818194), ARIADNEplus (grant no. 823914), RISIS2 (grant no. 824091), PerformFish (grant no. 727610), AGINFRAplus (grant no. 731001);
|
||||
|
28
pom.xml
28
pom.xml
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
@ -13,7 +14,7 @@
|
|||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>user-statistics</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>2.3.0</version>
|
||||
<version>2.3.1</version>
|
||||
<name>User statistics portlet</name>
|
||||
<description>
|
||||
User statistics portlet shows main user's statistics.
|
||||
|
@ -27,7 +28,7 @@
|
|||
|
||||
<properties>
|
||||
<!-- Convenience property to set the GWT version -->
|
||||
<gwtVersion>2.8.2</gwtVersion>
|
||||
<gwtVersion>2.9.0</gwtVersion>
|
||||
<liferay.version>6.2.5</liferay.version>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
|
@ -48,7 +49,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>maven-portal-bom</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<version>3.6.3</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
@ -118,24 +119,11 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library-model</artifactId>
|
||||
<scope>provided</scope>
|
||||
<artifactId>storagehub-client-library</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library</artifactId>
|
||||
<scope>provided</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>asm-all</artifactId>
|
||||
<groupId>asm</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library-jcr</artifactId>
|
||||
<scope>provided</scope>
|
||||
<groupId>org.gcube.resources.discovery</groupId>
|
||||
<artifactId>ic-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.eliasbalasis</groupId>
|
||||
|
|
|
@ -13,10 +13,9 @@ import javax.xml.xpath.XPath;
|
|||
import javax.xml.xpath.XPathFactory;
|
||||
|
||||
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||||
import org.gcube.common.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.common.homelibrary.home.workspace.Workspace;
|
||||
import org.gcube.common.portal.PortalContext;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.common.storagehub.client.dsl.StorageHubClient;
|
||||
import org.gcube.portal.custom.communitymanager.SiteManagerUtil;
|
||||
import org.gcube.portal.databook.server.DBCassandraAstyanaxImpl;
|
||||
import org.gcube.portal.databook.server.DatabookStore;
|
||||
|
@ -145,8 +144,8 @@ public class UserStatisticsServiceImpl extends RemoteServiceServlet implements U
|
|||
if(storageInUseLong == null){
|
||||
String userToken = PortalContext.getConfiguration().getCurrentUserToken(ScopeProvider.instance.get(), statisticsOfUsername);
|
||||
SecurityTokenProvider.instance.set(userToken);
|
||||
Workspace workspace = HomeLibrary.getUserWorkspace(statisticsOfUsername);
|
||||
storageInUseLong = workspace.getDiskUsage();
|
||||
StorageHubClient shClient = new StorageHubClient();
|
||||
storageInUseLong = shClient.getTotalVolume();
|
||||
cacheWorkspace.insert(statisticsOfUsername, storageInUseLong);
|
||||
}
|
||||
storageInUse = ServerUtils.formatFileSize(storageInUseLong);
|
||||
|
|
Loading…
Reference in New Issue