sessionAsSignerWithFullAccess for access notesdocument with reader field - xpages

I have a database with documents with readers field where there are the signer as only Reader.
I need to open an Xpages for a public access that show evenry document in edit-mode with URL:
http://PATHDB/Edit.xsp?action=editDocument&documentId=UNID
There are a solution for open the datasource with sessionasSigner credential and show and edit the fields?
Tnx

Here you can find an example how this can be realized:
http://hasselba.ch/blog/?p=723

How about using a managed bean instead of a document datasource and build all the logic into that? Gives you full control over how the data is retrieved/ stored and should solve the issue you're having.
You can start with this article on how to use managed beans in XPages.

Related

How do I access login information in Hybris?

I need to extend my Backoffice login form and add two new fields to it. Then I need to access the login info in my Java code.
Extending Backoffice Login Page says I need to use LoginInformationHandler.
I haven't found information on how to do this. Should I inject it as Spring bean? I can't see configuration for it in spring-xml files in my application or OOTB. The only constructor available needs TypedSettingsMap loginInfo, which would just create new LoginInfoHandler or something like that.
So, what's the solution for this?
Yes, LoginInformationHandler is a service that you can inject into your service / facade.
Then, you would need to get the data like this:
loginInformationHandler.getLoginInformation(“tenant”);

set databaseName property for XPages app on Bluemix

I am testing the XPages runtime on Bluemix but have some questions regarding defining the datasources.
So I took the teamroom application as example. In custom control addMember.xsp as Data Source is set a Domino Document. For the application is have selected 'Other' and computed the value as followed:
bluemixContext.getDataService().findDataBaseName()
Unfortunately when I test this code (members.xsp, Add Member button) after submitting no document is created in the database.
What am I doing wrong?
there is a mixture in the form aliases

xpages: retrieving database icon

I want to rewrite the lotus notes workspace using xpages.
So far i am successful but one feature is giving me quit a headache.
How can i access the database icon of a lotus notes application.
I tried to access: http://notespath.mydomain.com/$icon. That problem with that is that
it is not using the login from the current session to access the database and
retrieve the icon. Instead it tries to get it using the anonymous id. If the
anonymous id has no access to the database i get a popup to login.
My question is: Is possible to do this with the user that is logged in to the xpage
or is there is a way to export the database icon into a notes document.
Try following instructions here:
How to extract Lotus Notes database icon?
This should give you a method to get to the DXLExporter, and it looks like the icon is in the IconBitmap object. You're still going to get .ico files out though, which aren't ideal, but could be a good starting point for what you're trying to do here.
As Aaron Brake commented, XPages engine cannot access old Domino URL format for icon. Also see this: Image URL when previewed in Notes and in Web Browser
In our applications we use dedicated 32x32 PNG image resource (img_DBIcon) which is used in XPages. Developers need to maintain this image resource.
What´s about if you change your URL to a database icon??
Don´t use http://notespath.mydomain.com/$icon
Try http://notespath.mydomain.com/DB.nsf/$icon

Client Object Model access to Custom User Properties

I've setup up a custom user property via central admin and set the value on a couple of my users. That said when I query the User Information List using Query Builder I'm not seeing values for the field. I've even tried specifying the fields to return via ViewFields.
Anyone have any experience with this? Any other suggestions?
Thanks!
Casey
i've also searched a while, but the closed i came to was this... i ended up using the UserProfileService instead, like described in this article.

Sharepoint 2007 Userlist custom property

I have a custom event handler on a wiki page, which should add a Tag to a custom coloumn which I attached to the Users List.
The problem is how can I obtain a reference to the List in a event.
It doesn't seem to be in the Profile of the profile manager and accessing it with Spweb.Lists["Userinformationlist"] gives me an error for non Admin Users.
Thanks for any advice
You can use SPSecurity.RunWithElevatedPrivileges, check this out: Elegant SPSite Elevation

Resources