The lazy loading-ness of my implementation is simply a
re-implementation of getPermissions() and getRoles() that tries the map
then goes to the database if not in the map. I would just submit the
class outright except that it references the tribe implementations of
group, role, and permission.
Brian Lawler wrote:
Another issue we ran into was that creating ACLs became heavy, and
caching the ACL in your session meant that if your permissions were
changed by someone else - a site administrator or tribe moderator -
you would not see those changes until the next time you logged in.
Message-
> From: Brian Lawler [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 10:37 PM
> To: Turbine Developers List
> Subject: Re: null pointer protection in
> DefaultTurbineRunData.setUser()...
>
>
> The main problem we have had from the start is that I have a framewor
ented your security? Have you looked at the security
module in Fulcrum? New and Improved!
-Original Message-
From: Brian Lawler [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 7:33 PM
To: Turbine Developers List
Subject: Re: null pointer protection in
DefaultTurbineRunData.setUser().
> > void clearUser(){
> > setUser(TurbineSecurity.getAnonymousUser());
> > save();
> > }
> >
> > Eric
> >
> >> -Original Message-
> >> From: Brian Lawler [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, April 01, 20
ity.getAnonymousUser());
save();
}
Eric
-Original Message-
From: Brian Lawler [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 8:58 AM
To: Turbine Developers List
Subject: Re: null pointer protection in
DefaultTurbineRunData.setUser()...
Hmm.. seems like the attachment wa
ity.getAnonymousUser());
save();
}
Eric
> -Original Message-
> From: Brian Lawler [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 01, 2004 8:58 AM
> To: Turbine Developers List
> Subject: Re: null pointer protection in
> DefaultTurbineRunData.setUser()...
>
>
>
Hmm.. seems like the attachment wasn't allowed through. Here is the
text of the attachment...
Index:
src/java/org/apache/turbine/services/rundata/DefaultTurbineRunData.java
===
RCS file:
/home/cvspublic/jakarta-turbine-2/src/ja
committers-
Please find attached a trivial patch that will prevent a null pointer
exception being thrown when setUser(null) is called. Is this the
correct way to submit these patches?
-Brian
-
To unsubscribe, e-mail: [EMAIL