C# Class TSystems.RELOAD.Usage.AccessList

This class implements the RELOAD Usage for shared resource access
Inheritance: IUsage
显示文件 Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Properties

Property Type Description
data AccessListData

Public Methods

Method Description
AccessList ( UsageManager manager ) : System
AppProcedure ( MessageTransport transport, List kindRes ) : void
Create ( int type ) : IUsage
DataModel ( ) : ReloadGlobals.DataModel
Encapsulate ( System.Boolean exists ) : StoredDataValue
Equals ( object obj ) : bool

Compare of two ACLs are equal.

FromReader ( ReloadMessage rm, BinaryReader reader, long usage_size ) : IUsage

Deserializes AccessControlList Kind from byte stream.

GetHashCode ( ) : int
Report ( ) : string
dump ( BinaryWriter writer ) : UInt32

Serializes the AccessControlList Kind.

Private Methods

Method Description
AccessList ( string resource_name, string to_user, UInt32 kindId, System.Boolean allow_delegation, UsageManager manager ) : System

This contructor instanciates an Access List Kind.

SetHashCode ( ) : void

Method Details

AccessList() public method

public AccessList ( UsageManager manager ) : System
manager UsageManager
return System

AppProcedure() public method

public AppProcedure ( MessageTransport transport, List kindRes ) : void
transport TSystems.RELOAD.Transport.MessageTransport
kindRes List
return void

Create() public method

public Create ( int type ) : IUsage
type int
return IUsage

DataModel() public method

public DataModel ( ) : ReloadGlobals.DataModel
return ReloadGlobals.DataModel

Encapsulate() public method

public Encapsulate ( System.Boolean exists ) : StoredDataValue
exists System.Boolean
return TSystems.RELOAD.Storage.StoredDataValue

Equals() public method

Compare of two ACLs are equal.
public Equals ( object obj ) : bool
obj object ACL to compare.
return bool

FromReader() public method

Deserializes AccessControlList Kind from byte stream.
public FromReader ( ReloadMessage rm, BinaryReader reader, long usage_size ) : IUsage
rm TSystems.RELOAD.Transport.ReloadMessage Not used.
reader System.IO.BinaryReader Binary reader containing message byte stream.
usage_size long Not used. ACL has fix length.
return IUsage

GetHashCode() public method

public GetHashCode ( ) : int
return int

Report() public method

public Report ( ) : string
return string

dump() public method

Serializes the AccessControlList Kind.
public dump ( BinaryWriter writer ) : UInt32
writer System.IO.BinaryWriter Binary writer containing the message byte stream.
return System.UInt32

Property Details

data public_oe property

public AccessListData,TSystems.RELOAD.Usage data
return AccessListData