public void setPrimary(boolean value) { if (value) { Documents.setPrimary(selectedObject(), currentObject); } }
public WOActionResults create() { Documents.createAndLink(selectedObject(), filePath, data); ec().saveChanges(); return null; }
public boolean primary() { return currentObject.equals(Documents.primary(selectedObject())); }
public NSArray<SWDocument> objects() { return Documents.relatedDocuments(selectedObject()); }