Examples of ObjectFields


Examples of org.fcrepo.server.types.gen.ObjectFields

        if (ofs != null && ofs.getObjectFields() != null) {
            data = new Object[ofs.getObjectFields().size()][displayFields.length];
            // while adding the pids to m_rowPids so they can be used later
            m_rowPids = new String[ofs.getObjectFields().size()];
            for (int i = 0; i < ofs.getObjectFields().size(); i++) {
                ObjectFields o = ofs.getObjectFields().get(i);
                m_rowPids[i] = o.getPid().getValue();
                for (int j = 0; j < displayFields.length; j++) {
                    data[i][j] = getValue(o, displayFields[j]);
                }
            }
        }
View Full Code Here

Examples of org.fcrepo.server.types.gen.ObjectFields

    public ObjectEditorFrame(String pid, int startTab)
            throws Exception {
        super(pid, true, true, true, true);
        m_pid = pid;
        // query the server for key object fields
        ObjectFields o =
                Util.getObjectFields(pid, new String[] {"pid", "state",
                        "label", "cDate", "mDate", "ownerId"});
        String state = o.getState() != null ? o.getState().getValue() : null;
        String label = o.getLabel() != null ? o.getLabel().getValue() : null;
        String cDate = o.getCDate() != null ? o.getCDate().getValue() : null;
        String mDate = o.getMDate() != null ? o.getMDate().getValue() : null;
        String ownerId = o.getOwnerId() != null ? o.getOwnerId().getValue() : null;

        doTitle(false);

        // set up dirtiness check on close
        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
View Full Code Here

Examples of org.fcrepo.server.types.gen.ObjectFields

            String[] ridComponents = r.getResource().split("\\/");
            String rid = ridComponents[ridComponents.length - 1];

            if (r.getStatus().getCode().contains(Status.STATUS_OK)
                    && r.getDecision() == Result.DECISION_PERMIT) {
                ObjectFields tmp = objects.get(rid);
                if (tmp != null) {
                    resultObjects.add(tmp);
                    if (logger.isDebugEnabled()) {
                        logger.debug("Adding: " + r.getResource() + "[" + rid
                                + "]");
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.