C# Class Zetbox.App.Extensions.ObjectClassExtensions

Temp. Kist Objects Extensions
Mostra file Open project: daszat/zetbox

Public Methods

Method Description
CollectChildClasses ( this cls, List children, bool includeAbstract ) : void
GetAllMethods ( this cls ) : IList
GetAllProperties ( this cls ) : IList
GetDescribedInterfaceType ( this dt ) : InterfaceType
GetDescribedInterfaceTypeName ( this dt ) : string
GetGroupAccessRights ( this cls, ZetboxPrincipal principal ) : Zetbox.API.AccessRights?

GetInheritedProperties ( this cls ) : IList
GetObjectClass ( this obj, IReadOnlyZetboxContext ctx ) : ObjectClass
GetObjectHierarchie ( this cls ) : ICollection
GetProperty ( this cls, string property ) : System.Property
GetPropertyType ( this t, System.Property property ) : Type
GetPropertyType ( this type, string propertyName ) : Type
GetRelationEndsWithLocalStorage ( this cls ) : List
GetRelations ( this cls ) : List
GetRootClass ( this cls ) : ObjectClass
GetTableMapping ( this objClass ) : TableMapping
HasAccessControlList ( this cls ) : bool

Checks if a ObjectClass has an AccessControl list. This Method is used to append security filter

ImplementsIChangedBy ( this cls ) : bool
ImplementsIChangedBy ( this cls, bool lookupInBase ) : bool
ImplementsICustomFulltextFormat ( this cls ) : bool
ImplementsICustomFulltextFormat ( this cls, bool lookupInBase ) : bool
ImplementsIDeactivatable ( this cls ) : bool
ImplementsIDeactivatable ( this cls, bool lookupInBase ) : bool
ImplementsIExportable ( this cls ) : bool
ImplementsIExportable ( this cls, bool lookupInBase ) : bool
ImplementsIMergeable ( this cls ) : bool
ImplementsIMergeable ( this cls, bool lookupInBase ) : bool
ImplementsIModuleMember ( this cls ) : bool
ImplementsIModuleMember ( this cls, bool lookupInBase ) : bool
IsAssignableFrom ( this self, DataType other ) : bool
IsFrozen ( this cls ) : bool
NeedsRightsTable ( this cls ) : bool

Checks if this ObjectClass needs a Rights Table. Lookup is done only in current class, not in base classes. Only RoleMembership ACLs would need a Rights Table. GroupMembership ACLs are resolved directly at the server.

Method Details

CollectChildClasses() public static method

public static CollectChildClasses ( this cls, List children, bool includeAbstract ) : void
cls this
children List
includeAbstract bool
return void

GetAllMethods() public static method

public static GetAllMethods ( this cls ) : IList
cls this
return IList

GetAllProperties() public static method

public static GetAllProperties ( this cls ) : IList
cls this
return IList

GetDescribedInterfaceType() public static method

public static GetDescribedInterfaceType ( this dt ) : InterfaceType
dt this
return Zetbox.API.InterfaceType

GetDescribedInterfaceTypeName() public static method

public static GetDescribedInterfaceTypeName ( this dt ) : string
dt this
return string

GetGroupAccessRights() public static method

public static GetGroupAccessRights ( this cls, ZetboxPrincipal principal ) : Zetbox.API.AccessRights?
cls this
principal Zetbox.API.ZetboxPrincipal
return Zetbox.API.AccessRights?

GetInheritedProperties() public static method

public static GetInheritedProperties ( this cls ) : IList
cls this
return IList

GetObjectClass() public static method

public static GetObjectClass ( this obj, IReadOnlyZetboxContext ctx ) : ObjectClass
obj this
ctx IReadOnlyZetboxContext
return ObjectClass

GetObjectHierarchie() public static method

public static GetObjectHierarchie ( this cls ) : ICollection
cls this
return ICollection

GetProperty() public static method

public static GetProperty ( this cls, string property ) : System.Property
cls this
property string
return System.Property

GetPropertyType() public static method

public static GetPropertyType ( this t, System.Property property ) : Type
t this
property System.Property
return System.Type

GetPropertyType() public static method

public static GetPropertyType ( this type, string propertyName ) : Type
type this
propertyName string
return System.Type

GetRelationEndsWithLocalStorage() public static method

public static GetRelationEndsWithLocalStorage ( this cls ) : List
cls this
return List

GetRelations() public static method

public static GetRelations ( this cls ) : List
cls this
return List

GetRootClass() public static method

public static GetRootClass ( this cls ) : ObjectClass
cls this
return ObjectClass

GetTableMapping() public static method

public static GetTableMapping ( this objClass ) : TableMapping
objClass this
return TableMapping

HasAccessControlList() public static method

Checks if a ObjectClass has an AccessControl list. This Method is used to append security filter
public static HasAccessControlList ( this cls ) : bool
cls this ObjectClass to test
return bool

ImplementsIChangedBy() public static method

public static ImplementsIChangedBy ( this cls ) : bool
cls this
return bool

ImplementsIChangedBy() public static method

public static ImplementsIChangedBy ( this cls, bool lookupInBase ) : bool
cls this
lookupInBase bool
return bool

ImplementsICustomFulltextFormat() public static method

public static ImplementsICustomFulltextFormat ( this cls ) : bool
cls this
return bool

ImplementsICustomFulltextFormat() public static method

public static ImplementsICustomFulltextFormat ( this cls, bool lookupInBase ) : bool
cls this
lookupInBase bool
return bool

ImplementsIDeactivatable() public static method

public static ImplementsIDeactivatable ( this cls ) : bool
cls this
return bool

ImplementsIDeactivatable() public static method

public static ImplementsIDeactivatable ( this cls, bool lookupInBase ) : bool
cls this
lookupInBase bool
return bool

ImplementsIExportable() public static method

public static ImplementsIExportable ( this cls ) : bool
cls this
return bool

ImplementsIExportable() public static method

public static ImplementsIExportable ( this cls, bool lookupInBase ) : bool
cls this
lookupInBase bool
return bool

ImplementsIMergeable() public static method

public static ImplementsIMergeable ( this cls ) : bool
cls this
return bool

ImplementsIMergeable() public static method

public static ImplementsIMergeable ( this cls, bool lookupInBase ) : bool
cls this
lookupInBase bool
return bool

ImplementsIModuleMember() public static method

public static ImplementsIModuleMember ( this cls ) : bool
cls this
return bool

ImplementsIModuleMember() public static method

public static ImplementsIModuleMember ( this cls, bool lookupInBase ) : bool
cls this
lookupInBase bool
return bool

IsAssignableFrom() public static method

public static IsAssignableFrom ( this self, DataType other ) : bool
self this
other DataType
return bool

IsFrozen() public static method

public static IsFrozen ( this cls ) : bool
cls this
return bool

NeedsRightsTable() public static method

Checks if this ObjectClass needs a Rights Table. Lookup is done only in current class, not in base classes. Only RoleMembership ACLs would need a Rights Table. GroupMembership ACLs are resolved directly at the server.
public static NeedsRightsTable ( this cls ) : bool
cls this ObjectClass to test
return bool