@Override boolean isShared() { // Sometimes, a shareable and shared node is represented by a JcrNode rather than a JcrSharedNode. Therefore, // the share-related logic needs to be done here ... try { return isShareable() && sharedSet().getSize() > 1; } catch (RepositoryException e) { // Shouldn't really happen, but just in case ... throw new RuntimeException(e); } }
@Override boolean isShared() { // Sometimes, a shareable and shared node is represented by a JcrNode rather than a JcrSharedNode. Therefore, // the share-related logic needs to be done here ... try { return isShareable() && sharedSet().getSize() > 1; } catch (RepositoryException e) { // Shouldn't really happen, but just in case ... throw new RuntimeException(e); } }
if (sharedSet.getSize() != 1) {
if (sharedSet.getSize() != 1) {
if (sharedSet.getSize() <= 1) {
if (sharedSet.getSize() <= 1) {