Merge branch 'master' into PROT-9-webservice
[proteocache.git] / server / compbio / spring / security / PCacheLDAPAuthority.java
index dde6d87..aee0964 100644 (file)
@@ -4,12 +4,14 @@ import org.springframework.security.core.GrantedAuthority;
 import org.springframework.util.Assert;
 
 /**
- * Maps groups defined in LDAP to roles for a specific user.
- */
-/*
- * public enum PCacheLDAPAuthority implements GrantedAuthority { ROLE_LDAP_USER;
- * public String getAuthority() { return name(); } }
+ * The class implements the standard granted authority for Spring Security Not
+ * used in the current version of ProteoCache
+ * 
+ * @version 1.0 January 2014
+ * 
+ * @author Alexaner Sherstnev
  */
+
 public final class PCacheLDAPAuthority implements GrantedAuthority {
 
        private static final long serialVersionUID = 1;
@@ -17,7 +19,7 @@ public final class PCacheLDAPAuthority implements GrantedAuthority {
        private String role = "ROLE_LDAP_USER";
 
        public PCacheLDAPAuthority(String role) {
-               Assert.hasText(role, "A granted authority textual representation is required");
+               Assert.hasText(role, "A text representation of the granted authority is required");
                this.role = role;
        }