fix for https://issues.infn.it/jira/browse/STOR-465
fix for https://issues.infn.it/jira/browse/STOR-465

used Enum instead of String
If-statement as java code conventions
Merge pull request #6 from italiangrid/fix/STOR-465

Fix/stor 465