Package org.nuxeo.ecm.user.registration

Examples of org.nuxeo.ecm.user.registration.DocumentRegistrationInfo


    protected void handleSubscriptionRequest(SocialWorkspace socialWorkspace,
            Principal principal, boolean autoAccept) {
        UserRegistrationInfo userInfo = buildUserRegistrationInfo(
                socialWorkspace, (NuxeoPrincipal) principal);
        DocumentRegistrationInfo docInfo = buildDocumentRegistrationInfo(socialWorkspace);
        Map<String, Serializable> additionalInfo = new HashMap<String, Serializable>();
        try {
            getRegistrationService().submitRegistrationRequest(
                    SOCIAL_CONFIGURATION_NAME, userInfo, docInfo,
                    additionalInfo, EMAIL, autoAccept, principal.getName());
View Full Code Here


        }
    }

    private DocumentRegistrationInfo buildDocumentRegistrationInfo(
            SocialWorkspace socialWorkspace) {
        DocumentRegistrationInfo docInfo = new DocumentRegistrationInfo();
        docInfo.setDocumentId(socialWorkspace.getId());
        docInfo.setDocumentTitle(socialWorkspace.getTitle());
        return docInfo;
    }
View Full Code Here

TOP

Related Classes of org.nuxeo.ecm.user.registration.DocumentRegistrationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.