/** * Returns <code>true</code> if Snow Owl is running on a server environment. * * @return */ public boolean isServer() { return services().isServerMode(); }
private Collection<Role> collectRoles(final IAuthorizationService authorizationService, final String userId) { if (!ApplicationContext.getInstance().isServerMode()) { return Sets.newHashSet(SpecialRole.ADMINISTRATOR); } else { return authorizationService.getRoles(userId); } }