Documentation
¶
Index ¶
- type Env
- func (env *Env) AppMiddleware(h models.AppHandlerFunc) http.Handler
- func (env *Env) ArchiveStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) AuthenticateMiddleware(h http.Handler) http.Handler
- func (env *Env) AuthorizeMiddleware(h http.Handler) http.Handler
- func (env *Env) CaptchaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ContextMiddleware(h http.Handler) http.Handler
- func (env *Env) ConvertProductEmpiricalToLinearFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) CreateEntityHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) CreatePersonHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) CreateProductHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) CreateStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) CreateStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DeleteEntityHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DeletePersonHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DeleteProductHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DeleteStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DeleteStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DeleteTokenHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) DownloadExportHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) FakeHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) FormatProductEmpiricalFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetEntitiesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetEntityHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetEntityPeopleHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetEntityStockHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetExposedProductsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetOtherStoragesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetPeopleHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetPersonEntitiesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetPersonHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetPersonManageEntitiesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetPersonPermissionsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsCasNumberHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsCasNumbersHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsCeNumbersHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsClassOfCompoundsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsEmpiricalFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsEmpiricalFormulasHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsHazardStatementHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsHazardStatementsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsLinearFormulasHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsNameHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsNamesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsPhysicalStatesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsPrecautionaryStatementHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsPrecautionaryStatementsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsSignalWordHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsSignalWordsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsSymbolHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsSymbolsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetProductsSynonymsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetStoragesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetStoragesSuppliersHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetStoragesUnitsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetStoreLocationsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetTokenHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) GetWelcomeAnnounceHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) HeadersMiddleware(h http.Handler) http.Handler
- func (env *Env) HomeHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) LogingMiddleware(h http.Handler) http.Handler
- func (env *Env) MagicHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ResetHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ResetPasswordHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) RestoreStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ToogleProductBookmarkHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ToogleStorageBorrowingHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdateEntityHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdatePersonHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdatePersonpHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdateProductHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdateStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdateStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) UpdateWelcomeAnnounceHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VCreateEntityHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VCreatePersonHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VCreateProductHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VCreateStorageHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VCreateStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VGetEntitiesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VGetPeopleHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VGetProductsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VGetStoragesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VGetStoreLocationsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VLoginHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VTestHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VUpdatePersonPasswordHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) VWelcomeAnnounceHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ValidateEntityNameHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ValidatePersonEmailHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ValidateProductCasNumberHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ValidateProductCeNumberHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ValidateProductEmpiricalFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
- func (env *Env) ValidateProductNameHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
Env is a structure used to pass objects throughout the application.
func (*Env) AppMiddleware ¶
func (env *Env) AppMiddleware(h models.AppHandlerFunc) http.Handler
AppMiddleware is the application handlers wrapper handling the "func() *models.AppError" functions
func (*Env) ArchiveStorageHandler ¶
ArchiveStorageHandler archives the storage with the requested id
func (*Env) AuthenticateMiddleware ¶
AuthenticateMiddleware check that a valid JWT token is in the request, extract and store user informations in the Go http context
func (*Env) AuthorizeMiddleware ¶
AuthorizeMiddleware check that the user extracted from the JWT token by the AuthenticateMiddleware has the permissions to access the requested resource
func (*Env) CaptchaHandler ¶
CaptchaHandler returns a captcha image with an uuid
func (*Env) ContextMiddleware ¶
ContextMiddleware initialize the request context and setup initial variables
func (*Env) ConvertProductEmpiricalToLinearFormulaHandler ¶
func (env *Env) ConvertProductEmpiricalToLinearFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ConvertProductEmpiricalToLinearFormulaHandler returns the converted formula
func (*Env) CreateEntityHandler ¶
CreateEntityHandler creates the entity from the request form
func (*Env) CreatePersonHandler ¶
CreatePersonHandler creates the person from the request form
func (*Env) CreateProductHandler ¶
CreateProductHandler creates the product from the request form
func (*Env) CreateStorageHandler ¶
CreateStorageHandler creates the storage from the request form
func (*Env) CreateStoreLocationHandler ¶
func (env *Env) CreateStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
CreateStoreLocationHandler creates the store location from the request form
func (*Env) DeleteEntityHandler ¶
DeleteEntityHandler deletes the entity with the requested id
func (*Env) DeletePersonHandler ¶
DeletePersonHandler deletes the person with the requested id
func (*Env) DeleteProductHandler ¶
DeleteProductHandler deletes the store location with the requested id
func (*Env) DeleteStorageHandler ¶
DeleteStorageHandler deletes the storage with the requested id
func (*Env) DeleteStoreLocationHandler ¶
func (env *Env) DeleteStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
DeleteStoreLocationHandler deletes the store location with the requested id
func (*Env) DeleteTokenHandler ¶
DeleteTokenHandler actually reset the token cookie
func (*Env) DownloadExportHandler ¶
DownloadExportHandler serves the temporary export files
func (*Env) FakeHandler ¶
FakeHandler returns true
func (*Env) FormatProductEmpiricalFormulaHandler ¶
func (env *Env) FormatProductEmpiricalFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
FormatProductEmpiricalFormulaHandler returns the sorted formula
func (*Env) GetEntitiesHandler ¶
GetEntitiesHandler returns a json list of the entities matching the search criteria
func (*Env) GetEntityHandler ¶
GetEntityHandler returns a json of the entity with the requested id
func (*Env) GetEntityPeopleHandler ¶
GetEntityPeopleHandler return the entity managers
func (*Env) GetEntityStockHandler ¶
GetEntityStockHandler returns a json of the stock of the entity with the requested id
func (*Env) GetExposedProductsHandler ¶
GetExposedProductsHandler returns a json of the product with the requested id
func (*Env) GetOtherStoragesHandler ¶
GetOtherStoragesHandler returns a json list of the storages matching the search criteria in other entities with no storage details
func (*Env) GetPeopleHandler ¶
GetPeopleHandler returns a json list of the people matching the search criteria
func (*Env) GetPersonEntitiesHandler ¶
GetPersonEntitiesHandler returns a json of the entities of the person with the requested id
func (*Env) GetPersonHandler ¶
GetPersonHandler returns a json of the person with the requested id
func (*Env) GetPersonManageEntitiesHandler ¶
func (env *Env) GetPersonManageEntitiesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetPersonManageEntitiesHandler returns a json of the entities the person with the requested id is manager of
func (*Env) GetPersonPermissionsHandler ¶
func (env *Env) GetPersonPermissionsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetPersonPermissionsHandler returns a json of the permissions of the person with the requested id
func (*Env) GetProductHandler ¶
GetProductHandler returns a json of the product with the requested id
func (*Env) GetProductsCasNumberHandler ¶
func (env *Env) GetProductsCasNumberHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsCasNumberHandler returns a json of the formula matching the id
func (*Env) GetProductsCasNumbersHandler ¶
func (env *Env) GetProductsCasNumbersHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsCasNumbersHandler returns a json list of the cas numbers matching the search criteria
func (*Env) GetProductsCeNumbersHandler ¶
func (env *Env) GetProductsCeNumbersHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsCeNumbersHandler returns a json list of the ce numbers matching the search criteria
func (*Env) GetProductsClassOfCompoundsHandler ¶
func (env *Env) GetProductsClassOfCompoundsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsClassOfCompoundsHandler returns a json list of the classes of compounds matching the search criteria
func (*Env) GetProductsEmpiricalFormulaHandler ¶
func (env *Env) GetProductsEmpiricalFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsEmpiricalFormulaHandler returns a json of the formula matching the id
func (*Env) GetProductsEmpiricalFormulasHandler ¶
func (env *Env) GetProductsEmpiricalFormulasHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsEmpiricalFormulasHandler returns a json list of the empirical formulas matching the search criteria
func (*Env) GetProductsHandler ¶
GetProductsHandler returns a json list of the products matching the search criteria
func (*Env) GetProductsHazardStatementHandler ¶
func (env *Env) GetProductsHazardStatementHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsHazardStatementHandler returns a json of the hazardstatement matching the id
func (*Env) GetProductsHazardStatementsHandler ¶
func (env *Env) GetProductsHazardStatementsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsHazardStatementsHandler returns a json list of the hazard statements matching the search criteria
func (*Env) GetProductsLinearFormulasHandler ¶
func (env *Env) GetProductsLinearFormulasHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsLinearFormulasHandler returns a json list of the linear formulas matching the search criteria
func (*Env) GetProductsNameHandler ¶
GetProductsNameHandler returns a json of the name matching the id
func (*Env) GetProductsNamesHandler ¶
GetProductsNamesHandler returns a json list of the names matching the search criteria
func (*Env) GetProductsPhysicalStatesHandler ¶
func (env *Env) GetProductsPhysicalStatesHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsPhysicalStatesHandler returns a json list of the physical states matching the search criteria
func (*Env) GetProductsPrecautionaryStatementHandler ¶
func (env *Env) GetProductsPrecautionaryStatementHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsPrecautionaryStatementHandler returns a json of the precautionarystatement matching the id
func (*Env) GetProductsPrecautionaryStatementsHandler ¶
func (env *Env) GetProductsPrecautionaryStatementsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsPrecautionaryStatementsHandler returns a json list of the precautionary statements matching the search criteria
func (*Env) GetProductsSignalWordHandler ¶
func (env *Env) GetProductsSignalWordHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsSignalWordHandler returns a json of the signal word matching the id
func (*Env) GetProductsSignalWordsHandler ¶
func (env *Env) GetProductsSignalWordsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsSignalWordsHandler returns a json list of the signal words matching the search criteria
func (*Env) GetProductsSymbolHandler ¶
GetProductsSymbolHandler returns a json of the symbol matching the id
func (*Env) GetProductsSymbolsHandler ¶
GetProductsSymbolsHandler returns a json list of the symbols matching the search criteria
func (*Env) GetProductsSynonymsHandler ¶
func (env *Env) GetProductsSynonymsHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetProductsSynonymsHandler returns a json list of the symbols matching the search criteria
func (*Env) GetStorageHandler ¶
GetStorageHandler returns a json of the entity with the requested id
func (*Env) GetStoragesHandler ¶
GetStoragesHandler returns a json list of the storages matching the search criteria
func (*Env) GetStoragesSuppliersHandler ¶
func (env *Env) GetStoragesSuppliersHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
GetStoragesSuppliersHandler returns a json list of the suppliers matching the search criteria
func (*Env) GetStoragesUnitsHandler ¶
GetStoragesUnitsHandler returns a json list of the units matching the search criteria
func (*Env) GetStoreLocationHandler ¶
GetStoreLocationHandler returns a json of the store location with the requested id
func (*Env) GetStoreLocationsHandler ¶
GetStoreLocationsHandler returns a json list of the store locations matching the search criteria
func (*Env) GetTokenHandler ¶
GetTokenHandler authenticate the user and return a JWT token on success
func (*Env) GetWelcomeAnnounceHandler ¶
GetWelcomeAnnounceHandler returns a json of the welcome announce
func (*Env) HeadersMiddleware ¶
HeadersMiddleware is the application handlers wrapper managing the common response HTTP headers
func (*Env) HomeHandler ¶
HomeHandler serves the main page
func (*Env) LogingMiddleware ¶
LogingMiddleware is the application handlers wrapper logging the requests
func (*Env) MagicHandler ¶
MagicHandler handles the magical selector.
func (*Env) ResetHandler ¶
ResetHandler reset the user password from the token
func (*Env) ResetPasswordHandler ¶
ResetPasswordHandler send a password reinitialisation link by mail
func (*Env) RestoreStorageHandler ¶
RestoreStorageHandler restores the storage with the requested id
func (*Env) ToogleProductBookmarkHandler ¶
func (env *Env) ToogleProductBookmarkHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ToogleProductBookmarkHandler (un)bookmarks the product with id passed in the request vars for the logged user.
func (*Env) ToogleStorageBorrowingHandler ¶
func (env *Env) ToogleStorageBorrowingHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ToogleStorageBorrowingHandler (un)borrow the storage with id passed in the request vars for the logged user.
func (*Env) UpdateEntityHandler ¶
UpdateEntityHandler updates the entity from the request form
func (*Env) UpdatePersonHandler ¶
UpdatePersonHandler updates the person from the request form
func (*Env) UpdatePersonpHandler ¶
UpdatePersonpHandler updates the person password from the request form
func (*Env) UpdateProductHandler ¶
UpdateProductHandler updates the product from the request form
func (*Env) UpdateStorageHandler ¶
UpdateStorageHandler updates the storage from the request form
func (*Env) UpdateStoreLocationHandler ¶
func (env *Env) UpdateStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
UpdateStoreLocationHandler updates the store location from the request form
func (*Env) UpdateWelcomeAnnounceHandler ¶
func (env *Env) UpdateWelcomeAnnounceHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
UpdateWelcomeAnnounceHandler updates the entity from the request form
func (*Env) VCreateEntityHandler ¶
VCreateEntityHandler handles the entity creation page
func (*Env) VCreatePersonHandler ¶
VCreatePersonHandler handles the person creation page
func (*Env) VCreateProductHandler ¶
VCreateProductHandler handles the store location creation page
func (*Env) VCreateStorageHandler ¶
VCreateStorageHandler handles the storage creation page
func (*Env) VCreateStoreLocationHandler ¶
func (env *Env) VCreateStoreLocationHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
VCreateStoreLocationHandler handles the store location creation page
func (*Env) VGetEntitiesHandler ¶
VGetEntitiesHandler handles the entity list page
func (*Env) VGetPeopleHandler ¶
VGetPeopleHandler handles the people list page
func (*Env) VGetProductsHandler ¶
VGetProductsHandler handles the store location list page
func (*Env) VGetStoragesHandler ¶
VGetStoragesHandler handles the store location list page
func (*Env) VGetStoreLocationsHandler ¶
VGetStoreLocationsHandler handles the store location list page
func (*Env) VLoginHandler ¶
VLoginHandler returns the login page
func (*Env) VTestHandler ¶
VTestHandler is a test handler of course
func (*Env) VUpdatePersonPasswordHandler ¶
func (env *Env) VUpdatePersonPasswordHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
VUpdatePersonPasswordHandler handles the person password update page
func (*Env) VWelcomeAnnounceHandler ¶
WelcomeAnnounceHandler serves the welcome announce edition page
func (*Env) ValidateEntityNameHandler ¶
ValidateEntityNameHandler checks that the entity name does not already exist if an id != -1 is given is the request the validator ignore the name of the entity with this id
func (*Env) ValidatePersonEmailHandler ¶
func (env *Env) ValidatePersonEmailHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ValidatePersonEmailHandler checks that the person email does not already exist if an id is given is the request the validator ignore the email of the person with this id
func (*Env) ValidateProductCasNumberHandler ¶
func (env *Env) ValidateProductCasNumberHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ValidateProductCasNumberHandler checks that: - the cas number is valid - a product with the cas number and specificity does not already exist
func (*Env) ValidateProductCeNumberHandler ¶
func (env *Env) ValidateProductCeNumberHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ValidateProductCeNumberHandler checks that: - the ce number is valid
func (*Env) ValidateProductEmpiricalFormulaHandler ¶
func (env *Env) ValidateProductEmpiricalFormulaHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ValidateProductEmpiricalFormulaHandler checks that the product empirical formula is valid
func (*Env) ValidateProductNameHandler ¶
func (env *Env) ValidateProductNameHandler(w http.ResponseWriter, r *http.Request) *helpers.AppError
ValidateProductNameHandler checks that the product name is valid FIXME: not used yet