Search in sources :

Example 11 with ViewColumn

use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.

the class View method copyColumn.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#copyColumn(lotus.domino.ViewColumn)
	 */
@Override
public ViewColumn copyColumn(final lotus.domino.ViewColumn sourceColumn) {
    try {
        ViewColumn result = fromLotus(getDelegate().copyColumn(toLotus(sourceColumn)), ViewColumn.SCHEMA, this);
        flushCaches();
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : NotesException(lotus.domino.NotesException) ViewColumn(org.openntf.domino.ViewColumn)

Example 12 with ViewColumn

use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.

the class View method getColumnMap.

/* (non-Javadoc)
	 * @see org.openntf.domino.ext.View#getColumnMap()
	 */
@Override
public Map<String, org.openntf.domino.ViewColumn> getColumnMap() {
    if (columnMap_ == null) {
        columnMap_ = new LinkedHashMap<String, org.openntf.domino.ViewColumn>();
        Vector<ViewColumn> columns = getColumns();
        if (columns != null && !columns.isEmpty()) {
            for (ViewColumn column : columns) {
                columnMap_.put(column.getItemName(), column);
            }
        }
    }
    return columnMap_;
}
Also used : ViewColumn(org.openntf.domino.ViewColumn)

Example 13 with ViewColumn

use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.

the class View method copyColumn.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#copyColumn(java.lang.String, int)
	 */
@Override
public ViewColumn copyColumn(final String sourceColumn, final int destinationIndex) {
    try {
        ViewColumn result = fromLotus(getDelegate().copyColumn(sourceColumn, destinationIndex), ViewColumn.SCHEMA, this);
        flushCaches();
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : NotesException(lotus.domino.NotesException) ViewColumn(org.openntf.domino.ViewColumn)

Example 14 with ViewColumn

use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.

the class View method getCategoryTree.

public Map<Object, Object> getCategoryTree() {
    if (!isCategorized()) {
        return null;
    }
    Map<Object, Object> result = new LinkedHashMap<Object, Object>();
    Vector<ViewColumn> columns = getColumns();
    @SuppressWarnings("unused") int categoryCount = 0;
    for (ViewColumn column : columns) {
        if (column.isCategory()) {
            categoryCount++;
        }
    }
    // for ()
    return result;
}
Also used : ViewColumn(org.openntf.domino.ViewColumn) LinkedHashMap(java.util.LinkedHashMap)

Example 15 with ViewColumn

use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.

the class View method createColumn.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createColumn()
	 */
@Override
public ViewColumn createColumn() {
    try {
        ViewColumn result = fromLotus(getDelegate().createColumn(), ViewColumn.SCHEMA, this);
        flushCaches();
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : NotesException(lotus.domino.NotesException) ViewColumn(org.openntf.domino.ViewColumn)

Aggregations

ViewColumn (org.openntf.domino.ViewColumn)15 NotesException (lotus.domino.NotesException)8 View (org.openntf.domino.View)4 ArrayList (java.util.ArrayList)3 LinkedHashMap (java.util.LinkedHashMap)3 JsonJavaObject (com.ibm.commons.util.io.json.JsonJavaObject)2 JsonObject (com.ibm.commons.util.io.json.JsonObject)2 Edge (com.tinkerpop.blueprints.Edge)2 Vertex (com.tinkerpop.blueprints.Vertex)2 EdgeFrame (com.tinkerpop.frames.EdgeFrame)2 VertexFrame (com.tinkerpop.frames.VertexFrame)2 Method (java.lang.reflect.Method)2 List (java.util.List)2 Map (java.util.Map)2 Set (java.util.Set)2 Database (org.openntf.domino.Database)2 Session (org.openntf.domino.Session)2 UserAccessException (org.openntf.domino.exceptions.UserAccessException)2 DEdgeList (org.openntf.domino.graph2.DEdgeList)2 FramedEdgeList (org.openntf.domino.graph2.annotations.FramedEdgeList)2