/** * Create a new <code>DavPropertyNameSet</code> with the given initial values. * * @param initialSet */ public DavPropertyNameSet(DavPropertyNameSet initialSet) { addAll(initialSet); }
/** * Create a new <code>DavPropertyNameSet</code> with the given initial values. * * @param initialSet */ public DavPropertyNameSet(DavPropertyNameSet initialSet) { addAll(initialSet); }
/** * Create a new <code>DavPropertyNameSet</code> with the given initial values. * * @param initialSet */ public DavPropertyNameSet(DavPropertyNameSet initialSet) { addAll(initialSet); }
@Override protected void initPropertyNames() { super.initPropertyNames(); if (exists()) { names.addAll(JcrDavPropertyNameSet.VERSION_SET); } }
@Override protected void initPropertyNames() { super.initPropertyNames(); if (exists()) { names.addAll(JcrDavPropertyNameSet.VERSIONHISTORY_SET); } }
public ProppatchInfo(DavPropertySet setProperties, DavPropertyNameSet removeProperties) { if (setProperties == null || removeProperties == null) { throw new IllegalArgumentException("Neither setProperties nor removeProperties must be null."); } if (setProperties.isEmpty() && removeProperties.isEmpty()) { throw new IllegalArgumentException("Either setProperties or removeProperties can be empty; not both of them."); } this.changeList = null; this.setProperties = setProperties; this.removeProperties = removeProperties; this.propertyNames.addAll(removeProperties); for (DavPropertyName setName : setProperties.getPropertyNames()) { this.propertyNames.add(setName); } }
public ProppatchInfo(DavPropertySet setProperties, DavPropertyNameSet removeProperties) { if (setProperties == null || removeProperties == null) { throw new IllegalArgumentException("Neither setProperties nor removeProperties must be null."); } if (setProperties.isEmpty() && removeProperties.isEmpty()) { throw new IllegalArgumentException("Either setProperties or removeProperties can be empty; not both of them."); } this.changeList = null; this.setProperties = setProperties; this.removeProperties = removeProperties; this.propertyNames.addAll(removeProperties); for (DavPropertyName setName : setProperties.getPropertyNames()) { this.propertyNames.add(setName); } }
@Override protected void initPropertyNames() { super.initPropertyNames(); if (exists()) { DavPropertyNameSet propNames = (isMultiple() ? JcrDavPropertyNameSet.PROPERTY_MV_SET : JcrDavPropertyNameSet.PROPERTY_SET); names.addAll(propNames); } }
@Override protected void initPropertyNames() { super.initPropertyNames(); names.addAll(JcrDavPropertyNameSet.WORKSPACE_SET); if (SecurityUtils.supportsAccessControl(getRepositorySession())) { names.add(SecurityConstants.SUPPORTED_PRIVILEGE_SET); names.add(SecurityConstants.CURRENT_USER_PRIVILEGE_SET); } }
@Override protected void initPropertyNames() { super.initPropertyNames(); if (exists()) { names.addAll(JcrDavPropertyNameSet.EXISTING_ITEM_BASE_SET); try { if (item.getDepth() > 0) { names.add(JCR_PARENT); } } catch (RepositoryException e) { log.warn("Error while accessing node depth: " + e.getMessage()); } if (item.isNew()) { names.add(JCR_ISNEW); } else if (item.isModified()) { names.add(JCR_ISMODIFIED); } } else { names.addAll(JcrDavPropertyNameSet.ITEM_BASE_SET); } }
@Override protected void initPropertyNames() { super.initPropertyNames(); if (isVersionControlled()) { names.addAll(JcrDavPropertyNameSet.VERSIONABLE_SET); Node n = (Node) item; try { if (n.isCheckedOut()) { names.add(CHECKED_OUT); if (n.hasProperty(JcrConstants.JCR_PREDECESSORS)) { names.add(PREDECESSOR_SET); } if (n.hasProperty(JcrConstants.JCR_MERGEFAILED)) { names.add(AUTO_MERGE_SET); } // todo: checkout-fork, checkin-fork } else { names.add(CHECKED_IN); } } catch (RepositoryException e) { log.warn(e.getMessage()); } } }
@Override protected void initPropertyNames() { super.initPropertyNames(); if (exists()) { names.addAll(JcrDavPropertyNameSet.NODE_SET); if (isReferenceable()) { names.add(JCR_UUID); } if (hasPrimaryItem()) { names.add(JCR_PRIMARYITEM); } if (isOrderable()) { names.add(OrderingConstants.ORDERING_TYPE); } if (SecurityUtils.supportsAccessControl(getRepositorySession())) { names.add(SecurityConstants.SUPPORTED_PRIVILEGE_SET); names.add(SecurityConstants.CURRENT_USER_PRIVILEGE_SET); } } }
expected.addAll(WORKSPACE_SET);