Add SetNotInCatalog
This commit is contained in:
@@ -47,7 +47,9 @@ type AbstractObject struct {
|
|||||||
func (ri *AbstractObject) GetAccessor(request *tools.APIRequest) Accessor {
|
func (ri *AbstractObject) GetAccessor(request *tools.APIRequest) Accessor {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
func (r *AbstractObject) SetNotInCatalog(ok bool) {
|
||||||
|
r.NotInCatalog = ok
|
||||||
|
}
|
||||||
func (r *AbstractObject) IsNotInCatalog() bool {
|
func (r *AbstractObject) IsNotInCatalog() bool {
|
||||||
return r.NotInCatalog
|
return r.NotInCatalog
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ type ShallowDBObject interface {
|
|||||||
// DBObject is an interface that defines the basic methods for a DBObject
|
// DBObject is an interface that defines the basic methods for a DBObject
|
||||||
type DBObject interface {
|
type DBObject interface {
|
||||||
GenerateID()
|
GenerateID()
|
||||||
|
SetNotInCatalog(bool)
|
||||||
IsNotInCatalog() bool
|
IsNotInCatalog() bool
|
||||||
SetID(id string)
|
SetID(id string)
|
||||||
GetID() string
|
GetID() string
|
||||||
|
|||||||
Reference in New Issue
Block a user