…
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
ParentReference companyHomeParent = new ParentReference(storeRef, null, path, Constants.ASSOC_CONTAINS, Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, contentName + timeStamp));
// Create an array of NamedValue objects with the props we want to set
NamedValue nameValue = Utils.createNamedValue(Constants.PROP_NAME, contentName + " (" + timeStamp + ")");
NamedValue status = Utils.createNamedValue(Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, InvoiceModel.PROP_STATUS_STRING), "offen");
NamedValue kostenstelle = Utils.createNamedValue(Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, InvoiceModel.PROP_KOSTENSTELLE_STRING), "Softwareentwicklung");
NamedValue rechnungsNr = Utils.createNamedValue(Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, InvoiceModel.PROP_RE_NR_STRING), "127676DE2010");
NamedValue[] contentProps = new NamedValue[] {nameValue, status, kostenstelle, rechnungsNr};
…
faultDetail:
{http://www.alfresco.org/ws/service/repository/1.0}RepositoryFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalArgumentException: Class {invoice.model}{http://www.alfresco.org/model/content/1.0}content has not been defined in the data dictionary</ns1:message>
{http://xml.apache.org/axis/}exceptionName:org.alfresco.repo.webservice.repository.RepositoryFault
{http://xml.apache.org/axis/}stackTrace:
at org.alfresco.repo.webservice.repository.RepositoryWebService.update(RepositoryWebService.java:341)
…
Archive content from product discussions in German.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.