Repository.Item Schema
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
Provides support for features that apply to items in the Modeling Services database. This includes security, Folder management, and change tracking.
Data Types (UDTs)
Type | Description |
---|---|
An integer that uniquely identifies a Modeling Services Folder within a single instance of the Modeling Services database. |
|
A unicode string for a Modeling Services Folder name, having a maximum length of 100 characters. |
|
A binary security identifier (SID) of a principal. |
|
A name of a removal policy used with lifetime services. |
|
A GUID that represents an operation, such as read or update, in the Modeling Services database. |
|
A value of a secured resource. |
|
An integer that uniquely identifies a secured resource in the Modeling Services database. |
|
A GUID that represents the kind of a secured resource. |
|
An integer that uniquely identifies a permission for a given resource. |
|
A value of a security claim. |
|
An integer that uniquely identifies a security claim. |
|
A GUID that represents the kind of security claim. |
|
An integer identifier for a database session (a SQL Server SPID). |
|
A Windows security identifier (SID). |
Views
View | Description |
---|---|
Returns a list of permissions for the current database session. This list includes resources and the operations that are allowed on those resources. |
|
Stores Modeling Services Folders that help to organize, secure, and manage items in tables that use the Folder design pattern. |
|
Horn clause based inference rules for permissions (for example, if a principal is authorized to perform a read operation on the .NET Framework resource Folder, then the principal is authorized to perform the read operation on the .NET Framework\2.0 resource Folder). |
|
Provides a list of Folder identifiers that the caller has permissions to read. |
|
Stores removal policies used by Modeling Services lifetime services. |
|
Stores a list of securable operations in the Modeling Services database. Two operations are predefined: reading and updating. |
|
Provides a list of the kinds of resources that can be secured in the Modeling Services database. A Folder is an example of a kind of secured resource. |
|
Stores a list of permitted operations on resources for a given claim. |
|
Stores a list of secured resources and their kinds. |
|
Provides a list of the kind of claims in the Modeling Services database. An example of a claim is a Windows security identifier (SID). |
|
Stores claims and their claim kind. |
|
Returns a list of permitted resource operations for the current database session. |
|
Lists the active database sessions and their associated claim identifiers. |
|
Lists the current database session and its associated claim identifiers. |
|
Provides a list of Folder identifiers that the caller has permissions to update. |
Procedures
Procedure | Description |
---|---|
Adds auditing support to a target view that follows Modeling Services design patterns. To use this procedure, the Modeling Services database must have been created with auditing enabled. |
|
Enables change tracking on the target view. |
|
Adds a foreign key constraint to the [Repository.Item].[FoldersTable] table. |
|
Adds standard Modeling Services design patterns to a target view and underlying table. This procedure combines calls to several stored procedures related to Modeling Services patterns. These procedures include [Repository].[CreateIdSequence], [Repository.Item].[AddFolderForeignKey], and [Repository.Item].[AddViewsInsteadOfTriggers]. Depending on the installed settings, it also calls the procedures [Repository.Item].[AddAuditing] and [Repository.Item].[AddChangeTracking]. |
|
Adds INSTEAD OF triggers to a target view that make the view updatable. In addition to supporting insert, update, and delete statements, the triggers also provide Folder based security when using the default filters. |
|
Builds a change script from an XML document that describes the changes. |
|
Creates one or more Modeling Services Folders based on a Folder path. |
|
Grants a claim permission to perform an operation on a resource. |
|
Grants a principal permission to perform an operation on a Folder resource. |
|
Grants a principal permission to perform an operation on a resource. |
|
Raises a security permissions error. |
|
Removes items from the Modeling Services database that are associated with a specific lifetime policy. This is an internal procedure that is part of lifetime services. It is not meant to be called directly. |
|
Revokes a claim permission. |
|
Revokes a claim permission on a specific Folder. |
|
Revokes a claim permission on a resource. |
|
Establishes the security claims for a new database session. This is an infrastructure procedure. Do not call this procedure directly. |
|
Grants claim permissions without the normal security checks. This is an infrastructure procedure that should only be called by Modeling Services. Do not call this procedure directly. |
Functions
Function | Description |
---|---|
Returns a textual representation of a Folder path. The path uses a forward-slash as a delimiter. |
|
This is an internal function used by Modeling Services. Do not access this function directly. |
|
This is an internal function used by Modeling Services. Do not access this function directly. |
|
Returns all the resources of a specific kind that the current session may perform a specific operation on. |
|
Returns the Folder identifier that is associated with the given Folder path. |
|
Returns the Windows security identifier (SID) for the principal. |
|
Returns a list of Folders that the caller has permissions to read. |
|
Returns a list of resources that the caller has permissions to read. |
|
Returns a bit flag that specifies whether the caller can grant or revoke a permission for a given resource and operation. |
|
Returns a bit flag that specifies whether the caller can perform an operation on a given resource. |
|
Returns a bit flag that specifies whether the caller has permission to read data that is owned by a Folder. |
|
Returns a bit flag that specifies whether the caller has permission to read a given resource. |
|
Returns a bit flag that specifies whether the caller has permission to update a Folder. |
|
Returns a bit flag that specifies whether the caller has permission to update a resource. |
|
Returns a table that lists the subfolders of the given Folder. |
|
Returns a table that lists the subfolders of the given Folder. This function includes the target Folder in the results. |
|
Returns a list of Folders that the caller has permission to update. |
|
Returns a list of resources that the caller has permission to update. |
Tables
Table | Description |
---|---|
Stores Modeling Services Folders that help to organize, secure, and manage items in tables that use the Folder design pattern. |
|
This is an infrastructure table. Do not use directly. |
|
Horn clause based inference rules for permissions (for example, if a principal is authorized to perform a read operation on the .NET Framework resource Folder, then the principal is authorized to perform the read operation on the .NET Framework\2.0 resource Folder). |
|
Stores removal policies used by Modeling Services lifetime services. |
|
Stores a list of securable operations in the Modeling Services database. Two operations are predefined: reading and updating. |
|
Provides a list of the kinds of resources that can be secured in the Modeling Services database. A Folder is an example of a kind of secured resource. |
|
Stores a list of permitted operations on resources for a given claim. |
|
Stores a list of secured resources and their kinds. |
|
Provides a list of the kind of claims in the Modeling Services database. An example of a claim is a Windows security identifier (SID). |
|
Stores claims and their claim kind. |
|
Lists the active database sessions and their associated claim identifiers. |