cancel
Showing results for 
Search instead for 
Did you mean: 

Nominated invitation Syntax

sebastian1
Champ on-the-rise
Champ on-the-rise
Hey Guys,

If I want to add external Persons to my Share Site, the get an Email with a pre configured User name and Password.

The Username is like: Firstname_Lastname.

BUT I want it to look like: Firstname.Lastname

Can Anyone tell me which file I have to edit to achiev this?

What I found until now is the function inviteNominated..! Any Hints?

    /**
     * Create new nominated invitation to this web site
     * @return the new invitation
     */
    public ScriptInvitation<?> inviteNominated(String inviteeFirstName, String inviteeLastName, String inviteeEmail, String inviteeRole, String serverPath, String acceptUrl, String rejectUrl)
    {       
       Invitation invitation = [b]invitationService.inviteNominated[/b](inviteeFirstName, inviteeLastName, inviteeEmail, Invitation.ResourceType.WEB_SITE, getShortName(), inviteeRole, serverPath, acceptUrl, rejectUrl);
       return scriptInvitationFactory.toScriptInvitation(invitation);
    }
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
You can plug a user name generator into the invitation service.

By default it is a NameBasedUserNameGenerator and you can set the "namePattern".

sebastian1
Champ on-the-rise
Champ on-the-rise
You can plug a user name generator into the invitation service.

By default it is a NameBasedUserNameGenerator and you can set the "namePattern".

Thanks!
If Just want to change the default settings.
Where can I find this NameBasedUserNameGenerator on my Alfresco System?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.