index > Visual Studio Team System - Architects > SDM Directory resource

SDM Directory resource


Hi,

I'm trying to create custom SDM Resource which represents a set of required for installation on "ImageServer" images. The model of resource contains FileSystem:Directory resource, but when I go to Resource settings tool window, I cannot see any Directory properties. What is a purpose of the Directory and File resource? Why it is not allowed to add file to the directory, according to SDM model definition (<Property Name="SupportsUserCreation" Value="false" />)?

Evgeny Popov

Evgeny Popov

Hi Evgeny,

Erbil Yilmaz MSFT

Hi Evgeny,

The following sdm model demonstrates how to extend existing Directory and File resources to create new set of Directory and File resources that can be added from Settings and Constraints Editor. In this example, myFile extends existing File resource with one additional setting called myVersion. Similarly, myDirectory resource extends existing Directory resource with one additional setting called myName.

Note that in the containment definition between myDirectory and myFile, there is no ?淪upportsUserCreation??property with value false. By default, all containment definitions support user creation. As a result, for all systems/endpoints/resources containing new myDirectory resource, the resource can be added from Settings and Constraints Editor. In this sample, we added a second containment definition between GenericApplicationEndpoint and myDirectory resource to be able to demonstrate user creation in Application Designer. If you compile and add this model to registry, when you restart Visual Studio and open Application Designer, you will see that myDirectory resource can be added to GenericApplicationEndpoint.

<?xml version="1.0" encoding="utf-8"?>
<SystemDefinitionModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="myFileSystem" Version="1.0.60130.0" DocumentLanguage="en" xmlns="http://schemas.microsoft.com/SystemDefinitionModel/2005/1">

<Import Alias="FileSystem" Name="Microsoft.FileSystem" Culture="neutral" />
<Import Alias="Generic" Name="Microsoft.Generic" Culture="neutral" />

<ResourceDefinition Name="myFile" Extends="FileSystem:File" Abstract="true">
<SettingDeclaration Name="myVersion" Definition="System:Version" CanBeNull="true" />
</ResourceDefinition>

<ResourceDefinition Name="myDirectory" Extends="FileSystem:Directory" Abstract="true">
<SettingDeclaration Name="myName" Definition="System:String" />
</ResourceDefinition>

<ContainmentDefinition Name="myDirectoryContainsmyFile" Extends="System:ContainmentDefinition" ParentDefinition="myDirectory" MemberDefinition="myFile" />

<ContainmentDefinition Name="GenericApplicationEndpointContainsmyDirectory" Extends="System:ContainmentDefinition"
ParentDefinition="Generic:GenericApplicationEndpoint" MemberDefinition="myDirectory" />

</SystemDefinitionModel>

Thanks,




Gokhan Ozer
GokhanOzer

Thank you a lot!!!

Evgeny Popov
reply 4

You can use google to search for other answers

 

More Articles

Visio 2005 unable to syncronize code changes
VSTS Architects - how can I unit test?
Can not uninstall SDM model
Settings and Contraints Editor : Search function
VS.Net 2005 RC Application Diagram problem with SoapExtensions in...
Distributed System template generates VB code
reverse engineering
Extending Application Designer
Anyone using VISIO for Enterprise Architects?
Using Incubation and Bootstrapping in Architecture.
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Deployment attribute : System Designer
Referencing SDM documents for shared ser…
Latest Distributed System Designers
GenericApplication and GenericEndPoint
Generating Deployment Report.
Constraint error when restricting zone t…
Satellite Assembly
WHAT IS INCLUDED IN VS For Software Arch…
AD -> SD: Override settings
Visio Enterprise Architect?
Application locked - error creating conf…
Validate Diagram in Logical Datacenter D…
Application types
SdmC.exe - where is this tool located ?
Why no Library Project representation in…

Hot Articles

biztalk message problem
Cannot See the Distributed System Design…
Power Toys for Modeling Tools
Anyone using VISIO for Enterprise Archit…
SDM: Flow and Extends questions
Implicit constraints, Pre-defined constr…
Regular Project Type Templates
Reverse Engineering - Views
N-Tier application in Application Design…
shared types in the distributed system d…
Hosting the Designer outside of Visual S…
Systems Designer does not update web.con…
How to specify Project generation from S…
Complete material about n-tier and objec…
Representing external non-WSDL Web Servi…

Recommend Articles

Designing n-tier application in Architec…
Distributed System template
AD -> SD: Override settings
biztalk server 2006 server administration
Updated MSDN content for VS Team Edition…
How to implement database size constrain…
Issue installing Visio for Enterprise Ar…
permisson error trying to implement an w…
Custom HostZone
SDM Model
Team Suite not working -- Beta 2
Problem with UnitofWork
WHAT IS INCLUDED IN VS For Software Arch…
Using Incubation and Bootstrapping in Ar…
VEA2005: Database Menu is vanished !?