|
override PermissionConfiguration | InternalCompile () |
|
override void | InternalResolve (SymbolTable table) |
|
override void | ValidateMandatories () |
| Override to validates the mandatory types in this syntax node. More...
|
|
override void | ValidateTypes () |
| Override to validates the types in this syntax node. More...
|
|
| SyntaxNode (Symbol symbol, string name, int line, bool requirePath=false) |
|
void | AddError (string message) |
|
void | AddReferenceNameError (ISyntaxNode node, string keyword, string name) |
|
void | AddReferenceTypeError (ISyntaxNode node, string keyword, string section, string name) |
|
void | CheckAllIsPresent (IEnumerable< Symbol > list) |
|
void | CheckIsUnique (IEnumerable< Symbol > list) |
|
Uri | CheckLink (string link, string keyword) |
|
void | CheckOneIsPresent (IEnumerable< Symbol > list) |
|
void | CheckOnlyOneIsPresent (IEnumerable< Symbol > list) |
|
void | CheckTypeIs< TU > (Symbol symbol) |
|
void | CheckTypeIs< TU, TV > (Symbol symbol) |
|
virtual void | InternalResolve (SymbolTable table) |
| Override to resolve references to other syntax nodes from this syntax node. More...
|
|
virtual void | ValidateReferences (SymbolTable table) |
| Override to validates the references in this syntax node. More...
|
|
Definition at line 31 of file PermissionSyntaxNode.cs.
Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.PermissionSyntaxNode |
( |
string |
name, |
|
|
int |
line |
|
) |
| |
|
inline |
override void Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.InternalResolve |
( |
SymbolTable |
table | ) |
|
|
inlineprotected |
Definition at line 61 of file PermissionSyntaxNode.cs.
References Ntp.Common.IO.Permission.GetGroupId(), and Ntp.Common.IO.Permission.GetUserId().
66 if (appUserNameNode != null)
70 else if (appUserIdNode != null)
76 var fileUserIdNode =
Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordUser) as IntegerSettingNode;
77 var fileUserNameNode =
Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordUser) as StringSettingNode;
78 if (fileUserNameNode != null)
82 else if (fileUserIdNode != null)
88 var groupIdNode =
Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordGroup) as IntegerSettingNode;
89 var groupNameNode =
Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordGroup) as StringSettingNode;
90 if (groupNameNode != null)
94 else if (groupIdNode != null)
96 groupId = (uint?) groupIdNode.Value;
List< ISyntaxNode > Nodes
static uint GetGroupId(string groupName)
static uint GetUserId(string userName)
override void Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.ValidateMandatories |
( |
| ) |
|
|
inlineprotectedvirtual |
override void Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.ValidateTypes |
( |
| ) |
|
|
inlineprotectedvirtual |
uint Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.appUserId |
|
private |
uint Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.fileUserId |
|
private |
uint Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode.groupId |
|
private |
The documentation for this class was generated from the following file: