6 #ifndef __SHOW_SECURITY_H__ 7 #define __SHOW_SECURITY_H__ 28 names(std::vector<std::string>()),
29 options(std::map<std::string, std::string>())
44 ShowSecurityRequest(
const std::vector<std::string>& names_,
const std::map<std::string, std::string>& options_):
51 std::map<std::string, std::string>
options;
61 ::avro::encode(e, v.
names);
67 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
69 const std::vector<size_t> fo = rd->fieldOrder();
71 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
76 ::avro::decode(d, v.
names);
90 ::avro::decode(d, v.
names);
116 types(std::map<std::string, std::string>()),
117 roles(std::map<std::string, std::vector<std::string> >()),
118 permissions(std::map<std::string, std::vector<std::map<std::string, std::string> > >())
122 std::map<std::string, std::string>
types;
123 std::map<std::string, std::vector<std::string> >
roles;
124 std::map<std::string, std::vector<std::map<std::string, std::string> > >
permissions;
134 ::avro::encode(e, v.
types);
135 ::avro::encode(e, v.
roles);
141 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
143 const std::vector<size_t> fo = rd->fieldOrder();
145 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
150 ::avro::decode(d, v.
types);
154 ::avro::decode(d, v.
roles);
168 ::avro::decode(d, v.
types);
169 ::avro::decode(d, v.
roles);
std::map< std::string, std::vector< std::map< std::string, std::string > > > permissions
std::map< std::string, std::string > options
A set of output parameters for showSecurity(const ShowSecurityRequest&) const.
std::map< std::string, std::vector< std::string > > roles
ShowSecurityResponse()
Constructs a ShowSecurityResponse object with default parameter values.
std::map< std::string, std::string > types
A set of input parameters for showSecurity(const ShowSecurityRequest&) const.
ShowSecurityRequest()
Constructs a ShowSecurityRequest object with default parameter values.
ShowSecurityRequest(const std::vector< std::string > &names_, const std::map< std::string, std::string > &options_)
Constructs a ShowSecurityRequest object with the specified parameters.
std::vector< std::string > names