class Invoker(Context): ''' The invoker context. ''' # ---------------------------------------------------------------- Required call = requires(TypeCall) location = requires(str)
class Match(Context): ''' The match context. ''' # ---------------------------------------------------------------- Required gateway = requires(Context) groupsURI = requires(tuple)
class Repository(Context): ''' The repository context. ''' # ---------------------------------------------------------------- Required children = requires(list) actions = requires(list)
class Request(Context): ''' The request context. ''' # ---------------------------------------------------------------- Required decoderHeader = requires(IDecoderHeader) converter = requires(Converter)
class Request(Context): ''' The request context. ''' # ---------------------------------------------------------------- Required decoder = requires(Callable) decoderData = requires(dict)
class Decoding(Context): ''' The decoding context. ''' # ---------------------------------------------------------------- Defined parent = defines(Context, doc=''' @rtype: Context The parent decoding that this decoding is based on. ''') doDecode = defines(IDo, doc=''' @rtype: callable(target, value) Decodes the value into the provided target. @param target: Context Target context object used for decoding. @param value: dictionary{object: object} The dictionary value to be decoded. ''') isMandatory = defines(bool, doc=''' @rtype: boolean Indicates that the decoding needs to have a value provided. ''') # ---------------------------------------------------------------- Optional doBegin = optional(IDo) doEnd = optional(IDo) # ---------------------------------------------------------------- Required type = requires(Type) doSet = requires(IDo) doGet = requires(IDo)
class PermissionFilter(Context): ''' The permission context. ''' # ---------------------------------------------------------------- Required path = requires(Path) filtersModels = requires(list)
class Decoding(Context): ''' The model decoding context. ''' # ---------------------------------------------------------------- Defined name = defines(str, doc=''' @rtype: string The decoder name. ''') parent = defines(Context, doc=''' @rtype: Context The parent decoding that this decoding is based on. ''') children = defines(dict, doc=''' @rtype: dictionary{string: Context} The decoding children indexed by the decoding name. ''') doDecode = defines(IDo, doc=''' @rtype: callable(target, value) Decodes the value into the provided target. @param target: Context Target context object used for decoding. @param value: object The value to be decoded. ''') # ---------------------------------------------------------------- Required type = requires(Type) property = requires(TypeProperty) doSet = requires(IDo) doGet = requires(IDo)
class Document(Context): ''' The document context. ''' # ---------------------------------------------------------------- Required loader = requires(BaseLoader) data = requires(dict)
class Gateway(Context): ''' The gateway context. ''' # ---------------------------------------------------------------- Required navigate = requires(str) putHeaders = requires(dict)
class RepositoryRight(Repository): ''' The repository context. ''' # ---------------------------------------------------------------- Required rightName = requires(str) rightId = requires(int)
class Response(Context): ''' The response context. ''' # ---------------------------------------------------------------- Required obj = requires(object) errorInput = requires(InputError)
class RequestTarget(Context): ''' The request context. ''' # ---------------------------------------------------------------- Required nodesValues = requires(dict) converterPath = requires(Converter)
class Invoker(Context): ''' The invoker context. ''' # ---------------------------------------------------------------- Defined target = defines(TypeModel, doc=''' @rtype: TypeModel The target model of the caller. ''') isCollection = defines(bool, doc=''' @rtype: boolean If True it means that the invoker provides a collection. ''') isModel = defines(bool, doc=''' @rtype: boolean If True it means that the invoker provides a full model, attention the model can be in a collection. ''') modelInput = defines(Input, doc=''' @rtype: Input The input that is expected to receive a model object, this is only available for INSERT or UPDATE methods. ''') # ---------------------------------------------------------------- Required method = requires(int) inputs = requires(tuple) output = requires(Type) location = requires(str)
class WithTracking(Context): ''' Container for the tracking information. ''' lineNumber = requires(int) colNumber = requires(int) uri = requires(str)
class Invoker(Context): ''' The invoker context. ''' # ---------------------------------------------------------------- Required target = requires(TypeModel) doEncodePath = requires(IDo)
class DecodingItem(Context): ''' The decoding context. ''' # ---------------------------------------------------------------- Defined isMandatory = defines(bool, doc=''' @rtype: boolean Indicates that the decoding needs to have a value provided. ''') doBegin = defines(IDo, doc=''' @rtype: callable(target) Required to be triggered in order to begin the decoding. @param target: Context Target context object that the decoding begins on. ''') doDecode = defines(IDo, doc=''' @rtype: callable(target, value) Decodes the value into the provided target. @param target: Context Target context object used for decoding. @param value: tuple(object, object) The dictionary item value to be decoded. ''') doEnd = defines(IDo, doc=''' @rtype: callable(target) Required to be triggered in order to end the decoding. @param target: Context Target context object that the decoding ends on. ''') doGet = defines(IDo) # ---------------------------------------------------------------- Required parent = requires(Context) type = requires(Type) doSet = requires(IDo)
class RequestContent(Context): ''' The request content context. ''' # ---------------------------------------------------------------- Required type = requires(str) charSet = requires(str)
class Request(Context): ''' The request context. ''' # ---------------------------------------------------------------- Required scheme = requires(str) decoderHeader = requires(IDecoderHeader)
class Mapping(Context): ''' The index mapping context. ''' # ---------------------------------------------------------------- Required blockId = requires(int) block = requires(Block)
class SolicitationPutHeader(Context): ''' The solicitation context. ''' # ---------------------------------------------------------------- Required userId = requires(int) permissions = requires(Iterable)
class Node(Context): ''' The node context. ''' # ---------------------------------------------------------------- Required parent = requires(Context) invokersGet = requires(dict)
class Element(Context): ''' The element context. ''' # ---------------------------------------------------------------- Required name = requires(str) property = requires(TypeProperty)
class Invoker(Context): ''' The invoker context. ''' # ---------------------------------------------------------------- Required node = requires(Context) doEncodePath = requires(IDo)
class Decoding(Context): ''' The decoding context. ''' # ---------------------------------------------------------------- Required type = requires(Type) doDecode = requires(IDo)
class Element(Context): ''' The element context. ''' # ---------------------------------------------------------------- Required node = requires(Context) input = requires(Input)
class Request(Context): ''' The request context. ''' # ---------------------------------------------------------------- Required invoker = requires(Context) arguments = requires(dict)
class Create(Context): ''' The create decode context. ''' # ---------------------------------------------------------------- Required decodings = requires(list) pathInjected = requires(dict)
class Register(Context): ''' The register context. ''' # ---------------------------------------------------------------- Required invokers = requires(list) root = requires(Context)
class ResponseEncode(Context): ''' The response context. ''' # ---------------------------------------------------------------- Required encoderHeader = requires(IEncoderHeader) language = requires(str)