Integrate AAF
[clamp.git] / src / main / java / org / onap / clamp / clds / service / CldsUser.java
index dc3f7d5..b30397d 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP CLAMP
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
  *                             reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License"); 
  * limitations under the License.
  * ============LICENSE_END============================================
  * ===================================================================
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ * 
  */
 
 package org.onap.clamp.clds.service;
 
 import java.util.Arrays;
 
+/**
+ * The class represents the CldsUser that can be extracted from cldsusers.json.
+ */
 public class CldsUser {
 
     private String user;
@@ -32,6 +35,8 @@ public class CldsUser {
     private SecureServicePermission[] permissions;
 
     /**
+     * Returns the user.
+     * 
      * @return the user
      */
     public String getUser() {
@@ -39,6 +44,8 @@ public class CldsUser {
     }
 
     /**
+     * Sets the user.
+     * 
      * @param user
      *            the user to set
      */
@@ -47,6 +54,8 @@ public class CldsUser {
     }
 
     /**
+     * Returns the password.
+     * 
      * @return the password
      */
     public String getPassword() {
@@ -54,6 +63,8 @@ public class CldsUser {
     }
 
     /**
+     * Sets the password.
+     * 
      * @param password
      *            the password to set
      */
@@ -62,6 +73,8 @@ public class CldsUser {
     }
 
     /**
+     * Returns the permissions.
+     * 
      * @return the permissions
      */
     public SecureServicePermission[] getPermissions() {
@@ -69,12 +82,13 @@ public class CldsUser {
     }
 
     public String[] getPermissionsString() {
-        //NOSONAR
         return Arrays.stream(getPermissions()).map(SecureServicePermission::getKey).toArray(String[]::new);
     }
 
     /**
-     * @param permissions
+     * Sets the permissions.
+     * 
+     * @param permissionsArray
      *            the permissions to set
      */
     public void setPermissions(SecureServicePermission[] permissionsArray) {