[uportal-dev] guest portlet preferences in up3

2008-05-14 Thread Jen Bourey
Hi all,

Is anyone currently working on UP-2027?  If not, I'd like to go ahead and
take care of this issue.  However, I know there was some talk about it at
the dev meeting, so I wasn't sure if someone was currently working on it.

- Jen

-- 
You are currently subscribed to uportal-dev@lists.ja-sig.org as: [EMAIL 
PROTECTED]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Re: [uportal-dev] New 3.1 features

2008-05-14 Thread Eric Dalquist
That would be good to see and similar to what we'd likely be doing. The 
change is really just in the URL processing code to look for parameters 
in a different URL format, the processing pipeline code would likely not 
change much and still just work off the existing structure and theme 
parameters.


-Eric

Drew Wills wrote:

Eric Dalquist wrote:

Lets see if I can answer some of these questions.

For 'better URLs':
...
- To get this nicer IDs I was planning on building on the work that 
was done to allow named access to tabs via a fname like attribute. 
This protects the URL from having to deal with full tab names which 
may contain multi-byte characters and may not be unique for a user.


FYI, we recently enhanced this capability by adding a servlet filter 
that could take a URL like...


  https://my.portal.edu/myStuff.tab

and set up the appropriate request parameters before passing control 
down the filter chain.


I'm sure JHU will be eager to share and collaborate on this part of 
the picture as well, if others are interested in supporting prettier 
URLs in this way.


drew wills



smime.p7s
Description: S/MIME Cryptographic Signature


RE: [uportal-dev] CAnnouncements and up3

2008-05-14 Thread Paul Gazda
Jen,
I don't know what the SJDC branch is, but if it is the USC modified version,
I wonder if you would also be able to fix the problem that has come up
several times in the past on the jasig-user list. In multi-server
environments all announcements disappear if a database error occurs when
retrieving announcements. I have provided to the list the fix based on the
Columbia code, but since we are not using the USC code, I cannot fix and
test it directly. See USC Announcement problem in the jasig-user list
(http://www.nabble.com/Google-Gadgets-to12528614.html#a15965154) for details
of a recent incident. I have attached the code modifications necessary in
the Columbia version, and based on the responses in the past, the USC code
is either exactly the same or very similar.
 
Paul Gazda
 
  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jen Bourey
Sent: Tuesday, May 13, 2008 1:44 PM
To: uportal-dev@lists.ja-sig.org
Subject: [uportal-dev] CAnnouncements and up3
 
I've been working on getting the SJDC branch of the CAnnouncements channel
working in up3 and have made a bunch of modifications to get the code to
compile successfully under uPortal 3.0.  In particular, the code uses the
portal's LogService for all its logging needs, and LogService was removed
from up3 in favor of log4j + commons logging.  I've modified my local
version to work with commons logging, which seems fairly desirable anyway.  





The other necessary change was to modify the PropertiesLoader to use the
ResourceLoader.getResourceAsStream method rather than
ResourceLoader.getResourceAsFile.  The getResourceAsFile method was removed
from up3 since it no longer worked, but the getResourceAsStream method has
been present since at least 2003, so I would expect this change to work in
pre-up3 versions.





It seems like both these changes are likely to be compatible enough with
pre-up3 versions that we could commit the changes without having to create a
separate up3 branch.  However, we probably would want to add a separate up3
build task to the ant build script.  Does this approach sound reasonable?
Is it likely to cause conflicts with uPortal versions people are currently
running the SJDC branch with?





Just as a general warning, there some issues that crop up with the channel
due to some of the database changes that were made in up3.  In uportal 3.0,
things like entities and groups no longer have hard-coded, predictable IDs.
If you give the channel the opportunity to add administrative groups itself,
it will create them with the wrong entity type and fail to successfully add
portal administrators to them.  I've had good success with first creating
the necessary administrative groups through either the portal administrative
API or importing .group and .membership files, configuring the announcements
properties files with these new group numbers, then deploying the channel
itself.





- Jen
-- 






You are currently subscribed to uportal-dev@lists.ja-sig.org as:
[EMAIL PROTECTED]


To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

-- 
You are currently subscribed to uportal-dev@lists.ja-sig.org as: [EMAIL 
PROTECTED]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-devITopicStoreAuthority.java
-
Change:
public HashMap getDBTopicIDs (); 
To:
public HashMap getDBTopicIDs () throws Exception;


RDBMTopicStore.java
---
A try-catch block around the code below.
// Delete from announcements cache and topic object 
announcements that were
// deleted from database by another server.
try {
  Set dbAnnKeys = (getDBAnnIDs(t.getID()).keySet());
  HashMap tmpMap = new HashMap();
  tmpMap.putAll(anns);
  Set annKeys = tmpMap.keySet();
  annKeys.removeAll(dbAnnKeys);
  if (!annKeys.isEmpty()) {
Iterator i = annKeys.iterator();
while (i.hasNext()) {
  String annKey = (String)i.next();
  anns.remove(annKey);
  t.removeAnnouncement(annKey);
  t.store();
}
  }
}
catch (Exception e) {
  log.error(ERROR: Retrieval of announcements from database 
failed.  +
Check for announcements deleted by another server 
was bypassed. , e);
}

Change:
public HashMap getDBTopicIDs() {
HashMap topicIDs = new HashMap();
Connection conn = null;
try {
  conn = this.getConnection();
  String q = select TOPIC_ID from  + TOPIC_TABLE;
  RDBMServices.PreparedStatement ps = new 
RDBMServices.PreparedStatement(conn, q);
  ResultSet rs = ps.executeQuery();
  try