~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.h

  • Committer: Brian Aker
  • Date: 2011-01-13 05:06:32 UTC
  • mto: (2079.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110113050632-92b0129n2urv5v0w
Fix for test on drop (error message change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
   * @returns true if the user cannot access the schema
56
56
   */
57
57
  virtual bool restrictSchema(const drizzled::identifier::User &user_ctx,
58
 
                              identifier::Schema::const_reference schema)= 0;
 
58
                              SchemaIdentifier::const_reference schema)= 0;
59
59
 
60
60
  /**
61
61
   * Should we restrict the current user's access to this table?
67
67
   * @returns true if the user cannot access the table
68
68
   */
69
69
  virtual bool restrictTable(const drizzled::identifier::User &user_ctx,
70
 
                             identifier::Table &table);
 
70
                             TableIdentifier &table);
71
71
 
72
72
  /**
73
73
   * Should we restrict the current user's access to see this process?
83
83
 
84
84
  /** Server API method for checking schema authorization */
85
85
  static bool isAuthorized(drizzled::identifier::User::const_shared_ptr user_ctx,
86
 
                           identifier::Schema::const_reference schema_identifier,
 
86
                           SchemaIdentifier::const_reference schema_identifier,
87
87
                           bool send_error= true);
88
88
 
89
89
  /** Server API method for checking table authorization */
90
90
  static bool isAuthorized(drizzled::identifier::User::const_shared_ptr user_ctx,
91
 
                           identifier::Table &table_identifier,
 
91
                           TableIdentifier &table_identifier,
92
92
                           bool send_error= true);
93
93
 
94
94
  /** Server API method for checking process authorization */
106
106
   * to a set of schema names (for use in the context of getSchemaNames
107
107
   */
108
108
  static void pruneSchemaNames(drizzled::identifier::User::const_shared_ptr user_ctx,
109
 
                               identifier::Schema::vector &set_of_schemas);
 
109
                               SchemaIdentifier::vector &set_of_schemas);
110
110
  
111
111
  /**
112
112
   * Standard plugin system registration hooks
117
117
};
118
118
 
119
119
inline bool Authorization::restrictTable(const drizzled::identifier::User &user_ctx,
120
 
                                         identifier::Table &table)
 
120
                                         TableIdentifier &table)
121
121
{
122
122
  return restrictSchema(user_ctx, table);
123
123
}