diff options
author | 2018-05-29 17:00:44 -0400 | |
---|---|---|
committer | 2018-06-11 14:39:24 -0400 | |
commit | 8e2ec1973570cde1b3166410643bb86bc37f3eff (patch) | |
tree | dcf275e2993fa470dfae06b7e69663290e8a8e0e /ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java | |
parent | 4f1afd26403c688b29c8329be66dcaded951bd54 (diff) |
API Versioning for ECOMP Components in SDK
Issue-ID: PORTAL-263
Included the fix for the defect regarding profile self pages returning
404 error.
Change-Id: Id6b1ed6ffde319ba41e9da445de8aa5f38249a8b
Signed-off-by: sa282w <sa282w@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java')
-rw-r--r-- | ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java index d7de16bd..a62c929c 100644 --- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java +++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java @@ -67,6 +67,8 @@ public class MusicUtil { private static String cached = MusicProperties.getProperty(MusicProperties.MUSIC_CACHE); private static String cleanUpFreq = MusicProperties.getProperty(MusicProperties.MUSIC_CLEAN_UP_FREQUENCY); private static String musicSerializeCompress = MusicProperties.getProperty(MusicProperties.MUSIC_SERIALIZE_COMPRESS); + private static String musicEnable = MusicProperties.getProperty(MusicProperties.MUSIC_ENABLE); + public static boolean isSessionMetaAttr(String key){ return sessionAttrNameSet.contains(key); } @@ -203,4 +205,13 @@ public class MusicUtil { return false; } } + + public static boolean isMusicEnable(){ + if(musicEnable==null) + return false; + if(musicEnable.equals("true")) + return true; + else + return false; + } } |