~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.h

  • Committer: Monty Taylor
  • Date: 2010-04-22 02:46:23 UTC
  • mto: (1497.3.4 enable-dtrace)
  • mto: This revision was merged to the branch mainline in revision 1527.
  • Revision ID: mordred@inaugust.com-20100422024623-4urw8fi8eraci08p
Don't overwrite the pandora_vc_revinfo file if we don't have new
authoratative information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "drizzled/plugin.h"
26
26
#include "drizzled/plugin/plugin.h"
27
27
#include "drizzled/security_context.h"
28
 
#include "drizzled/identifier.h"
 
28
#include "drizzled/table_identifier.h"
29
29
 
30
30
#include <string>
31
31
#include <set>
56
56
   * @returns true if the user cannot access the schema
57
57
   */
58
58
  virtual bool restrictSchema(const SecurityContext &user_ctx,
59
 
                              SchemaIdentifier::const_reference schema)= 0;
 
59
                              SchemaIdentifier &schema)= 0;
60
60
 
61
61
  /**
62
62
   * Should we restrict the current user's access to this table?
84
84
 
85
85
  /** Server API method for checking schema authorization */
86
86
  static bool isAuthorized(const SecurityContext &user_ctx,
87
 
                           SchemaIdentifier::const_reference schema_identifier,
 
87
                           SchemaIdentifier &schema_identifier,
88
88
                           bool send_error= true);
89
89
 
90
90
  /** Server API method for checking table authorization */
102
102
   * to a set of schema names (for use in the context of getSchemaNames
103
103
   */
104
104
  static void pruneSchemaNames(const SecurityContext &user_ctx,
105
 
                               SchemaIdentifier::vector &set_of_schemas);
 
105
                               SchemaIdentifierList &set_of_schemas);
106
106
  
107
107
  /**
108
108
   * Standard plugin system registration hooks