~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.cc

  • Committer: Lee Bieber
  • Date: 2010-12-23 23:11:00 UTC
  • mfrom: (2024.1.1 clean)
  • Revision ID: kalebral@gmail.com-20101223231100-0rqirgz7ugkl10yp
Merge Brian - session list cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  public std::unary_function<plugin::Authorization *, bool>
60
60
{
61
61
  const identifier::User &user_ctx;
62
 
  identifier::Schema::const_reference schema;
 
62
  SchemaIdentifier::const_reference schema;
63
63
 
64
64
public:
65
65
  RestrictDbFunctor(const identifier::User &user_ctx_arg,
66
 
                    identifier::Schema::const_reference schema_arg) :
 
66
                    SchemaIdentifier::const_reference schema_arg) :
67
67
    std::unary_function<plugin::Authorization *, bool>(),
68
68
    user_ctx(user_ctx_arg),
69
69
    schema(schema_arg)
79
79
  public std::unary_function<plugin::Authorization *, bool>
80
80
{
81
81
  const identifier::User &user_ctx;
82
 
  identifier::Table &table;
 
82
  TableIdentifier &table;
83
83
public:
84
84
  RestrictTableFunctor(const identifier::User &user_ctx_arg,
85
 
                       identifier::Table &table_arg) :
 
85
                       TableIdentifier &table_arg) :
86
86
    std::unary_function<plugin::Authorization *, bool>(),
87
87
    user_ctx(user_ctx_arg),
88
88
    table(table_arg)
114
114
};
115
115
 
116
116
class PruneSchemaFunctor :
117
 
  public std::unary_function<identifier::Schema&, bool>
 
117
  public std::unary_function<SchemaIdentifier&, bool>
118
118
{
119
119
  drizzled::identifier::User::const_shared_ptr user_ctx;
120
120
public:
121
121
  PruneSchemaFunctor(drizzled::identifier::User::const_shared_ptr user_ctx_arg) :
122
 
    std::unary_function<identifier::Schema&, bool>(),
 
122
    std::unary_function<SchemaIdentifier&, bool>(),
123
123
    user_ctx(user_ctx_arg)
124
124
  { }
125
125
 
132
132
} /* namespace */
133
133
 
134
134
bool plugin::Authorization::isAuthorized(identifier::User::const_shared_ptr user_ctx,
135
 
                                         identifier::Schema::const_reference schema_identifier,
 
135
                                         SchemaIdentifier::const_reference schema_identifier,
136
136
                                         bool send_error)
137
137
{
138
138
  /* If we never loaded any authorization plugins, just return true */
169
169
}
170
170
 
171
171
bool plugin::Authorization::isAuthorized(drizzled::identifier::User::const_shared_ptr user_ctx,
172
 
                                         identifier::Table &table,
 
172
                                         TableIdentifier &table,
173
173
                                         bool send_error)
174
174
{
175
175
  /* If we never loaded any authorization plugins, just return true */
246
246
}
247
247
 
248
248
void plugin::Authorization::pruneSchemaNames(drizzled::identifier::User::const_shared_ptr user_ctx,
249
 
                                             identifier::Schema::vector &set_of_schemas)
 
249
                                             SchemaIdentifier::vector &set_of_schemas)
250
250
{
251
251
  /* If we never loaded any authorization plugins, just return true */
252
252
  if (authorization_plugins.empty())