Package com.ngt.jopenmetaverse.shared.protocol.primitives

Examples of com.ngt.jopenmetaverse.shared.protocol.primitives.Permissions


                    item.Flags = descItem.get("flags").asLong();

                    OSDMap perms = (OSDMap)descItem.get("permissions");
                    item.CreatorID = perms.get("creator_id").asUUID();
                    item.LastOwnerID = perms.get("last_owner_id").asUUID();
                    item.Permissions = new Permissions(perms.get("base_mask").asLong(), perms.get("everyone_mask").asLong(), perms.get("group_mask").asLong(), perms.get("next_owner_mask").asLong(), perms.get("owner_mask").asLong());
                    item.GroupOwned = perms.get("is_owner_group").asBoolean();
                    item.GroupID = perms.get("group_id").asUUID();

                    OSDMap sale = (OSDMap)descItem.get("sale_info");
                    item.SalePrice = sale.get("sale_price").asInteger();
View Full Code Here


  /// <param name="folderID">Put newly created inventory in this folder</param>
  /// <param name="callback">Delegate that will receive feedback on success or failure</param>
  public void RequestCreateItemFromAsset(byte[] data, String name, String description, AssetType assetType,
      InventoryType invType, UUID folderID, ItemCreatedFromAssetCallbackArg callback) throws Exception
      {
    Permissions permissions = new Permissions();
    permissions.EveryoneMask = PermissionMask.get(PermissionMask.None.getIndex());
    permissions.GroupMask = PermissionMask.get(PermissionMask.None.getIndex());
    permissions.NextOwnerMask = PermissionMask.get(PermissionMask.All.getIndex());

    RequestCreateItemFromAsset(data, name, description, assetType, invType, folderID, permissions, callback);
View Full Code Here

              AssetType assetType = AssetType.Unknown;
              InventoryType inventoryType = InventoryType.Unknown;
              Date creationDate = Utils.Epoch;
              //uint
              long flags = 0;
              Permissions perms = Permissions.NoPermissions;
              SaleType saleType = SaleType.Not;
              int salePrice = 0;
   
              while (lineNum < lines.length)
              {
View Full Code Here

            item.Description = Utils.bytesWithTrailingNullByteToString(reply.ItemData[i].Description);
            item.Flags = reply.ItemData[i].Flags;
            item.Name = Utils.bytesWithTrailingNullByteToString(reply.ItemData[i].Name);
            item.GroupID = reply.ItemData[i].GroupID;
            item.GroupOwned = reply.ItemData[i].GroupOwned;
            item.Permissions = new Permissions(
                reply.ItemData[i].BaseMask,
                reply.ItemData[i].EveryoneMask,
                reply.ItemData[i].GroupMask,
                reply.ItemData[i].NextOwnerMask,
                reply.ItemData[i].OwnerMask);
View Full Code Here

      item.GroupID = dataBlock.GroupID;
      item.GroupOwned = dataBlock.GroupOwned;
      item.Name = Utils.bytesWithTrailingNullByteToString(dataBlock.Name);
      item.OwnerID = dataBlock.OwnerID;
      item.ParentUUID = dataBlock.FolderID;
      item.Permissions = new Permissions(
          dataBlock.BaseMask,
          dataBlock.EveryoneMask,
          dataBlock.GroupMask,
          dataBlock.NextOwnerMask,
          dataBlock.OwnerMask);
View Full Code Here

        item.GroupID = dataBlock.GroupID;
        item.GroupOwned = dataBlock.GroupOwned;
        item.Name = Utils.bytesWithTrailingNullByteToString(dataBlock.Name);
        item.OwnerID = dataBlock.OwnerID;
        item.ParentUUID = dataBlock.FolderID;
        item.Permissions = new Permissions(
            dataBlock.BaseMask,
            dataBlock.EveryoneMask,
            dataBlock.GroupMask,
            dataBlock.NextOwnerMask,
            dataBlock.OwnerMask);
View Full Code Here

      item.GroupOwned = dataBlock.GroupOwned;
      item.InventoryType = InventoryType.get(dataBlock.InvType);
      item.Name = Utils.bytesWithTrailingNullByteToString(dataBlock.Name);
      item.OwnerID = dataBlock.OwnerID;
      item.ParentUUID = dataBlock.FolderID;
      item.Permissions = new Permissions(
          dataBlock.BaseMask,
          dataBlock.EveryoneMask,
          dataBlock.GroupMask,
          dataBlock.NextOwnerMask,
          dataBlock.OwnerMask);
View Full Code Here

        prim.PrimData.Material = EnumsPrimitive.Material.get((byte)this.Material);
        prim.Properties.Name = this.Name;
        prim.OwnerID = this.OwnerID;
        prim.ParentID = this.ParentID;
        prim.PrimData.PCode = EnumsPrimitive.PCode.get((byte)this.PCode);
        prim.Properties.Permissions = new Permissions(this.PermsBase, this.PermsEveryone, this.PermsGroup, this.PermsNextOwner, this.PermsOwner);
        if (this.Phantom) prim.Flags = prim.Flags | PrimFlags.Phantom.getIndex();
        prim.Position = this.Position;
        if (this.ReturnAtEdge) prim.Flags = prim.Flags | PrimFlags.ReturnAtEdge.getIndex();
        prim.Rotation = this.Rotation;
        prim.Properties.SalePrice = this.SalePrice;
View Full Code Here

      props.ObjectID = objectData.ObjectID;
      props.AggregatePerms = objectData.AggregatePerms;
      props.AggregatePermTextures = objectData.AggregatePermTextures;
      props.AggregatePermTexturesOwner = objectData.AggregatePermTexturesOwner;
      props.Permissions = new Permissions(objectData.BaseMask, objectData.EveryoneMask, objectData.GroupMask,
          objectData.NextOwnerMask, objectData.OwnerMask);
      props.Category = ObjectCategory.get((int)objectData.Category);
      props.CreationDate = Utils.unixTimeToDate(objectData.CreationDate.longValue());
      props.CreatorID = objectData.CreatorID;
      props.Description = Utils.bytesWithTrailingNullByteToString(objectData.Description);
View Full Code Here

        {
            if (AssetData == null || AssetData.length == 0)
                return false;

            int version = -1;
            Permissions = new Permissions();

            try
            {
                String data = Utils.trim(Utils.bytesWithTrailingNullByteToString(AssetData), new char[]{'\0'});
               
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.primitives.Permissions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.