Examples of ClientRuntimeException


Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

    public DocumentModel getSocialWorkspaceContainer(CoreSession session) {
        try {
            return session.getDocument(new PathRef(
                    socialWorkspaceContainer.getPath()));
        } catch (ClientException e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

            for (Type type : allowedSubTypes) {
                types.add(type.getId());
            }
            return types;
        } catch (Exception e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

                        makeSocialWorkspacePublic(unrestrictedSocialWorkspace);
                    }
                }
            }.runUnrestricted();
        } catch (ClientException e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

    private static SocialWorkspaceService getSocialWorkspaceService() {
        try {
            return Framework.getService(SocialWorkspaceService.class);
        } catch (Exception e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

    protected UserManager getUserManager() {
        if (userManager == null) {
            try {
                userManager = Framework.getService(UserManager.class);
            } catch (Exception e) {
                throw new ClientRuntimeException(e);
            }
        }
        return userManager;
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

            doc.putContextData(ScopeType.REQUEST,
                    SocialWorkspaceListener.DO_NOT_PROCESS, true);
            doc = session.saveDocument(doc);
            socialWorkspace.setDocument(doc);
        } catch (ClientException e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

            acl.add(new ACE(socialWorkspace.getMembersGroupName(), READ));
            acl.add(ACE.BLOCK);
            newsItemsRoot.setACP(acp, true);
            session.saveDocument(newsItemsRoot);
        } catch (ClientException e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

            makePublicDashboardReadable(session, socialWorkspace);
            doc = session.saveDocument(doc);
            session.save();
            socialWorkspace.setDocument(doc);
        } catch (ClientException e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

            makePublicDashboardUnreadable(session, socialWorkspace);
            doc = session.saveDocument(doc);
            session.save();
            socialWorkspace.setDocument(doc);
        } catch (ClientException e) {
            throw new ClientRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.ClientRuntimeException

    private RelationshipService getRelationshipService() {
        if (relationshipService == null) {
            try {
                relationshipService = Framework.getService(RelationshipService.class);
            } catch (Exception e) {
                throw new ClientRuntimeException(e);
            }
        }
        if (relationshipService == null) {
            throw new ClientRuntimeException(
                    "RelationshipService is not registered.");
        }
        return relationshipService;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.