After creating a node with custom type an propierties, all the information gest well in the repository, bur when seeing or editing propierties i cant see or modified the name, title or description I see the rest. ¿can anybody help?
this is the Alfresco Webservice use:
public Reference creaFichero(Reference reference, String name, String titul, String descripcion,
Properties info, String filetype, String encoding, String path,
InputStream ie) throws AuthenticationFault, RepositoryFault,
FileNotFoundException, RemoteException, IOException {
Reference theReference = reference;
ParentReference parentReference = new ParentReference(spacesStore,
theReference.getUuid(), theReference.getPath(),
Constants.ASSOC_CONTAINS, Constants.createQNameString(
Constants.NAMESPACE_CONTENT_MODEL, name));
int i = 3;
Content content = null;
try {
NamedValue[] properties = new NamedValue[info.size() + 3];
properties[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
properties[1] = Utils.createNamedValue(Constants.PROP_TITLE, titul);
properties[2] = Utils.createNamedValue(Constants.PROP_DESCRIPTION, descripcion);
for (Enumeration e = info.keys(); e.hasMoreElements(); i++) {
String key = (String) e.nextElement();
String value = (String) info.get(key);
/*
* if (key.indexOf(ConstantesAlfresco.INFO_NAMESPACE) >= 0)
* properties = Utils.createNamedValue(key, value); else
* properties =
* Utils.createNamedValue(ConstantesAlfresco.INFO_NAMESPACE +
* key, value);
*/
if (key.indexOf(ConstantesAlfresco.INFO_NAMESPACE) >= 0)
properties = Utils.createNamedValue(key, value);
else
properties = Utils.createNamedValue(Constants
.createQNameString("gadir.types.model", key),
value);
}
CMLCreate create = new CMLCreate(null, parentReference,
parentReference.getUuid(), parentReference
.getAssociationType(), parentReference
.getChildName(), Constants.TYPE_CONTENT, properties);
create.setType(Constants.createQNameString("gadir.types.model",
"Gadir")); // Cambia el type de un nodo para que sea de
// tipo Gadir
CML cml = new CML();
CMLCreate c = new CMLCreate();
cml.setCreate(new CMLCreate[] { create });
UpdateResult[] result = actualizaRepositoryService(cml);
Reference newContentNode = result[0].getDestination();
ContentFormat format = new ContentFormat(filetype, encoding);
FileInputStream file = null;
// si le pasamos el path
if (path != null && !path.equals("")) {
file = new FileInputStream(path);
InputStream viewStream = file;
byte[] bytes = convertToByteArray(viewStream);
content = escribirEnContentService(newContentNode, bytes,
format);
}
// en caso de que le pasemos el inputStream
else {
BufferedInputStream bie = new BufferedInputStream(ie);
InputStream viewStream = bie;
byte[] bytes = convertToByteArray(viewStream);
content = escribirEnContentService(newContentNode, bytes,
format);
}
return content.getNode();
} catch (RepositoryFault e) {
System.out.println("El fichero: " + name.toString()
+ " ya existe en este espacio del repositorio.");
return null;
}
}
thanks in advance.