diff options
author | 2018-06-22 12:09:50 -0400 | |
---|---|---|
committer | 2018-06-27 12:44:16 -0400 | |
commit | 3772c40e89085db751c2a4823084b0b1810b1b31 (patch) | |
tree | 1eb8b299896021a4eb740b8f5526e5af9fd5fd1a /ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf | |
parent | cc409b55d11d971a4cc85df63be2fe32317c9082 (diff) |
API Versioning for ECOMP Components in SDK
Issue-ID: PORTAL-263
Included the missing changes for V3 API's for UserService and
LoginService and release/2.4.0 changes needed to be merged in master
branch.
Change-Id: Ic516255464d3edf637df3e8c64eafbf0dde8cee3
Signed-off-by: sa282w <sa282w@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf')
-rw-r--r-- | ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java | 4 | ||||
-rw-r--r-- | ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java index f1defe3c..1f68bda0 100644 --- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java +++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java @@ -158,7 +158,7 @@ public final class MusicSession implements Session, Serializable { public void setLastAccessedTime(Instant lastAccessedTime) { logger.debug(EELFLoggerDelegate.debugLogger, "setLastAccessedTime: start"); try{ - MusicService.setAttribute(MusicProperties.LAST_ACCESS_TIME, this.lastAccessedTime, this.id); + MusicService.setAttribute(MusicProperties.LAST_ACCESS_TIME, lastAccessedTime, this.id); }catch(Exception e){ logger.error(EELFLoggerDelegate.errorLogger, "setLastAccessedTime failed with id " + this.id, e); } @@ -375,7 +375,7 @@ public final class MusicSession implements Session, Serializable { } private static String generateId() { - return UUID.randomUUID().toString(); + return UUID.randomUUID().toString().replaceAll("-", "~"); } private static final long serialVersionUID = 7160779239673823561L; diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java index 4bebfc2b..f2f8fee5 100644 --- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java +++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java @@ -38,8 +38,8 @@ package org.onap.portalapp.music.conf; import java.time.Duration; -import java.util.Map; +import org.springframework.session.MapSession; import org.springframework.session.Session; import org.springframework.session.SessionRepository; import org.springframework.session.events.SessionDeletedEvent; |