diff --git a/.gitignore b/.gitignore index eb6d87a6..4f697dab 100644 --- a/.gitignore +++ b/.gitignore @@ -34,16 +34,8 @@ _cgo_export.* _testmain.go *.exe *.test -/dickens/dickens -/dickens/dickens-osx -/asimov/asimov -/asimov/asimov-osx /plugin-libreoffice/plugin-libreoffice /plugin-libreoffice/plugin-libreoffice-osx -/plugin-markdown/plugin-markdown -/plugin-markdown/plugin-markdown-osx -/plugin-tolkien/plugin-tolkien -/plugin-tolkien/plugin-tolkien-osx # Ember specific /app/dist diff --git a/documize/api/convert/apidocumizecom/init.go b/documize/api/convert/apidocumizecom/init.go index 17d5d190..3176b959 100644 --- a/documize/api/convert/apidocumizecom/init.go +++ b/documize/api/convert/apidocumizecom/init.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package apidocumizecom import ( diff --git a/documize/api/convert/apidocumizecom/msword.go b/documize/api/convert/apidocumizecom/msword.go index e00f8dff..4c3455bb 100644 --- a/documize/api/convert/apidocumizecom/msword.go +++ b/documize/api/convert/apidocumizecom/msword.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package apidocumizecom import ( diff --git a/documize/api/convert/convert.go b/documize/api/convert/convert.go index f71d936c..e5c94cff 100644 --- a/documize/api/convert/convert.go +++ b/documize/api/convert/convert.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package convert provides the gateway to document conversion native and plugin functionality, both in and out of the system. package convert diff --git a/documize/api/convert/convert_test.go b/documize/api/convert/convert_test.go index de3f528b..623d8981 100644 --- a/documize/api/convert/convert_test.go +++ b/documize/api/convert/convert_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package convert_test import ( diff --git a/documize/api/convert/documizeapi/documizeapi.go b/documize/api/convert/documizeapi/documizeapi.go index 281088b9..afed0d4a 100644 --- a/documize/api/convert/documizeapi/documizeapi.go +++ b/documize/api/convert/documizeapi/documizeapi.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documizeapi import ( diff --git a/documize/api/convert/excerpt/excerpt.go b/documize/api/convert/excerpt/excerpt.go index 91f8bd6d..70eeef93 100644 --- a/documize/api/convert/excerpt/excerpt.go +++ b/documize/api/convert/excerpt/excerpt.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package excerpt provides basic functionality to create excerpts of text in English. package excerpt diff --git a/documize/api/convert/excerpt/excerpt_test.go b/documize/api/convert/excerpt/excerpt_test.go index 20847486..cf861e23 100644 --- a/documize/api/convert/excerpt/excerpt_test.go +++ b/documize/api/convert/excerpt/excerpt_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package excerpt_test import "testing" diff --git a/documize/api/convert/html/doc.go b/documize/api/convert/html/doc.go index ca58a652..2d8fd850 100644 --- a/documize/api/convert/html/doc.go +++ b/documize/api/convert/html/doc.go @@ -1,2 +1,13 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package html documizes html files. package html diff --git a/documize/api/convert/html/html.go b/documize/api/convert/html/html.go index 6c4e32ed..c9fccc02 100644 --- a/documize/api/convert/html/html.go +++ b/documize/api/convert/html/html.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package html import ( diff --git a/documize/api/convert/html/html_test.go b/documize/api/convert/html/html_test.go index 382f7a05..22fd2f52 100644 --- a/documize/api/convert/html/html_test.go +++ b/documize/api/convert/html/html_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package html_test import ( diff --git a/documize/api/convert/md/md.go b/documize/api/convert/md/md.go index 2eb69475..96826cd4 100644 --- a/documize/api/convert/md/md.go +++ b/documize/api/convert/md/md.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package md import ( diff --git a/documize/api/endpoint/attachment_endpoint.go b/documize/api/endpoint/attachment_endpoint.go index 3381a94d..ca39cf2e 100644 --- a/documize/api/endpoint/attachment_endpoint.go +++ b/documize/api/endpoint/attachment_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/authentication_endpoint.go b/documize/api/endpoint/authentication_endpoint.go index 4b8a023e..d0038cc6 100644 --- a/documize/api/endpoint/authentication_endpoint.go +++ b/documize/api/endpoint/authentication_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/conversion_endpoint.go b/documize/api/endpoint/conversion_endpoint.go index 191fe3aa..6142d398 100644 --- a/documize/api/endpoint/conversion_endpoint.go +++ b/documize/api/endpoint/conversion_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/doc.go b/documize/api/endpoint/doc.go index 9cbf7b95..3b6da1df 100644 --- a/documize/api/endpoint/doc.go +++ b/documize/api/endpoint/doc.go @@ -1,2 +1,13 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package endpoint provides API endpoints for Documize. package endpoint diff --git a/documize/api/endpoint/document_endpoint.go b/documize/api/endpoint/document_endpoint.go index 298e28b1..858a07be 100644 --- a/documize/api/endpoint/document_endpoint.go +++ b/documize/api/endpoint/document_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/endpoint_test.go b/documize/api/endpoint/endpoint_test.go index b9769c78..21efb673 100644 --- a/documize/api/endpoint/endpoint_test.go +++ b/documize/api/endpoint/endpoint_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint // TestEndpoint is the entrypoint for all testing unit testing of this package. diff --git a/documize/api/endpoint/init.go b/documize/api/endpoint/init.go index dd8fb338..090e8ef1 100644 --- a/documize/api/endpoint/init.go +++ b/documize/api/endpoint/init.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/label_endpoint.go b/documize/api/endpoint/label_endpoint.go index fa750dc7..877fd05e 100644 --- a/documize/api/endpoint/label_endpoint.go +++ b/documize/api/endpoint/label_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/meta_endpoint.go b/documize/api/endpoint/meta_endpoint.go index d660638e..51075d75 100644 --- a/documize/api/endpoint/meta_endpoint.go +++ b/documize/api/endpoint/meta_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/models/models.go b/documize/api/endpoint/models/models.go index f46e4082..0ee54678 100644 --- a/documize/api/endpoint/models/models.go +++ b/documize/api/endpoint/models/models.go @@ -1,7 +1,18 @@ -package models +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com +// Package models describes the communication format between JS snd Go. // Models are not persisted entities - they are object models that are marshalled between the -// backend and the consumer (UI) +// backend and the consumer (UI). +package models import ( "github.com/documize/community/documize/api/entity" diff --git a/documize/api/endpoint/org_endpoint.go b/documize/api/endpoint/org_endpoint.go index 05e2255e..d3d05be4 100644 --- a/documize/api/endpoint/org_endpoint.go +++ b/documize/api/endpoint/org_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/page_endpoint.go b/documize/api/endpoint/page_endpoint.go index cd7972a2..6f7eda91 100644 --- a/documize/api/endpoint/page_endpoint.go +++ b/documize/api/endpoint/page_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/router.go b/documize/api/endpoint/router.go index 7432c15f..dd28d736 100644 --- a/documize/api/endpoint/router.go +++ b/documize/api/endpoint/router.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/sections_endpoint.go b/documize/api/endpoint/sections_endpoint.go index d1670184..9f69bbcf 100644 --- a/documize/api/endpoint/sections_endpoint.go +++ b/documize/api/endpoint/sections_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/templates_endpoint.go b/documize/api/endpoint/templates_endpoint.go index b5a40a94..9ef80c04 100644 --- a/documize/api/endpoint/templates_endpoint.go +++ b/documize/api/endpoint/templates_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/endpoint/user_endpoint.go b/documize/api/endpoint/user_endpoint.go index e5bf5e0b..ac5372a3 100644 --- a/documize/api/endpoint/user_endpoint.go +++ b/documize/api/endpoint/user_endpoint.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package endpoint import ( diff --git a/documize/api/entity/objects.go b/documize/api/entity/objects.go index 77f7bcbd..eafd70ca 100644 --- a/documize/api/entity/objects.go +++ b/documize/api/entity/objects.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package entity provides types that mirror database tables. package entity diff --git a/documize/api/mail/mailer.go b/documize/api/mail/mailer.go index 480910f0..8ec647ae 100644 --- a/documize/api/mail/mailer.go +++ b/documize/api/mail/mailer.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // jshint ignore:start package mail diff --git a/documize/api/mail/mailer_test.go b/documize/api/mail/mailer_test.go index 24801a2b..398cc269 100644 --- a/documize/api/mail/mailer_test.go +++ b/documize/api/mail/mailer_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package mail import ( diff --git a/documize/api/mail/smtp.go b/documize/api/mail/smtp.go index cc1e2ea9..a73bc856 100644 --- a/documize/api/mail/smtp.go +++ b/documize/api/mail/smtp.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + /* Elements of the software in this file were modified from github.com/jordan-wright/email and are subject to the licence below: diff --git a/documize/api/plugins/glick.go b/documize/api/plugins/glick.go index 7d597be2..4edfc02e 100644 --- a/documize/api/plugins/glick.go +++ b/documize/api/plugins/glick.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package plugins manages the plug-in componenets of the Documize system. package plugins diff --git a/documize/api/plugins/glick_test.go b/documize/api/plugins/glick_test.go index dcd00a71..65419216 100644 --- a/documize/api/plugins/glick_test.go +++ b/documize/api/plugins/glick_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package plugins import ( diff --git a/documize/api/request/account.go b/documize/api/request/account.go index df3b12e1..294a9464 100644 --- a/documize/api/request/account.go +++ b/documize/api/request/account.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/account_test.go b/documize/api/request/account_test.go index 29699aff..648d0468 100644 --- a/documize/api/request/account_test.go +++ b/documize/api/request/account_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/attachment.go b/documize/api/request/attachment.go index d0839a2b..31bbd86c 100644 --- a/documize/api/request/attachment.go +++ b/documize/api/request/attachment.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/attachment_test.go b/documize/api/request/attachment_test.go index 98eaa33d..7d791532 100644 --- a/documize/api/request/attachment_test.go +++ b/documize/api/request/attachment_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) diff --git a/documize/api/request/config.go b/documize/api/request/config.go index bf888f5a..790370c4 100644 --- a/documize/api/request/config.go +++ b/documize/api/request/config.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/context.go b/documize/api/request/context.go index 1bf4dad7..6cc69810 100644 --- a/documize/api/request/context.go +++ b/documize/api/request/context.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( @@ -14,7 +25,7 @@ import ( var rc = Context{} -// Context holds the context in which the client is dealing with Dickens. +// Context holds the context in which the client is dealing with Documize. type Context struct { AllowAnonymousAccess bool Authenticated bool diff --git a/documize/api/request/context_test.go b/documize/api/request/context_test.go index e85abd1b..dfc1fed8 100644 --- a/documize/api/request/context_test.go +++ b/documize/api/request/context_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/doc.go b/documize/api/request/doc.go index 29627896..32c405a3 100644 --- a/documize/api/request/doc.go +++ b/documize/api/request/doc.go @@ -1,2 +1,13 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package request handles database requests for Documize, mostly from the endpoints package. package request diff --git a/documize/api/request/document.go b/documize/api/request/document.go index 6c84ae4d..761da709 100644 --- a/documize/api/request/document.go +++ b/documize/api/request/document.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/document_test.go b/documize/api/request/document_test.go index 7c08508e..80529509 100644 --- a/documize/api/request/document_test.go +++ b/documize/api/request/document_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/domain.go b/documize/api/request/domain.go index dd9c7bfa..78ef82c7 100644 --- a/documize/api/request/domain.go +++ b/documize/api/request/domain.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/domain_test.go b/documize/api/request/domain_test.go index e411b2d0..52672bd2 100644 --- a/documize/api/request/domain_test.go +++ b/documize/api/request/domain_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import "testing" diff --git a/documize/api/request/init.go b/documize/api/request/init.go index 314f4407..0b848f7d 100644 --- a/documize/api/request/init.go +++ b/documize/api/request/init.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/init_test.go b/documize/api/request/init_test.go index 3ebdc170..1410d305 100644 --- a/documize/api/request/init_test.go +++ b/documize/api/request/init_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/label.go b/documize/api/request/label.go index c567155b..d08c5c77 100644 --- a/documize/api/request/label.go +++ b/documize/api/request/label.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/label_test.go b/documize/api/request/label_test.go index c8ce9dd3..367d67cf 100644 --- a/documize/api/request/label_test.go +++ b/documize/api/request/label_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/labelrole.go b/documize/api/request/labelrole.go index 9a3d7633..158df72c 100644 --- a/documize/api/request/labelrole.go +++ b/documize/api/request/labelrole.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/labelrole_test.go b/documize/api/request/labelrole_test.go index 9b21fbeb..528dbc41 100644 --- a/documize/api/request/labelrole_test.go +++ b/documize/api/request/labelrole_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/organization.go b/documize/api/request/organization.go index dc20e177..36323f48 100644 --- a/documize/api/request/organization.go +++ b/documize/api/request/organization.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/organization_test.go b/documize/api/request/organization_test.go index 75bb915c..fa675d4a 100644 --- a/documize/api/request/organization_test.go +++ b/documize/api/request/organization_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) diff --git a/documize/api/request/page.go b/documize/api/request/page.go index 3eb809c5..d0fac70a 100644 --- a/documize/api/request/page.go +++ b/documize/api/request/page.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/page_test.go b/documize/api/request/page_test.go index 5cccac74..1746c4c8 100644 --- a/documize/api/request/page_test.go +++ b/documize/api/request/page_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) import ( diff --git a/documize/api/request/search.go b/documize/api/request/search.go index a078099f..bd753b21 100644 --- a/documize/api/request/search.go +++ b/documize/api/request/search.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/setup.go b/documize/api/request/setup.go index 0c250437..806835ee 100644 --- a/documize/api/request/setup.go +++ b/documize/api/request/setup.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request // This file contains the code for initial set-up of a database diff --git a/documize/api/request/user.go b/documize/api/request/user.go index 689ac610..b5b83f57 100644 --- a/documize/api/request/user.go +++ b/documize/api/request/user.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request import ( diff --git a/documize/api/request/user_test.go b/documize/api/request/user_test.go index 3aff167b..f90ec6aa 100644 --- a/documize/api/request/user_test.go +++ b/documize/api/request/user_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package request /* TODO(Elliott) diff --git a/documize/api/store/local.go b/documize/api/store/local.go index 7e5ea817..d8f2f0fc 100644 --- a/documize/api/store/local.go +++ b/documize/api/store/local.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package store provides the implementation for a file system based storage provider. // This enables all document upload previews to be processed AND stored locally. package store diff --git a/documize/api/store/local_test.go b/documize/api/store/local_test.go index 04c845de..f4e561f3 100644 --- a/documize/api/store/local_test.go +++ b/documize/api/store/local_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package store import ( diff --git a/documize/api/store/store.go b/documize/api/store/store.go index e025f6af..b5cb2991 100644 --- a/documize/api/store/store.go +++ b/documize/api/store/store.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package store import ( diff --git a/documize/api/store/store_test.go b/documize/api/store/store_test.go index d2c0052e..530e5525 100644 --- a/documize/api/store/store_test.go +++ b/documize/api/store/store_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package store import ( diff --git a/documize/api/util/encoding.go b/documize/api/util/encoding.go index c2274905..c68cd994 100644 --- a/documize/api/util/encoding.go +++ b/documize/api/util/encoding.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package util import ( diff --git a/documize/api/util/encoding_test.go b/documize/api/util/encoding_test.go index c7c47f09..a69e407f 100644 --- a/documize/api/util/encoding_test.go +++ b/documize/api/util/encoding_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package util import "testing" diff --git a/documize/api/util/password.go b/documize/api/util/password.go index f4e910ae..813cfbce 100644 --- a/documize/api/util/password.go +++ b/documize/api/util/password.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package util import ( diff --git a/documize/api/util/uniqueid.go b/documize/api/util/uniqueid.go index dd3d8e32..f157c6a6 100644 --- a/documize/api/util/uniqueid.go +++ b/documize/api/util/uniqueid.go @@ -1,4 +1,15 @@ -// Package util provides utility functions specific to the Dickens http-end-point component of Documize. +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + +// Package util provides utility functions specific to the http-end-point component of Documize. package util import "github.com/rs/xid" diff --git a/documize/api/util/uniqueid_test.go b/documize/api/util/uniqueid_test.go index fba65fb2..fa936983 100644 --- a/documize/api/util/uniqueid_test.go +++ b/documize/api/util/uniqueid_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package util_test import ( diff --git a/documize/database/check.go b/documize/database/check.go index e456ef68..701399c5 100644 --- a/documize/database/check.go +++ b/documize/database/check.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package database import ( diff --git a/documize/database/create.go b/documize/database/create.go index 2f8ec7bf..478ad482 100644 --- a/documize/database/create.go +++ b/documize/database/create.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package database import ( diff --git a/documize/database/database_test.go b/documize/database/database_test.go index 23b97802..7a38d345 100644 --- a/documize/database/database_test.go +++ b/documize/database/database_test.go @@ -1,102 +1,13 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package database -/* -import ( - "strings" - "testing" - - "github.com/documize/community/documize/api/request" - - "github.com/documize/community/wordsmith/environment" -) - -// Part of the test code below from https://searchcode.com/codesearch/view/88832051/ -// -// Go MySQL Driver - A MySQL-Driver for Go's database/sql package -// -// Copyright 2013 The Go-MySQL-Driver Authors. All rights reserved. -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. - -func TestLongData(t *testing.T) { - environment.Parse() - var maxAllowedPacketSize int - rows, err := request.Db.Query("select @@max_allowed_packet") - if err != nil { - t.Fatal(err) - } - if rows.Next() { - if err = rows.Scan(&maxAllowedPacketSize); err != nil { - t.Fatal(err) - } - } - t.Logf("maxAllowedPacketSize=%d", maxAllowedPacketSize) - - maxAllowedPacketSize-- - - // don't get too ambitious - if maxAllowedPacketSize > 1<<25 { - maxAllowedPacketSize = 1 << 25 - } - - request.Db.MustExec("DROP TABLE IF EXISTS `test`;") - - request.Db.MustExec("CREATE TABLE test (value LONGBLOB)") - - in := strings.Repeat(`a`, maxAllowedPacketSize+1) - var out string - - // Long text data - const nonDataQueryLen = 28 // length query w/o value - inS := in[:maxAllowedPacketSize-nonDataQueryLen] - request.Db.MustExec("INSERT INTO test VALUES('" + inS + "')") - rows, err = request.Db.Query("SELECT value FROM test") - if err != nil { - t.Fatal(err) - } - if rows.Next() { - if err = rows.Scan(&out); err != nil { - t.Fatal(err) - } - if inS != out { - t.Fatalf("LONGBLOB: length in: %d, length out: %d", len(inS), len(out)) - } - if rows.Next() { - t.Error("LONGBLOB: unexpexted row") - } - } else { - t.Fatalf("LONGBLOB: no data") - } - - // Empty table - request.Db.MustExec("TRUNCATE TABLE test") - - // Long binary data - request.Db.MustExec("INSERT INTO test VALUES(?)", in) - rows, err = request.Db.Query("SELECT value FROM test WHERE 1=?", 1) - if err != nil { - t.Fatal(err) - } - if rows.Next() { - if err = rows.Scan(&out); err != nil { - t.Fatal(err) - } - if in != out { - t.Fatalf("LONGBLOB: length in: %d, length out: %d", len(in), len(out)) - } - if rows.Next() { - t.Error("LONGBLOB: unexpexted row") - } - } else { - if err = rows.Err(); err != nil { - t.Fatalf("LONGBLOB: no data (err: %s)", err.Error()) - } else { - t.Fatal("LONGBLOB: no data (err: )") - } - } - -} - -*/ diff --git a/documize/database/migrate.go b/documize/database/migrate.go index 11ec96d9..d7c031f3 100644 --- a/documize/database/migrate.go +++ b/documize/database/migrate.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package database import ( diff --git a/documize/documize.go b/documize/documize.go index 7037734b..524bee85 100644 --- a/documize/documize.go +++ b/documize/documize.go @@ -1,5 +1,15 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // This package provides Documize as a single executable. -// It should be run from the dickens directory, where the plugin.json file is and runs from. package main import ( diff --git a/documize/section/code.go b/documize/section/code.go index 77b8a20f..7cac61aa 100644 --- a/documize/section/code.go +++ b/documize/section/code.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section import ( diff --git a/documize/section/gemini.go b/documize/section/gemini.go index 33fb3a27..16acfda1 100644 --- a/documize/section/gemini.go +++ b/documize/section/gemini.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section import ( diff --git a/documize/section/markdown.go b/documize/section/markdown.go index cceb4a2c..09e8aa76 100644 --- a/documize/section/markdown.go +++ b/documize/section/markdown.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section import ( diff --git a/documize/section/section.go b/documize/section/section.go index 26522e9c..86d75365 100644 --- a/documize/section/section.go +++ b/documize/section/section.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section import ( diff --git a/documize/section/section_test.go b/documize/section/section_test.go index 1715baee..ed9cf129 100644 --- a/documize/section/section_test.go +++ b/documize/section/section_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section /* TODO(Elliott) diff --git a/documize/section/table.go b/documize/section/table.go index 1b8ff4b6..f24385a8 100644 --- a/documize/section/table.go +++ b/documize/section/table.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section import ( diff --git a/documize/section/wysiwyg.go b/documize/section/wysiwyg.go index d1d053d1..41df504a 100644 --- a/documize/section/wysiwyg.go +++ b/documize/section/wysiwyg.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package section import ( diff --git a/documize/web/README.md b/documize/web/README.md index 0ccc0b96..ab41c15e 100644 --- a/documize/web/README.md +++ b/documize/web/README.md @@ -1,8 +1,2 @@ -ASIMOV -====== - -The wiki web app. - -Only talks to Dickens. Uses github.com/elazarl/go-bindata-assetfs, which must be installed to 'go generate' to create bindata_assetfs.go diff --git a/documize/web/web.go b/documize/web/web.go index 80faaa19..7c1546f2 100644 --- a/documize/web/web.go +++ b/documize/web/web.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package web contains the Documize static web data. package web diff --git a/plugin-libreoffice/plugin.go b/plugin-libreoffice/plugin.go index 012381ca..980bfe8e 100644 --- a/plugin-libreoffice/plugin.go +++ b/plugin-libreoffice/plugin.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package main provides a simple Documize plugin for document conversions using libreoffice. package main diff --git a/sdk/LICENSE b/sdk/LICENSE deleted file mode 100644 index e24b8274..00000000 --- a/sdk/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Documize - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/sdk/README.md b/sdk/README.md index cb17f48a..a7e03764 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -5,7 +5,7 @@ The directory "documize" contains a command line utility to load files onto the Documize server. Run the command with "--help" to see the available flags. -## test suite +## test suite (currently disabled) The directory "exttest" contains a set of tests that are used both to test this package and to test the main documize code. @@ -15,4 +15,4 @@ In order to run these tests two environment variables must be set: which must be of the form ```:mick@jagger.com:demo123``` at present, with the Documize DB organistion record having the default (empty) subdomain. -There must also be a single folder named "Test" for code to find and use. +There must also be a single folder named "Test" for code to find and use. TODO(Elliott) remove this restriction. diff --git a/sdk/api_test.go b/sdk/api_test.go index 98165257..622e1156 100644 --- a/sdk/api_test.go +++ b/sdk/api_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize_test /* TODO(Elliott) import "testing" diff --git a/sdk/attachment.go b/sdk/attachment.go index 43f2055d..ab47e673 100644 --- a/sdk/attachment.go +++ b/sdk/attachment.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/auth.go b/sdk/auth.go index 21221dd5..212cd506 100644 --- a/sdk/auth.go +++ b/sdk/auth.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/document.go b/sdk/document.go index 6eb3372f..f0a0fce1 100644 --- a/sdk/document.go +++ b/sdk/document.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/documize/main.go b/sdk/documize/main.go index 6f08fed2..a34c52fc 100644 --- a/sdk/documize/main.go +++ b/sdk/documize/main.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package main import ( diff --git a/sdk/errors.go b/sdk/errors.go index c7912395..4da9c16f 100644 --- a/sdk/errors.go +++ b/sdk/errors.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import "strings" diff --git a/sdk/exttest/apibenchmark.go b/sdk/exttest/apibenchmark.go index d70455c4..d1ad552f 100644 --- a/sdk/exttest/apibenchmark.go +++ b/sdk/exttest/apibenchmark.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/apitest.go b/sdk/exttest/apitest.go index 0b154a4a..e40d1b18 100644 --- a/sdk/exttest/apitest.go +++ b/sdk/exttest/apitest.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( @@ -143,7 +154,7 @@ func testGetUpdDocument(t *testing.T, c *documize.Client, testFile, testData str if err != nil { t.Error(err) } - // NOTE updates to unknown documents do not generate errors, in dickens/request + // NOTE updates to unknown documents do not generate errors docData, err := c.GetDocument(testData) if err != nil { diff --git a/sdk/exttest/attachment.go b/sdk/exttest/attachment.go index 287d5896..a3fffa65 100644 --- a/sdk/exttest/attachment.go +++ b/sdk/exttest/attachment.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/auth.go b/sdk/exttest/auth.go index fbd0764b..8da61f35 100644 --- a/sdk/exttest/auth.go +++ b/sdk/exttest/auth.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/folders.go b/sdk/exttest/folders.go index 813973c8..6e031476 100644 --- a/sdk/exttest/folders.go +++ b/sdk/exttest/folders.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/loaddata.go b/sdk/exttest/loaddata.go index 0710b3b0..6317cb51 100644 --- a/sdk/exttest/loaddata.go +++ b/sdk/exttest/loaddata.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/loadfile.go b/sdk/exttest/loadfile.go index 17aa06e8..300c3e79 100644 --- a/sdk/exttest/loadfile.go +++ b/sdk/exttest/loadfile.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/pages.go b/sdk/exttest/pages.go index 28f685d0..4b881ae1 100644 --- a/sdk/exttest/pages.go +++ b/sdk/exttest/pages.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/templates.go b/sdk/exttest/templates.go index acdfe843..12958cc9 100644 --- a/sdk/exttest/templates.go +++ b/sdk/exttest/templates.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/exttest/users.go b/sdk/exttest/users.go index c227837c..384e701f 100644 --- a/sdk/exttest/users.go +++ b/sdk/exttest/users.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package exttest import ( diff --git a/sdk/folders.go b/sdk/folders.go index f9c18559..de4ea729 100644 --- a/sdk/folders.go +++ b/sdk/folders.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/loaddata.go b/sdk/loaddata.go index 6d5663fa..0d843085 100644 --- a/sdk/loaddata.go +++ b/sdk/loaddata.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/loadfile.go b/sdk/loadfile.go index 16b542b9..1c375146 100644 --- a/sdk/loadfile.go +++ b/sdk/loadfile.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/meta.go b/sdk/meta.go index f4a69e6a..32308ca6 100644 --- a/sdk/meta.go +++ b/sdk/meta.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/organization.go b/sdk/organization.go index 35c8afb5..61695bbf 100644 --- a/sdk/organization.go +++ b/sdk/organization.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/pages.go b/sdk/pages.go index f86651b4..22a1f9e4 100644 --- a/sdk/pages.go +++ b/sdk/pages.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/templates.go b/sdk/templates.go index 969a38c6..bc638928 100644 --- a/sdk/templates.go +++ b/sdk/templates.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/sdk/users.go b/sdk/users.go index b5df3415..fd7ed3c2 100644 --- a/sdk/users.go +++ b/sdk/users.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package documize import ( diff --git a/wordsmith/api/convertapi.go b/wordsmith/api/convertapi.go index 59fe173a..6cf03e8c 100644 --- a/wordsmith/api/convertapi.go +++ b/wordsmith/api/convertapi.go @@ -1,3 +1,13 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com // Package api provides the defininitions of types used for communication between different components of the Documize system. package api diff --git a/wordsmith/api/request.go b/wordsmith/api/request.go index 866e6c4a..30258d96 100644 --- a/wordsmith/api/request.go +++ b/wordsmith/api/request.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package api // ConversionJobRequest is the information used to set-up a conversion job. diff --git a/wordsmith/api/response.go b/wordsmith/api/response.go index 7d456f42..60adc2ae 100644 --- a/wordsmith/api/response.go +++ b/wordsmith/api/response.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package api import ( diff --git a/wordsmith/environment/environment.go b/wordsmith/environment/environment.go index 64caf177..82455d8c 100644 --- a/wordsmith/environment/environment.go +++ b/wordsmith/environment/environment.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package environment allow environment variables to be obtained from either the environment or the command line. // Environment variables are always uppercase, with the Prefix; flags are always lowercase without. package environment diff --git a/wordsmith/log/logger.go b/wordsmith/log/logger.go index c0241e56..f4f1545f 100644 --- a/wordsmith/log/logger.go +++ b/wordsmith/log/logger.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package log provides centralized logging for the Documize application. package log diff --git a/wordsmith/utility/beautify.go b/wordsmith/utility/beautify.go index be7736ea..0667d94f 100644 --- a/wordsmith/utility/beautify.go +++ b/wordsmith/utility/beautify.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/utility/beautify_test.go b/wordsmith/utility/beautify_test.go index 817457b6..509371c0 100644 --- a/wordsmith/utility/beautify_test.go +++ b/wordsmith/utility/beautify_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/command.go b/wordsmith/utility/command.go index 0cf4f7a7..a348aa22 100644 --- a/wordsmith/utility/command.go +++ b/wordsmith/utility/command.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/utility/command_test.go b/wordsmith/utility/command_test.go index 9e8aba3c..7bd6c828 100644 --- a/wordsmith/utility/command_test.go +++ b/wordsmith/utility/command_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/defclose.go b/wordsmith/utility/defclose.go index 77e8e44e..39bfdc19 100644 --- a/wordsmith/utility/defclose.go +++ b/wordsmith/utility/defclose.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "io" diff --git a/wordsmith/utility/defclose_test.go b/wordsmith/utility/defclose_test.go index 23f6b867..4e29cc8c 100644 --- a/wordsmith/utility/defclose_test.go +++ b/wordsmith/utility/defclose_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/doc.go b/wordsmith/utility/doc.go index d8f7b515..77cfc6bd 100644 --- a/wordsmith/utility/doc.go +++ b/wordsmith/utility/doc.go @@ -1,2 +1,13 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package utility contains utility functions used by the whole Documize ecosystem. package utility diff --git a/wordsmith/utility/html.go b/wordsmith/utility/html.go index 0454b511..6e41e34a 100644 --- a/wordsmith/utility/html.go +++ b/wordsmith/utility/html.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/utility/html_test.go b/wordsmith/utility/html_test.go index c4159540..64ec3ac9 100644 --- a/wordsmith/utility/html_test.go +++ b/wordsmith/utility/html_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/secrets.go b/wordsmith/utility/secrets.go index eed79f34..4db28a8c 100644 --- a/wordsmith/utility/secrets.go +++ b/wordsmith/utility/secrets.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/utility/secrets_test.go b/wordsmith/utility/secrets_test.go index f19631df..2e6086be 100644 --- a/wordsmith/utility/secrets_test.go +++ b/wordsmith/utility/secrets_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/slug.go b/wordsmith/utility/slug.go index cfaecb70..e7efc89e 100644 --- a/wordsmith/utility/slug.go +++ b/wordsmith/utility/slug.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/utility/slug_test.go b/wordsmith/utility/slug_test.go index 139296a0..6af37912 100644 --- a/wordsmith/utility/slug_test.go +++ b/wordsmith/utility/slug_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/user.go b/wordsmith/utility/user.go index e5dcb107..de63bc60 100644 --- a/wordsmith/utility/user.go +++ b/wordsmith/utility/user.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/utility/user_test.go b/wordsmith/utility/user_test.go index 3eb56912..c7ade6a4 100644 --- a/wordsmith/utility/user_test.go +++ b/wordsmith/utility/user_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "testing" diff --git a/wordsmith/utility/words.go b/wordsmith/utility/words.go index bbc238f2..641add1a 100644 --- a/wordsmith/utility/words.go +++ b/wordsmith/utility/words.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import "unicode" diff --git a/wordsmith/utility/words_test.go b/wordsmith/utility/words_test.go index e2cab11f..5ed767ec 100644 --- a/wordsmith/utility/words_test.go +++ b/wordsmith/utility/words_test.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + package utility import ( diff --git a/wordsmith/wordlists/en-2012/englishwords.go b/wordsmith/wordlists/en-2012/englishwords.go index 25a480ba..f23a3af1 100644 --- a/wordsmith/wordlists/en-2012/englishwords.go +++ b/wordsmith/wordlists/en-2012/englishwords.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package words was auto-generated ! // From base data at http://invokeit.wordpress.com/frequency-word-lists/ . // The word stems were produced using github.com/rookii/paicehusk . diff --git a/wordsmith/wordlists/makewordlist.go b/wordsmith/wordlists/makewordlist.go index adccecb0..509da38d 100644 --- a/wordsmith/wordlists/makewordlist.go +++ b/wordsmith/wordlists/makewordlist.go @@ -1,3 +1,14 @@ +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package main creates ordered lists of english words and their stems, // based on their frequency. package main @@ -86,6 +97,17 @@ func writeWords(wfs wordFreqSort, wfm wordFreqMap) { var err error fmt.Fprintf(&goprog, ` +// Copyright 2016 Documize Inc. . All rights reserved. +// +// This software (Documize Community Edition) is licensed under +// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html +// +// You can operate outside the AGPL restrictions by purchasing +// Documize Enterprise Edition and obtaining a commercial license +// by contacting . +// +// https://documize.com + // Package words was auto-generated ! // From base data at http://invokeit.wordpress.com/frequency-word-lists/ . // The word stems were produced using github.com/rookii/paicehusk .