portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r692970 - in /portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl: PersistentJetspeedPrincipal.java TransientJetspeedPrincipal.java
Date Mon, 08 Sep 2008 01:12:36 GMT
Author: ate
Date: Sun Sep  7 18:12:36 2008
New Revision: 692970

URL: http://svn.apache.org/viewvc?rev=692970&view=rev
Log:
small change for more logical O/R Mapping and query field naming 

Modified:
    portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/PersistentJetspeedPrincipal.java
    portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/TransientJetspeedPrincipal.java

Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/PersistentJetspeedPrincipal.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/PersistentJetspeedPrincipal.java?rev=692970&r1=692969&r2=692970&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/PersistentJetspeedPrincipal.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/PersistentJetspeedPrincipal.java
Sun Sep  7 18:12:36 2008
@@ -45,7 +45,7 @@
     private boolean extendable = true;
 
     @SuppressWarnings("unchecked")
-    protected Collection attributeValues;
+    protected Collection attributes;
     
     public PersistentJetspeedPrincipal()
     {   
@@ -132,15 +132,15 @@
     
     public synchronized SecurityAttributes getSecurityAttributes()
     {
-        if (attributes == null)
+        if (sa == null)
         {
-            if (attributeValues == null)
+            if (attributes == null)
             {
-                attributeValues = new ArrayList<SecurityAttributeValue>();
+                attributes = new ArrayList<SecurityAttributeValue>();
             }
-            attributes = new SecurityAttributesImpl(this, attributeValues, isReadOnly(),
isExtendable());
+            sa = new SecurityAttributesImpl(this, attributes, isReadOnly(), isExtendable());
         }
-        return attributes;
+        return sa;
     }
     
     public Map<String, String> getInfoMap()
@@ -156,7 +156,7 @@
 
     public synchronized void afterInsert(PersistenceBroker pb) throws PersistenceBrokerException
     {
-        this.attributes = null;
+        this.sa = null;
     }
 
     public void afterLookup(PersistenceBroker pb) throws PersistenceBrokerException

Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/TransientJetspeedPrincipal.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/TransientJetspeedPrincipal.java?rev=692970&r1=692969&r2=692970&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/TransientJetspeedPrincipal.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/TransientJetspeedPrincipal.java
Sun Sep  7 18:12:36 2008
@@ -38,7 +38,7 @@
     protected String name;    
     
     protected transient JetspeedPrincipalType jpt;
-    protected transient SecurityAttributes attributes;
+    protected transient SecurityAttributes sa;
     
     public static void setJetspeedPrincipalManagerProvider(JetspeedPrincipalManagerProvider
jpmp)
     {
@@ -140,11 +140,11 @@
     
     public synchronized SecurityAttributes getSecurityAttributes()
     {
-        if (attributes == null)
+        if (sa == null)
         {
-            attributes = new SecurityAttributesImpl(this);
+            sa = new SecurityAttributesImpl(this);
         }
-        return attributes;
+        return sa;
     }
     
     public Map<String, String> getInfoMap()



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message