Project: stp
javax.wvcm

Interface Folder

Parameters:
bindingName - the name of the new binding in this Folder to the resource identified by resource.
resource - the resource being bound.
flags - Array of boolean flags (may be null):
  • Folder.BindFlag.OVERWRITE: Indicates whether an existing binding in this folder will be overwritten rather than the request failing.
  • Folder.BindFlag.AUTO_UNBIND: Indicates whether the resource will be unbound from its original folder rather than the request failing because multiple bindings to the same resource are not supported.
  • feedback - Specifies optional feedback to the caller.
    Returns:
    a new proxy for this resource, whose properties are specified by feedback.
    Throws:
    WvcmException - ReasonCode:
  • WvcmException.ReasonCode.NOT_FOUND: There must be a binding named bindingName in this Folder, and the folder identified by sourceFolder must exist.
  • WvcmException.ReasonCode.METHOD_NOT_SUPPORTED: If the resource identified by resource does not support multiple bindings to it, and Folder.BindFlag.AUTO_UNBIND is not specified, the request MUST fail.
  • WvcmException.ReasonCode.NO_CROSS_SERVER_BINDING: If the resource identified by resource is on another server from the folder identified by this Folder, and the server for this Folder does not support cross-server bindings, the request MUST fail.
  • WvcmException.ReasonCode.CANNOT_OVERWRITE: If there already is a binding named in the folder identified by this Folder, and overwrite is false, the request MUST fail.
  • WvcmException.ReasonCode.CYCLE_NOT_ALLOWED: If the server does not support cycles in the location namespace, and if resource identifies a folder, and if the folder identified by this Folder is a member of that folder, then the request MUST fail.
  • Since this method may cause a checkout to be attempted on this resource, see ControllableResource.doCheckin(javax.wvcm.ControllableResource.CheckinFlag[], javax.wvcm.Feedback) for additional reason codes.
  • Parameters:
    deep - whether to retrieve properties for all members of this Folder.
    feedback - the properties to be retrieved.
    Returns:
    an iterator of Resource objects that contain properties of the resources that are bound members of this Folder. If deep is true, then all members of the folder (including this Folder) are included.
    Throws:
    WvcmException
    Generated Sat 3-Jun-2017 12:50 AM

    Copyright © IBM 2017. All rights reserved.