Tim,
Here's the code that decides whether someone is a guest or not:
*****
public boolean isGuest() {
boolean isGuest = false;
String userName = (String)getAttribute(IPerson.USERNAME);
if (userName.equals(PersonFactory.GUEST_USERNAME) &&
!m_securityContext.isAuthenticated()) {
isGuest = true;
}
return isGuest;
}
*****
So -- it looks like the user's username must match the GUEST_USERNAME
(can be specified in portal.properties, default is 'guest'), and the
user must not be authenticated.
Which gives rise to an irony: if you log in as 'guest' (perhaps to
change the layout), you won't see any guest fragments.
drew wills
Timothy Carroll wrote:
thanks guys. i think i have figured out how bare-bones i can go with
the empty user; however, i cannot seem to get the
GuestUserEvaluatorFactory to resolve and display my frg-guest dlm fragment
<dlm:fragment name='frg-guest' ownerID='guest-lo' precedence='10'>
<dlm:audience
evaluatorFactory='org.jasig.portal.layout.dlm.providers.GuestUserEvaluatorFactory'/>
</dlm:fragment>
odd, all the others work fine.
Jason Shao wrote:
On Oct 17, 2007, at 4:05 AM, Drew Wills wrote:
Timothy Carroll wrote:
when you guys talk about an empty guest user,
how "empty" is it actually... does it just have a root layout node, or
does it need more? less?
I believe you always need to include a header and a footer. Here's a
document that contains an example.
You may or may not need more channels in the header & footer.
I think Mark had mentioned in 2.6 DLM should be able to call transient
channels from the theme xform using something that looked like
<channel fname="login"/> -- and that this moves us further in the
direction of getting rid of the special hidden folders.
Jason
--
Jason Shao
Application Developer
Rutgers University, Office of Instructional & Research Technology
v. 732-445-8726 | f. 732-445-5539 | [EMAIL PROTECTED] |
http://jay.shao.org
--
Andrew Wills
UNICON, Inc.
Office: (480) 558-2476
http://code.google.com/p/cernunnos/
--
You are currently subscribed to [email protected] as: [EMAIL
PROTECTED]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev