diff --git a/models/utils/abstracts.go b/models/utils/abstracts.go index 28e43a6..d9603e1 100755 --- a/models/utils/abstracts.go +++ b/models/utils/abstracts.go @@ -47,7 +47,9 @@ type AbstractObject struct { func (ri *AbstractObject) GetAccessor(request *tools.APIRequest) Accessor { return nil } - +func (r *AbstractObject) SetNotInCatalog(ok bool) { + r.NotInCatalog = ok +} func (r *AbstractObject) IsNotInCatalog() bool { return r.NotInCatalog } diff --git a/models/utils/interfaces.go b/models/utils/interfaces.go index 170a0c2..6c22382 100755 --- a/models/utils/interfaces.go +++ b/models/utils/interfaces.go @@ -18,6 +18,7 @@ type ShallowDBObject interface { // DBObject is an interface that defines the basic methods for a DBObject type DBObject interface { GenerateID() + SetNotInCatalog(bool) IsNotInCatalog() bool SetID(id string) GetID() string