C# Класс Universe.Modules.Permissions.PermissionsModule

Наследование: INonSharedRegionModule, IPermissionsModule
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_scene IScene

Открытые методы

Метод Описание
AddRegion ( IScene scene ) : void
BypassPermissions ( ) : bool
Close ( ) : void
GenerateClientFlags ( UUID user, ISceneChildEntity task ) : uint
GenericEstatePermission ( UUID user ) : bool
GetPermissionClass ( UUID user, ISceneChildEntity obj ) : PermissionClass
HandleBypassPermissions ( IScene scene, string args ) : void
HandleDebugPermissions ( IScene scene, string args ) : void
HandleForcePermissions ( IScene scene, string args ) : void
HandleTransferLandOwnership ( IScene scene, string args ) : void
HandleTransferObjectOwnership ( IScene scene, string args ) : void
HandleTransferOwnership ( IScene scene, string args ) : void
Initialize ( IConfigSource config ) : void
IsInGroup ( UUID user, UUID groupID ) : bool
PropagatePermissions ( ) : bool
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
SetBypassPermissions ( bool value ) : void
SetHomePoint ( UUID userID ) : bool
TakeLandmark ( UUID userID ) : bool

Защищенные методы

Метод Описание
CheckIsInGodMode ( UUID userID ) : bool
DebugPermissionInformation ( string permissionCalled ) : void
GenericCommunicationPermission ( UUID user, UUID target ) : bool
GenericObjectPermission ( UUID currentUser, UUID objId, bool denyOnLocked ) : bool

General permissions checks for any operation involving an object. These supplement more specific checks implemented by callers.

GenericParcelPermission ( UUID user, ILandObject parcel, ulong groupPowers ) : bool
GenericParcelPermission ( UUID user, System.Vector3 pos, ulong groupPowers ) : bool
IsAdministrator ( UUID user ) : bool

Is the given user an administrator (in other words, a god)?

IsEstateManager ( UUID user ) : bool
IsFriendWithPerms ( UUID user, UUID objectOwner ) : bool
IsGroupMember ( UUID groupID, UUID userID, ulong powers ) : bool
SendPermissionError ( UUID user, string reason ) : void

Приватные методы

Метод Описание
ApplyObjectModifyMasks ( uint setPermissionMask, uint objectFlagsMask ) : uint
CanAbandonParcel ( UUID user, ILandObject parcel, IScene scene ) : bool
CanBuyLand ( UUID userID, ILandObject parcel, IScene scene ) : bool
CanCompileScript ( UUID ownerUUID, string scriptType, IScene scene ) : bool
CanControlPrimMedia ( UUID agentID, UUID primID, int face ) : bool
CanCopyObjectInventory ( UUID itemID, UUID objectID, UUID userID ) : bool
CanCopyUserInventory ( UUID itemID, UUID userID ) : bool

Check whether the specified user is allowed to copy the given inventory type in their inventory.

CanCreateObjectInventory ( int invType, UUID objectID, UUID userID ) : bool

Check whether the specified user is allowed to directly create the given inventory type in a prim's inventory (e.g. the New Script button in the 1.21 Linden Lab client).

CanCreateUserInventory ( int invType, UUID userID ) : bool

Check whether the specified user is allowed to create the given inventory type in their inventory.

CanDeedObject ( UUID user, UUID group, IScene scene ) : bool
CanDeedParcel ( UUID user, ILandObject parcel, IScene scene ) : bool
CanDeleteObject ( UUID objectID, UUID deleter, IScene scene ) : bool
CanDeleteObjectInventory ( UUID itemID, UUID objectID, UUID userID ) : bool
CanDeleteUserInventory ( UUID itemID, UUID userID ) : bool

Check whether the specified user is allowed to delete the given inventory item from their own inventory.

CanDelinkObject ( UUID userID, UUID objectID ) : bool
CanDuplicateObject ( int objectCount, UUID objectID, UUID owner, IScene scene, System.Vector3 objectPosition ) : bool
CanEditNotecard ( UUID notecard, UUID objectID, UUID user, IScene scene ) : bool

Check whether the specified user can edit the given notecard

CanEditObject ( UUID objectID, UUID editorID, IScene scene ) : bool
CanEditObjectInventory ( UUID objectID, UUID editorID, IScene scene ) : bool
CanEditParcel ( UUID user, ILandObject parcel, IScene scene ) : bool
CanEditParcelAccessList ( UUID userID, ILandObject parcel, uint flags ) : bool
CanEditParcelProperties ( UUID user, ILandObject parcel, GroupPowers p, IScene scene ) : bool
CanEditScript ( UUID script, UUID objectID, UUID user, IScene scene ) : bool

Check whether the specified user can edit the given script

CanEditUserInventory ( UUID itemID, UUID userID ) : bool

Check whether the specified user is allowed to edit the given inventory item within their own inventory.

CanGodTp ( UUID user, UUID target ) : bool
CanInstantMessage ( UUID user, UUID target, IScene startScene ) : bool
CanInteractWithPrimMedia ( UUID agentID, UUID primID, int face ) : bool
CanIssueEstateCommand ( UUID user, IScene requestFromScene, bool ownerCommand ) : bool
CanLinkObject ( UUID userID, UUID objectID ) : bool
CanMoveObject ( UUID objectID, UUID moverID, IScene scene ) : bool
CanObjectEntry ( UUID objectID, bool enteringRegion, System.Vector3 newPoint, UUID OwnerID ) : bool
CanPushObject ( UUID userID, ILandObject parcel ) : bool
CanReclaimParcel ( UUID user, ILandObject parcel, IScene scene ) : bool
CanResetScript ( UUID prim, UUID script, UUID agentID, IScene scene ) : bool
CanReturnObjects ( ILandObject land, UUID user, List objects, IScene scene ) : bool
CanRezObject ( int objectCount, UUID attemptedRezzer, System.Vector3 objectPosition, IScene scene, string &reason ) : bool
CanRunConsoleCommand ( UUID user, IScene requestFromScene ) : bool
CanRunScript ( UUID script, UUID objectID, UUID user, IScene scene ) : bool
CanSellParcel ( UUID user, ILandObject parcel, IScene scene ) : bool
CanSubdivideParcel ( UUID user, ILandObject parcel, IScene scene ) : bool
CanTakeCopyObject ( UUID objectID, UUID userID, IScene inScene ) : bool
CanTakeObject ( UUID objectID, UUID stealer, IScene scene ) : bool
CanTerraformLand ( UUID user, System.Vector3 position, IScene requestFromScene ) : bool
CanViewNotecard ( UUID notecard, UUID objectID, UUID user, IScene scene ) : bool

Check whether the specified user can view the given notecard

CanViewObjectOwners ( UUID userID, ILandObject parcel ) : bool
CanViewScript ( UUID script, UUID objectID, UUID user, IScene scene ) : bool

Check whether the specified user can view the given script

GenericPrimMediaPermission ( ISceneChildEntity part, UUID agentID, MediaPermission perms ) : bool
InternalIsAdministrator ( UUID user, bool checkGodStatus ) : bool

Is the given user an administrator (in other words, a god)?

IsGod ( UUID user, IScene scene ) : bool

Описание методов

AddRegion() публичный Метод

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

BypassPermissions() публичный Метод

public BypassPermissions ( ) : bool
Результат bool

CheckIsInGodMode() защищенный Метод

protected CheckIsInGodMode ( UUID userID ) : bool
userID UUID
Результат bool

Close() публичный Метод

public Close ( ) : void
Результат void

DebugPermissionInformation() защищенный Метод

protected DebugPermissionInformation ( string permissionCalled ) : void
permissionCalled string
Результат void

GenerateClientFlags() публичный Метод

public GenerateClientFlags ( UUID user, ISceneChildEntity task ) : uint
user UUID
task ISceneChildEntity
Результат uint

GenericCommunicationPermission() защищенный Метод

protected GenericCommunicationPermission ( UUID user, UUID target ) : bool
user UUID
target UUID
Результат bool

GenericEstatePermission() публичный Метод

public GenericEstatePermission ( UUID user ) : bool
user UUID
Результат bool

GenericObjectPermission() защищенный Метод

General permissions checks for any operation involving an object. These supplement more specific checks implemented by callers.
protected GenericObjectPermission ( UUID currentUser, UUID objId, bool denyOnLocked ) : bool
currentUser UUID
objId UUID
denyOnLocked bool
Результат bool

GenericParcelPermission() защищенный Метод

protected GenericParcelPermission ( UUID user, ILandObject parcel, ulong groupPowers ) : bool
user UUID
parcel ILandObject
groupPowers ulong
Результат bool

GenericParcelPermission() защищенный Метод

protected GenericParcelPermission ( UUID user, System.Vector3 pos, ulong groupPowers ) : bool
user UUID
pos System.Vector3
groupPowers ulong
Результат bool

GetPermissionClass() публичный Метод

public GetPermissionClass ( UUID user, ISceneChildEntity obj ) : PermissionClass
user UUID
obj ISceneChildEntity
Результат PermissionClass

HandleBypassPermissions() публичный Метод

public HandleBypassPermissions ( IScene scene, string args ) : void
scene IScene
args string
Результат void

HandleDebugPermissions() публичный Метод

public HandleDebugPermissions ( IScene scene, string args ) : void
scene IScene
args string
Результат void

HandleForcePermissions() публичный Метод

public HandleForcePermissions ( IScene scene, string args ) : void
scene IScene
args string
Результат void

HandleTransferLandOwnership() публичный Метод

public HandleTransferLandOwnership ( IScene scene, string args ) : void
scene IScene
args string
Результат void

HandleTransferObjectOwnership() публичный Метод

public HandleTransferObjectOwnership ( IScene scene, string args ) : void
scene IScene
args string
Результат void

HandleTransferOwnership() публичный Метод

public HandleTransferOwnership ( IScene scene, string args ) : void
scene IScene
args string
Результат void

Initialize() публичный Метод

public Initialize ( IConfigSource config ) : void
config IConfigSource
Результат void

IsAdministrator() защищенный Метод

Is the given user an administrator (in other words, a god)?
protected IsAdministrator ( UUID user ) : bool
user UUID
Результат bool

IsEstateManager() защищенный Метод

protected IsEstateManager ( UUID user ) : bool
user UUID
Результат bool

IsFriendWithPerms() защищенный Метод

protected IsFriendWithPerms ( UUID user, UUID objectOwner ) : bool
user UUID
objectOwner UUID
Результат bool

IsGroupMember() защищенный Метод

protected IsGroupMember ( UUID groupID, UUID userID, ulong powers ) : bool
groupID UUID
userID UUID
powers ulong
Результат bool

IsInGroup() публичный Метод

public IsInGroup ( UUID user, UUID groupID ) : bool
user UUID
groupID UUID
Результат bool

PropagatePermissions() публичный Метод

public PropagatePermissions ( ) : bool
Результат bool

RegionLoaded() публичный Метод

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

RemoveRegion() публичный Метод

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

SendPermissionError() защищенный Метод

protected SendPermissionError ( UUID user, string reason ) : void
user UUID
reason string
Результат void

SetBypassPermissions() публичный Метод

public SetBypassPermissions ( bool value ) : void
value bool
Результат void

SetHomePoint() публичный Метод

public SetHomePoint ( UUID userID ) : bool
userID UUID
Результат bool

TakeLandmark() публичный Метод

public TakeLandmark ( UUID userID ) : bool
userID UUID
Результат bool

Описание свойств

m_scene защищенное свойство

protected IScene m_scene
Результат IScene