/** * Property names common to all resources. */ protected void initPropertyNames() { names = new DavPropertyNameSet(JcrDavPropertyNameSet.BASE_SET); }
public HttpPropfind(URI uri, int propfindType, int depth) throws IOException { this(uri, propfindType, new DavPropertyNameSet(), depth); }
protected DavPropertyNameSet createResultPropSpec() { return new DavPropertyNameSet(propfindProps); }
protected DavPropertyNameSet createResultPropSpec() { return new DavPropertyNameSet(propfindProps); }
public HttpPropfind(URI uri, int propfindType, int depth) throws IOException { this(uri, propfindType, new DavPropertyNameSet(), depth); }
DavPropertySet getPropertyNames(final URLFileName name) throws FileSystemException { return getProperties(name, DavConstants.PROPFIND_PROPERTY_NAMES, new DavPropertyNameSet(), false); }
DavPropertySet getProperties(final URLFileName name) throws FileSystemException { return getProperties(name, DavConstants.PROPFIND_ALL_PROP, new DavPropertyNameSet(), false); }
DavPropertySet getProperties(final URLFileName name) throws FileSystemException { return getProperties(name, DavConstants.PROPFIND_ALL_PROP, new DavPropertyNameSet(), false); }
DavPropertySet getPropertyNames(final URLFileName name) throws FileSystemException { return getProperties(name, DavConstants.PROPFIND_PROPERTY_NAMES, new DavPropertyNameSet(), false); }
DavPropertySet getProperties(final URLFileName name) throws FileSystemException { return getProperties(name, DavConstants.PROPFIND_ALL_PROP, new DavPropertyNameSet(), false); }
private SearchArgument(Element propSearch) { searchProps = new DavPropertyNameSet(DomUtil.getChildElement(propSearch, DavConstants.XML_PROP, DavConstants.NAMESPACE)); searchString = DomUtil.getChildText(propSearch, XML_MATCH, SecurityConstants.NAMESPACE); }
private SearchArgument(Element propSearch) { searchProps = new DavPropertyNameSet(DomUtil.getChildElement(propSearch, DavConstants.XML_PROP, DavConstants.NAMESPACE)); searchString = DomUtil.getChildText(propSearch, XML_MATCH, SecurityConstants.NAMESPACE); }
private SearchArgument(Element propSearch) { searchProps = new DavPropertyNameSet(DomUtil.getChildElement(propSearch, DavConstants.XML_PROP, DavConstants.NAMESPACE)); searchString = DomUtil.getChildText(propSearch, XML_MATCH, SecurityConstants.NAMESPACE); }
DavProperty getProperty(final URLFileName fileName, final DavPropertyName name) throws FileSystemException { final DavPropertyNameSet nameSet = new DavPropertyNameSet(); nameSet.add(name); final DavPropertySet propertySet = getProperties(fileName, nameSet, false); return propertySet.get(name); }
DavProperty getProperty(final URLFileName fileName, final DavPropertyName name) throws FileSystemException { final DavPropertyNameSet nameSet = new DavPropertyNameSet(); nameSet.add(name); final DavPropertySet propertySet = getProperties(fileName, nameSet, false); return propertySet.get(name); }
/** * @return A {@link MultiStatusResponse} with all property statuses. */ private MultiStatusResponse createPropStat() { DavPropertyNameSet propertyNameSet = new DavPropertyNameSet(); for (DavPropertyName propertyName : getPropertyNames()) { propertyNameSet.add(propertyName); } return new MultiStatusResponse(this, propertyNameSet); }
@Override public void setPrimaryType(NodeId nodeId, Name primaryNodeTypeName) throws RepositoryException { checkConsumed(); try { DavPropertySet setProperties = new DavPropertySet(); setProperties.add(createNodeTypeProperty(JcrRemotingConstants.JCR_PRIMARYNODETYPE_LN, new String[] {resolver.getJCRName(primaryNodeTypeName)})); String uri = getItemUri(nodeId, sessionInfo); HttpProppatch request = new HttpProppatch(uri, setProperties, new DavPropertyNameSet()); requests.add(request); } catch (IOException e) { throw new RepositoryException(e); } }
@Override public void setPrimaryType(NodeId nodeId, Name primaryNodeTypeName) throws RepositoryException { checkConsumed(); try { DavPropertySet setProperties = new DavPropertySet(); setProperties.add(createNodeTypeProperty(JcrRemotingConstants.JCR_PRIMARYNODETYPE_LN, new String[] {resolver.getJCRName(primaryNodeTypeName)})); String uri = getItemUri(nodeId, sessionInfo); HttpProppatch request = new HttpProppatch(uri, setProperties, new DavPropertyNameSet()); requests.add(request); } catch (IOException e) { throw new RepositoryException(e); } }
DavProperty getProperty(final URLFileName fileName, final DavPropertyName name) throws FileSystemException { final DavPropertyNameSet nameSet = new DavPropertyNameSet(); nameSet.add(name); final DavPropertySet propertySet = getProperties(fileName, nameSet, false); return propertySet.get(name); }
/** * Builds a DavPropertyNameSet with properties for versions * @return */ public static DavPropertyNameSet getFileVersionPropSet() { DavPropertyNameSet propSet = new DavPropertyNameSet(); propSet.add(DavPropertyName.GETCONTENTTYPE); propSet.add(DavPropertyName.RESOURCETYPE); propSet.add(DavPropertyName.GETCONTENTLENGTH); propSet.add(DavPropertyName.GETLASTMODIFIED); propSet.add(DavPropertyName.CREATIONDATE); propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_REMOTE_ID, Namespace.getNamespace(WebdavEntry.NAMESPACE_OC)); propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_SIZE, Namespace.getNamespace(WebdavEntry.NAMESPACE_OC)); return propSet; }