You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Serge Huber (JIRA)" <ji...@apache.org> on 2016/04/06 17:30:26 UTC

[jira] [Updated] (UNOMI-21) Make the default location configurable instead of hardcoded.

     [ https://issues.apache.org/jira/browse/UNOMI-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Serge Huber updated UNOMI-21:
-----------------------------
    Description: 
Currently in the file 
/Users/loom/java/technologies/apache-git/incubator-unomi/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java

We have the following hardcoded location : 
{code}
                session.setProperty("sessionCountryCode", "CH");
                session.setProperty("sessionCountryName", "Switzerland");
                session.setProperty("sessionCity", "Geneva");
                session.setProperty("sessionAdminSubDiv1", "GE");
                session.setProperty("sessionAdminSubDiv2", "2500");
                session.setProperty("sessionIsp", "Cablecom");
                Map<String, Double> location = new HashMap<String, Double>();
                location.put("lat", 46.1884341);
                location.put("lon", 6.1282508);
                session.setProperty("location", location);
 {code}

We should make this configurable using OSGi configuration

  was:
Currently in the file 
/Users/loom/java/technologies/apache-git/incubator-unomi/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java

We have the following hardcoded location : 
{code}
 session.setProperty("sessionCountryCode", "CH");
                session.setProperty("sessionCountryName", "Switzerland");
                session.setProperty("sessionCity", "Geneva");
                session.setProperty("sessionAdminSubDiv1", "GE");
                session.setProperty("sessionAdminSubDiv2", "2500");
                session.setProperty("sessionIsp", "Cablecom");
{code}

We should make this configurable using OSGi configuration


> Make the default location configurable instead of hardcoded.
> ------------------------------------------------------------
>
>                 Key: UNOMI-21
>                 URL: https://issues.apache.org/jira/browse/UNOMI-21
>             Project: Apache Unomi
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.0.0-incubating, 1.0.1-incubating
>            Reporter: Serge Huber
>            Priority: Minor
>             Fix For: 1.0.1-incubating
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Currently in the file 
> /Users/loom/java/technologies/apache-git/incubator-unomi/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java
> We have the following hardcoded location : 
> {code}
>                 session.setProperty("sessionCountryCode", "CH");
>                 session.setProperty("sessionCountryName", "Switzerland");
>                 session.setProperty("sessionCity", "Geneva");
>                 session.setProperty("sessionAdminSubDiv1", "GE");
>                 session.setProperty("sessionAdminSubDiv2", "2500");
>                 session.setProperty("sessionIsp", "Cablecom");
>                 Map<String, Double> location = new HashMap<String, Double>();
>                 location.put("lat", 46.1884341);
>                 location.put("lon", 6.1282508);
>                 session.setProperty("location", location);
>  {code}
> We should make this configurable using OSGi configuration



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)