96979899100101102103
private static SocialWorkspaceService getSocialWorkspaceService() { try { return Framework.getService(SocialWorkspaceService.class); } catch (Exception e) { throw new ClientRuntimeException(e); } }
3536373839404142
protected static Object getDocProperty(DocumentModel doc, String xpath) { try { return doc.getPropertyValue(xpath); } catch (ClientException e) { throw new ClientRuntimeException(e); } }
4445464748495051
protected static void setDocProperty(DocumentModel doc, String xpath, Serializable value) { try { doc.setPropertyValue(xpath, value); } catch (ClientException e) { throw new ClientRuntimeException(e); } }
161162163164165166167168169170
}; try { runner.runUnrestricted(); } catch (ClientException e) { throw new ClientRuntimeException(e); } return socialWorkspaces; }
184185186187188189190191
if (finder.socialWorkspace != null) { return toSocialWorkspace(finder.socialWorkspace); } return null; } catch (ClientException e) { throw new ClientRuntimeException(e); } }
202203204205206207208209
} } } return null; } catch (ClientException e) { throw new ClientRuntimeException(e); } }
236237238239240241242243
public DocumentModel getSocialWorkspaceContainer(CoreSession session) { try { return session.getDocument(new PathRef( socialWorkspaceContainer.getPath())); } catch (ClientException e) { throw new ClientRuntimeException(e); } }
103104105106107108109110
for (Type type : allowedSubTypes) { types.add(type.getId()); } return types; } catch (Exception e) { throw new ClientRuntimeException(e); } }
259260261262263264265266
makeSocialWorkspacePublic(unrestrictedSocialWorkspace); } } }.runUnrestricted(); } catch (ClientException e) { throw new ClientRuntimeException(e); } }
111112113114115116117118