@Override public DavProperty getProperty( DavPropertyName name ) { return getProperties().get( name ); }
/** * Retrieves the property with the specified <code>name</code> and the * default WebDAV {@link org.apache.jackrabbit.webdav.DavConstants#NAMESPACE namespace}. * * @param name The name of the property to retrieve * * @return The desired property or <code>null</code> */ public DavProperty<?> get(String name) { return get(DavPropertyName.create(name)); }
/** * Retrieves the property with the specified <code>name</code> and * <code>namespace</code>. * * @param name The name of the property to retrieve * @param namespace The namespace of the property to retrieve * * @return The desired property or <code>null</code> */ public DavProperty get(String name, Namespace namespace) { return get(DavPropertyName.create(name, namespace)); }
@Override public DavProperty getProperty( DavPropertyName name ) { initProperties(); return properties.get( name ); }
/** * Retrieves the property with the specified <code>name</code> and the * default WebDAV {@link org.apache.jackrabbit.webdav.DavConstants#NAMESPACE namespace}. * * @param name The name of the property to retrieve * * @return The desired property or <code>null</code> */ public DavProperty<?> get(String name) { return get(DavPropertyName.create(name)); }
/** * @see DavResource#getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName) */ public DavProperty<?> getProperty(DavPropertyName name) { initProperties(); return properties.get(name); }
/** * Retrieves the property with the specified <code>name</code> and * <code>namespace</code>. * * @param name The name of the property to retrieve * @param namespace The namespace of the property to retrieve * * @return The desired property or <code>null</code> */ public DavProperty<?> get(String name, Namespace namespace) { return get(DavPropertyName.create(name, namespace)); }
String getUniqueID(DavPropertySet propSet) { DavProperty<?> prop = propSet.get(JcrRemotingConstants.JCR_UUID_LN, ItemResourceConstants.NAMESPACE); if (prop != null) { return prop.getValue().toString(); } else { return null; } }
/** * Retrieves the property with the specified <code>name</code> and the * default WebDAV {@link org.apache.jackrabbit.webdav.DavConstants#NAMESPACE namespace}. * * @param name The name of the property to retrieve * * @return The desired property or <code>null</code> */ public DavProperty get(String name) { return get(DavPropertyName.create(name)); }
/** * Retrieves the property with the specified <code>name</code> and * <code>namespace</code>. * * @param name The name of the property to retrieve * @param namespace The namespace of the property to retrieve * * @return The desired property or <code>null</code> */ public DavProperty<?> get(String name, Namespace namespace) { return get(DavPropertyName.create(name, namespace)); }
String getUniqueID(DavPropertySet propSet) { DavProperty<?> prop = propSet.get(JcrRemotingConstants.JCR_UUID_LN, ItemResourceConstants.NAMESPACE); if (prop != null) { return prop.getValue().toString(); } else { return null; } }
@Override public DavProperty getProperty(DavPropertyName name) { return getProperties().get(name); }
int getIndex(DavPropertySet propSet) { int index = Path.INDEX_UNDEFINED; DavProperty<?> indexProp = propSet.get(JcrRemotingConstants.JCR_INDEX_LN, ItemResourceConstants.NAMESPACE); if (indexProp != null && indexProp.getValue() != null) { index = Integer.parseInt(indexProp.getValue().toString()); } return index; }
int getIndex(DavPropertySet propSet) { int index = Path.INDEX_UNDEFINED; DavProperty<?> indexProp = propSet.get(JcrRemotingConstants.JCR_INDEX_LN, ItemResourceConstants.NAMESPACE); if (indexProp != null && indexProp.getValue() != null) { index = Integer.parseInt(indexProp.getValue().toString()); } return index; }
ItemInfoImpl(DavPropertySet propSet, NamePathResolver resolver) throws NameException, NamespaceException { DavProperty<?> pathProp = propSet.get(JcrRemotingConstants.JCR_PATH_LN, ItemResourceConstants.NAMESPACE); String jcrPath = pathProp.getValue().toString(); path = resolver.getQPath(jcrPath); }
ItemInfoImpl(DavPropertySet propSet, NamePathResolver resolver) throws NameException, NamespaceException { DavProperty<?> pathProp = propSet.get(JcrRemotingConstants.JCR_PATH_LN, ItemResourceConstants.NAMESPACE); String jcrPath = pathProp.getValue().toString(); path = resolver.getQPath(jcrPath); }
/** * Convenience method to return the Calendar from the Response object. * @param response Response to retrieve the Calendar from. * @return Calendar retrieved from Response */ public static Calendar getCalendarfromResponse(MultiStatusResponse response){ return getCalendarfromProperty(response.getProperties(CalDAVStatus.SC_OK).get(CalDAVConstants.DNAME_CALENDAR_DATA)); }
/** * Convenience method to return the ETag from the Response object. * @param response Response to retrieve the ETag from. * @return ETag String */ public static String getEtagfromResponse(MultiStatusResponse response){ return getEtagfromProperty(response.getProperties(CalDAVStatus.SC_OK).get(DavPropertyName.GETETAG)); }
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); }