akc: showcase someone elses folder

satya - Friday, February 05, 2010 9:46:56 AM

what does this mean

Create a link for someone elses folder on your home page. That folder will then be displayed in the context of this owner, all views of that folder and also the views of individual items within that folder.

satya - Friday, February 05, 2010 2:51:46 PM

You need


folder id
folder owner

satya - Friday, February 05, 2010 9:04:55 PM

the datarequestname newsURLFormHandler

it is in /news/news.properties

Make sure the primary loop is qualified

satya - Friday, February 05, 2010 9:57:38 PM

Create CopyIfNotAvailable part

Create CopyIfNotAvailable part

satya - Friday, February 05, 2010 10:47:51 PM

Can I use ValueDecoderPart

Probably not because, that part works this way


decodekey=key1
default=ddddd
translate.abc=xxxx
translate.xyz=www
resultname=key2

Explanation: if key1 is abc return key2 as xxxx. if key1 is xyz then return key2 as www, etc. if key1 is not there then return key2 as ddddd.

satya - Friday, February 05, 2010 11:00:09 PM

we have to use copyparameters part instead

we have to use copyparameters part instead

satya - Saturday, February 06, 2010 10:33:20 AM

rules for displaying editing folders


must be logged in
folder owner must be the logged in user

satya - Saturday, February 06, 2010 10:35:00 AM

rules on folder annotation

use javascript to get the owner name among the urls

satya - Saturday, February 06, 2010 10:36:24 AM

to copy ui or not to copy

whether we copy ui or not at least make the data access common. there may too much complexity in keeping the ui same. Try reusing first and see what happens.

satya - Saturday, February 06, 2010 10:36:55 AM

what is the release of aspire prior to this

Dec 5th, Build 27

satya - Saturday, February 06, 2010 11:02:15 AM

Created a conditionalsubstitution part

Created a conditionalsubstitution part

satya - Saturday, February 06, 2010 11:03:13 AM

IgnoreResult

This class is used to ignore the result from a pipeline when returned. Same effect if you were to return a null as well.

satya - Saturday, February 06, 2010 11:11:29 AM

next tasks


upgrade the data query
make sure the current site works
Create links to see two accounts
test it from there

satya - Saturday, February 06, 2010 11:24:45 AM

Here is an example of using if like expressions using "ifpart"

Here is an example of using if like expressions using "ifpart"

satya - Saturday, February 06, 2010 11:29:31 AM

delete backup-news.properties once it is tested

delete backup-news.properties once it is tested

satya - Saturday, February 06, 2010 11:44:04 AM

Sample syntax


request.NUFH.GetFolderOwner.classname=\
com.ai.parts.CopyParametersIfNotAvailablePart
request.NUFH.GetFolderOwner.originalNames=ownerUserId
request.NUFH.GetFolderOwner.newNames=folderOwner

satya - Saturday, February 06, 2010 11:50:42 AM

Using ConditionalSubstitutionPart


request.NUFH.GetFolderQualifier.classname=\
com.ai.parts.ConditionalSubstitutionPart

request.NUFH.GetFolderQualifier.expression=exists(folderid)
request.NUFH.GetFolderQualifier.if=\
f.folder_id = {folderid}
request.NUFH.GetFolderQualifier.else=\
f.folder_name = {folderName.quote}
request.NUFH.GetFolderQualifier.resultname=FolderQualifier

satya - Thursday, February 11, 2010 1:41:23 PM

Derive owneruserid from the domain..

if not available. This will let you share the content for internal urls.

satya - Thursday, February 11, 2010 1:48:57 PM

if function "same" should check for the following


public - not logged in
logged in - but different owner
logged in - same owner

satya - Thursday, February 11, 2010 1:50:07 PM

also


logged in, folder owner, 
but content displayed under a diff owner

satya - Thursday, February 11, 2010 1:58:27 PM

Open up the edit iff


logged in user
folder owner
domain owner

are all the same

satya - Wednesday, February 17, 2010 5:45:11 PM

First to test what: noteimptitlesurl


reports/folder-views/notes-imp-titles.html

satya - Wednesday, February 17, 2010 5:55:12 PM

Read SimpleBEEvaluator1 to understand boolean evaluations

Read SimpleBEEvaluator1 to understand boolean evaluations

satya - Thursday, February 18, 2010 12:49:36 PM

debug summary view

debug summary view

satya - Thursday, February 18, 2010 12:53:25 PM

make sure the following works for a public/non-logged in folder


titles
summaries
sort by date
sorty by name

Example would be android folder on my site when I am not logged in. Try the same when I am logged in on the same folder

satya - Friday, February 19, 2010 9:54:44 AM

when you specify a folder name it is reasonable to specify a folder owner

or you can possibly use a folder id with out the owner as the id uniquely identifies that folder

satya - Friday, February 19, 2010 12:45:03 PM

How to construct a proper folder url


dont use owneruserid
use downeruserid instead
specify folderowner

satya - Friday, February 19, 2010 12:55:16 PM

what should be its behavior

If a domain is defined it will present a proper background. If the domain is not defined it will go to the default owners background. Use owneruserid if the content is limited to one account for sure.

If you have a proper domain always use downeruserid

You can force a domain by explicitly specifying the owneruserid

In your documents, if you want your document to be shown in different domains avoid owneruserid

satya - Friday, February 19, 2010 12:59:09 PM

where are domains defined


properties/user_login.properties

satya - Saturday, February 20, 2010 9:07:15 AM

problem

There is a problem with blindly replacing the owneruserid based on the incoming domain. If a url is restricted and requires a login then dont replace the owneruserid.

satya - Saturday, February 20, 2010 9:18:13 AM

How can I get an authentication object?

How can I get an authentication object?

satya - Saturday, February 20, 2010 9:21:20 AM

Here is a sample code from base servlet


IAuthentication authObject =
(IAuthentication)
(AppObjects.getIFactory().getObject
    (AspireConstants.AUTHENTICATION_OBJECT,null));