Examples of DomainEntity


Examples of org.internna.iwebmvc.model.DomainEntity

     *
     * @param file the transferred data
     */
    @RemoteMethod
    @Override public Object upload(FileTransfer file) throws Exception {
      DomainEntity e = Document.fromFileTransfer(userManager.getActiveUser(), file);
      dao.create(e);
      return e;
    }
View Full Code Here

Examples of org.internna.iwebmvc.model.DomainEntity

    @RemoteMethod
    @Transactional
    @Override public void trash(Class<? extends DomainEntity> entityClass, UUID pk, String path) throws Exception {
        Assert.notNull(entityClass);
        if (pk != null) {
            DomainEntity entity = dao.find(entityClass, pk);
            if (entity != null) {
                PropertyDescriptor property = BeanUtils.getPropertyDescriptor(entityClass, path);
                if ((property != null) && (Document.class.isAssignableFrom(property.getPropertyType()))) {
                    Document doc = (Document) property.getReadMethod().invoke(entity);
                    if (doc != null) {
View Full Code Here

Examples of pt.ist.fenixframework.dml.DomainEntity

    }

    private static void addDomainClass(final JsonArray array, final DomainClass domainClass) {
        final JsonObject object = new JsonObject();
        object.addProperty("className", domainClass.getFullName());
        final DomainEntity superclass = domainClass.getSuperclass();
        if (superclass != null) {
            object.addProperty("superclassName", superclass.getFullName());
        }

        final JsonArray interfaces = new JsonArray();
        for (final Object oi : domainClass.getInterfacesNames()) {
            interfaces.add(new JsonPrimitive(oi.toString()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.