Document tracking

Contract purpose:

The purpose of the contract is to track a list of documents, their site location, folder address and section. Also the contract has a history of the document and the past changes of it.

Contract Parameters:

ownerAddress: the contract owner address

Exposed methods:

addDocument adds a new document

parameter nametypedetails
documentaddressthe document address
siteuintthe site id
locationuintthe location id
folderuintthe folder id
sectionuintthe section id

changeDocumentFolder sets new folder for the specified document

parameter nametypedetails
documentaddressthe document address
folderuintthe folder id

changeDocumentLocation sets new location for the specified document

parameter nametypedetails
documentaddressthe document address
locationuintthe location id

changeDocumentSection sets new section for the specified document

parameter nametypedetails
documentaddressthe document address
sectionuintthe section id

changeDocumentSite sets new site for the specified document

parameter nametypedetails
documentaddressthe document address
siteuintthe site id

moveDocument sets multiple parameters for the specified document

parameter nametypedetails
documentaddressthe document address
siteuintthe site id
locationuintthe location id
folderuintthe folder id
sectionuintthe section id

purgeDocument disables a specified document

parameter nametypedetails
documentaddressthe document address

history gets the history for a specified document address

parameter nametypedetails
documentaddressthe document address

owner gets the contract owner

 input parameters:

parameter nametypedetails
documentaddressthe document address
documentOwneraddressthe document owner

addOwner adds a new owner that can have an document disableDocument disable the document with address

 input parameters:

parameter nametypedetails
documentaddressthe document address

disableOwner disable the owner with address

 input parameters:

parameter nametypedetails
disabledOwneraddressthe owner address to disable

enableDocument enable the document with address

 input parameters:

parameter nametypedetails
documentaddressthe document address

modifyDocumentOwner modifies the specified document with the provided new owner address

 input parameters:

parameter nametypedetails
documentaddressthe document address
newOwneraddressthe new document owner

history gets the history changes for the provided document address

 input parameters:

parameter nametypedetails
documentaddressthe history for document address

owner gets the contract owner owners get if the provided address is an owner

 input parameters:

parameter nametypedetails
addressaddressthe owner address

Example:

Initial:ownerAddress: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c

Add document:

document: 0xdd870fa1b7c4700f2bd7f44238821c26f7392148
documentOwner: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract