Ejemplo n.º 1
0
        /// <summary>
        /// Initialize a new <see cref="S3ListItem" />
        /// </summary>
        /// <param name="provider">Associated <see cref="S3Provider"/></param>
        /// <param name="session">Current <see cref="T:Tridion.ExternalContentLibrary.V2.IEclSession"/></param>
        /// <param name="parentUri"><see cref="Tridion.ExternalContentLibrary.V2.IEclUri" /></param>
        /// <param name="eclObject"><see cref="Amazon.S3.Model.S3Object"/></param>
        /// <remarks>Creating a <see cref="S3ListItem" /> directly from an <see cref="T:S3ECLProvider.API.S3ItemData"/></remarks>
        public S3ListItem(S3Provider provider, IEclSession session, IEclUri parentUri, S3ItemData eclObject)
        {
            Provider = provider;
            Session  = session;
            ParentId = parentUri;

            _itemData = eclObject;
            Id        = provider.GetUri(_itemData, parentUri);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize a new <see cref="S3ListItem" />
        /// </summary>
        /// <param name="provider">Associated <see cref="S3Provider"/></param>
        /// <param name="session">Current <see cref="T:Tridion.ExternalContentLibrary.V2.IEclSession"/></param>
        /// <param name="uri"><see cref="Tridion.ExternalContentLibrary.V2.IEclUri" /></param>
        public S3ListItem(S3Provider provider, IEclSession session, IEclUri uri)
        {
            Provider = provider;
            Session  = session;
            ParentId = provider.GetParentUri(uri);

            if (uri.ItemType == EclItemTypes.Folder)
            {
                _itemData = provider.S3.GetFolder(uri.ItemId);
            }
            else
            {
                _itemData = provider.S3.GetObject(uri.ItemId);
            }

            Id = provider.GetUri(_itemData, uri);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="S3MountPoint"/> class.
 /// </summary>
 /// <param name="provider">Associated <see cref="S3Provider"/></param>
 /// <param name="session">The session.</param>
 public S3MountPoint(S3Provider provider, IEclSession session)
 {
     _provider = provider;
     _session  = session;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initialize a new <see cref="S3Folder" />
 /// </summary>
 /// <param name="provider">Associated <see cref="S3Provider"/></param>
 /// <param name="session">Current <see cref="T:Tridion.ExternalContentLibrary.V2.IEclSession"/></param>
 /// <param name="parentUri">Parent <see cref="T:Tridion.ExternalContentLibrary.V2.IEclUri" /></param>
 /// <param name="eclObject"><see cref="T:S3ECLProvider.API.S3ItemData"/></param>
 /// <remarks>Creating a <see cref="S3Folder" /> directly from an <see cref="Amazon.S3.Model.S3Object"/></remarks>
 public S3Folder(S3Provider provider, IEclSession session, IEclUri parentUri, S3ItemData eclObject) : base(provider, session, parentUri, eclObject)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initialize a new <see cref="S3Folder" />
 /// </summary>
 /// <param name="provider">Associated <see cref="S3Provider"/></param>
 /// <param name="session">Current <see cref="T:Tridion.ExternalContentLibrary.V2.IEclSession"/></param>
 /// <param name="uri"><see cref="T:Tridion.ExternalContentLibrary.V2.IEclUri" /></param>
 public S3Folder(S3Provider provider, IEclSession session, IEclUri uri) : base(provider, session, uri)
 {
 }