You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chris Papademos (JIRA)" <ji...@apache.org> on 2012/07/09 17:55:35 UTC

[jira] [Commented] (SLING-2491) How can I change the self.registration.enabled property in java?

    [ https://issues.apache.org/jira/browse/SLING-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409587#comment-13409587 ] 

Chris Papademos commented on SLING-2491:
----------------------------------------

I was able to access the self.registration.enabled property by using the SrcService.

	ServiceReference reference = context.getServiceReference( ScrService.class.getName() );
		ScrService scrService = (ScrService) context.getService(reference);
		Component component = scrService.getComponent(17);
		component.getProperties().put("self.registration.enabled", true);

After trying to add a new User, it still doesn't seem to work. self.registration.enabled is still on false. Anyone knows what's missing?
                
> How can I change the self.registration.enabled property in java?
> ----------------------------------------------------------------
>
>                 Key: SLING-2491
>                 URL: https://issues.apache.org/jira/browse/SLING-2491
>             Project: Sling
>          Issue Type: Task
>          Components: JCR
>    Affects Versions: JCR Jackrabbit User Manager 2.1.0
>         Environment: Xubuntu
>            Reporter: Chris Papagrigoriou
>
> Hey I kinda can't find out how to change the the self.registration.enabled property of the CreateUserServlet.
> I tried it via the ConfigurationAdmin but it doesn't seem to work.
> Can anyone tell me how to change it?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira