cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1242842 - /cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/data/Permission.java
Date Fri, 10 Feb 2012 16:41:12 GMT
Author: sergeyb
Date: Fri Feb 10 16:41:12 2012
New Revision: 1242842

URL: http://svn.apache.org/viewvc?rev=1242842&view=rev
Log:
[CXF-4100] Adding a 'default' property to Permission

Modified:
    cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/data/Permission.java

Modified: cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/data/Permission.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/data/Permission.java?rev=1242842&r1=1242841&r2=1242842&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/data/Permission.java
(original)
+++ cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/data/Permission.java
Fri Feb 10 16:41:12 2012
@@ -26,6 +26,7 @@ package org.apache.cxf.rs.security.oauth
 public class Permission {
     private String permission;
     private String description;
+    private boolean isDefault;
     
     public Permission() {
         
@@ -51,4 +52,18 @@ public class Permission {
     public void setPermission(String permission) {
         this.permission = permission;
     }
+
+    /**
+     * Indicates that this permission has been allocated by default.
+     * Authorization View handlers may use this property in order to restrict
+     * the list of scopes which may be refused to non-default scopes only
+     * @param isDefault
+     */
+    public void setDefault(boolean value) {
+        this.isDefault = value;
+    }
+
+    public boolean isDefault() {
+        return isDefault;
+    }
 }



Mime
View raw message