03-31-2010 10:41 AM
<aspects>
<aspect name = "fact:aspectFactura">
<title>Titulo</title>
<properties>
<property name="fact:Concepto">
<title>Concepto</title>
<type>d:text</type>
</property>
<property name="fact:Importe">
<title>Importe</title>
<type>d:float</type>
</property>
<property name="fact:Proveedor">
<title>Proveedor</title>
<type>d:text</type>
</property>
<property name="fact:NumFac">
<title>Numero de factura</title>
<type>d:int</type>
</property>
<property name="fact:FecFac">
<title>Fecha de la factura </title>
<type>d:date</type>
</property>
</properties>
</aspect>
</aspects>
04-05-2010 08:27 AM
private DictionaryServiceSoapBindingStub DSSBS = WebServiceFactory
.getDictionaryService();
…
public Map<String, String> getAllContentTypes() throws DictionaryFault,
RemoteException {
Map<String, String> contentTypesList = new HashMap<String, String>();
ClassDefinition[] cds = DSSBS.getClasses(null, null);
String contentClass = "{http://www.alfresco.org/model/content/1.0}content";
for (int i = 0; i < cds.length; i++) {
if (cds[i].getSuperClass() != null) {
if (cds[i].getName().equals(contentClass)) {
contentTypesList.put(cds[i].getName(), cds[i].getTitle());
}
if (cds[i].getSuperClass().equalsIgnoreCase(contentClass)) {
if (!cds[i].getName().startsWith(
"{http://www.alfresco.org/model/")) {
contentTypesList.put(cds[i].getName(), cds[i]
.getTitle());
}
}
}
}
return contentTypesList;
}
04-07-2010 06:44 AM
//
// User Model Definitions
//
static final String USER_MODEL_URI = "http://www.alfresco.org/model/user/1.0";
static final String USER_MODEL_PREFIX = "usr";
static final QName TYPE_USER = QName.createQName(USER_MODEL_URI, "user");
static final QName PROP_USER_USERNAME = QName.createQName(USER_MODEL_URI, "username");
static final QName PROP_PASSWORD = QName.createQName(USER_MODEL_URI, "password");
static final QName PROP_ENABLED = QName.createQName(USER_MODEL_URI, "enabled");
static final QName PROP_ACCOUNT_EXPIRES = QName.createQName(USER_MODEL_URI, "accountExpires");
static final QName PROP_ACCOUNT_EXPIRY_DATE = QName.createQName(USER_MODEL_URI, "accountExpiryDate");
static final QName PROP_CREDENTIALS_EXPIRE = QName.createQName(USER_MODEL_URI, "credentialsExpire");
static final QName PROP_CREDENTIALS_EXPIRY_DATE = QName.createQName(USER_MODEL_URI, "credentialsExpiryDate");
static final QName PROP_ACCOUNT_LOCKED = QName.createQName(USER_MODEL_URI, "accountLocked");
static final QName PROP_SALT = QName.createQName(USER_MODEL_URI, "salt");
04-07-2010 08:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.