Package org.fenixedu.academic.dto

Examples of org.fenixedu.academic.dto.LinkObject


                final List<LinkObject> objects = (List<LinkObject>) object;
                final Iterator<LinkObject> iterator = objects.iterator();

                while (iterator.hasNext()) {
                    final LinkObject each = iterator.next();

                    final ObjectLinkRenderer linkRenderer = new ObjectLinkRenderer();

                    linkRenderer.setText(each.getLabel());
                    linkRenderer.setLinkFormat(getLinkFormat());
                    linkRenderer.setModuleRelative(isModuleRelative());
                    linkRenderer.setContextRelative(isContextRelative());

                    blockContainer.addChild(RenderKit.getInstance().renderUsing(linkRenderer, getContext(), each,
View Full Code Here


    @Override
    public List<LinkObject> getFullPath() {
        final List<LinkObject> result = new ArrayList<LinkObject>();
        for (final Unit unit : searchFullPath()) {
            final LinkObject linkObject = new LinkObject();
            linkObject.setId(unit.getExternalId());
            linkObject.setLabel(unit.getName());
            linkObject.setMethod("viewUnit");
            result.add(linkObject);
        }

        final LinkObject linkObject = new LinkObject();
        linkObject.setId(getExternalCurricularCourse().getExternalId());
        linkObject.setLabel(getExternalCurricularCourse().getName());
        linkObject.setMethod("viewExternalCurricularCourse");
        result.add(linkObject);

        return result;
    }
View Full Code Here

    @Override
    public List<LinkObject> getFullPath() {
        final List<LinkObject> result = new ArrayList<LinkObject>();
        for (final Unit unit : searchFullPath()) {
            final LinkObject linkObject = new LinkObject();
            linkObject.setId(unit.getExternalId());
            linkObject.setLabel(unit.getName());
            linkObject.setMethod("viewUnit");
            result.add(linkObject);
        }
        return result;
    }
View Full Code Here

    private List<LinkObject> getPath(Space space) {
        List<LinkObject> result = new ArrayList<LinkObject>();
        if (space != null) {
            List<Space> spaceFullPath = SpaceUtils.getSpaceFullPath(space);
            for (Space surroundingSpace : spaceFullPath) {
                result.add(new LinkObject(surroundingSpace.getExternalId(), "viewSpace", surroundingSpace.getName()));
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.LinkObject

Copyright © 2018 www.massapicom. 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.