c

dynamics.cli

WebResourcesCommand

class WebResourcesCommand extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebResourcesCommand
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebResourcesCommand(context: DynamicsContext)

Type Members

  1. case class Delete(id: String) extends UploadAction with Product with Serializable
  2. type FileAction = (UploadAction, WebResourceFile)

    UploadAction + WebResourceFile

  3. case class NoAction(reason: String) extends UploadAction with Product with Serializable
  4. case class Update(id: String) extends UploadAction with Product with Serializable
  5. sealed trait UploadAction extends AnyRef
  6. type WRKleisli = Kleisli[IO, (AppConfig, Seq[WebResourceOData]), Unit]
  7. case class WebResourceFile(fspath: String, resourceName: String, ext: Option[String] = None) extends Product with Serializable

    Web Resource OS file descriptor.

    Web Resource OS file descriptor.

    fspath

    The OS filesystem path that was used to create the remaining args.

    resourceName

    From the publisher prefix segment forward from fspath.

    ext

    Extension of filename.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _download(): WRKleisli
  5. def _dumpRaw(): WRKleisli

    Dumps the raw json response for the selected Web Resources.

  6. def addToSolution(id: String, soln: String, componentType: Int = 61): IO[AddSolutionComponentResponse]

    Add a WR to a Solution.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val badChars: String
  9. def base64FromFile(path: String): IO[String]

    Read file, convert to baes64.

  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. val context: DynamicsContext
  12. val defaultAttrs: Seq[String]
  13. def delete(): Action
  14. val deleteSourceMaps: Action

    Delete all source maps (.js.map) web resources given a solution unique name.

    Delete all source maps (.js.map) web resources given a solution unique name. Only this extension is allowed in order to avoid accidental deletes.

  15. def determineCreateOrUpdateActions(files: Traversable[String], prefix: Option[String], f: (String) ⇒ IO[Option[WebResourceOData]], defaultExt: Option[String] = None, isIllegal: (String) ⇒ Boolean = isIllegalName, skip: (String) ⇒ Boolean = _ => false): Traversable[IO[FileAction]]

    Determine the action to take or each resource.

    Determine the action to take or each resource. Requires retrieving the web resource from the server to if the resource exists. This method does not issue deletes. It's one way between OS and server. With Seq[] parameter, we may be able to optimize the fetch.

    files

    List of OS paths.

    prefix

    Optional prefix. Used to find the resource name in the OS path.

    f

    Given a resource name, return the Web Resource from the server.

    defaultExt

    ???

    returns

    Traversable of FileAction wrapped in the server check effect. TODO: Optimize checking each resource for its status on the server.

  16. def download(): Kleisli[IO, AppConfig, Unit]
  17. def dumpRaw(): Kleisli[IO, AppConfig, Unit]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def filter(wr: Traversable[WebResourceOData], filters: Seq[String]): Seq[WebResourceOData]
    Attributes
    protected
  21. val filterOn: Seq[String]
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def format(about: String, msg: String): String
  24. def get(command: String): Action
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def getList(attrs: Seq[String] = defaultAttrs): IO[Seq[WebResourceOData]]
  27. def getWRByName(name: String): IO[Option[WebResourceOData]]

    Get a web resource by name.

  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def interpretGlob(g: String): Traversable[String]

    Expand glob to a list of WebResourceFile descriptors.

    Expand glob to a list of WebResourceFile descriptors. If pathname ends in in slash (/), expand to all the files in all the directories below. If pathname is a directory, expand to all the files in all the directories below.

  30. val isIllegalName: (String) ⇒ Boolean
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def list(): Action

    List Web Resources but apply a filter.

  33. def log[A](prefix: String): Pipe[IO, A, A]
    Attributes
    protected
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. def processWRAction(config: AppConfig, sources: Traversable[IO[FileAction]]): IO[Unit]

    Process each FileAction and optionally publish them.

  38. def publishXml(id: Traversable[String]): IO[Unit]

    Publish a WR.

  39. val selectUpload: Action
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def unpublish(id: String): IO[Unit]

    Not sure there is a way to unpublish a resource via API.

  43. def upload(): Action
  44. def uploadWR(id: String, json: String): IO[String]

    Upload action.

    Upload action. Return entity id.

  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  48. def watchAndUpload(): Action
  49. def withData: Kleisli[IO, AppConfig, (AppConfig, Seq[WebResourceOData])]

    Combinator to obtain web resources automatically

  50. def writeToFile(path: String, base64Content: String): IO[Unit]

    Write content to file creating paths if path contains a path.

    Write content to file creating paths if path contains a path.

    path

    Path name, both path and file.

    base64Content

    Base64 encoded string.

    returns

    Successful future if file written, otherwise a Future failure.

  51. object Create extends UploadAction with Product with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped