class WebResourcesCommand extends AnyRef
- Alphabetic
- By Inheritance
- WebResourcesCommand
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new WebResourcesCommand(context: DynamicsContext)
Type Members
- case class Delete(id: String) extends UploadAction with Product with Serializable
-
type
FileAction = (UploadAction, WebResourceFile)
UploadAction + WebResourceFile
- case class NoAction(reason: String) extends UploadAction with Product with Serializable
- case class Update(id: String) extends UploadAction with Product with Serializable
- sealed trait UploadAction extends AnyRef
- type WRKleisli = Kleisli[IO, (AppConfig, Seq[WebResourceOData]), Unit]
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def _download(): WRKleisli
-
def
_dumpRaw(): WRKleisli
Dumps the raw json response for the selected Web Resources.
-
def
addToSolution(id: String, soln: String, componentType: Int = 61): IO[AddSolutionComponentResponse]
Add a WR to a Solution.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val badChars: String
-
def
base64FromFile(path: String): IO[String]
Read file, convert to baes64.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val context: DynamicsContext
- val defaultAttrs: Seq[String]
- def delete(): Action
-
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.
-
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.
- def download(): Kleisli[IO, AppConfig, Unit]
- def dumpRaw(): Kleisli[IO, AppConfig, Unit]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filter(wr: Traversable[WebResourceOData], filters: Seq[String]): Seq[WebResourceOData]
- Attributes
- protected
- val filterOn: Seq[String]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def format(about: String, msg: String): String
- def get(command: String): Action
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getList(attrs: Seq[String] = defaultAttrs): IO[Seq[WebResourceOData]]
-
def
getWRByName(name: String): IO[Option[WebResourceOData]]
Get a web resource by name.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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.
- val isIllegalName: (String) ⇒ Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
list(): Action
List Web Resources but apply a filter.
-
def
log[A](prefix: String): Pipe[IO, A, A]
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
processWRAction(config: AppConfig, sources: Traversable[IO[FileAction]]): IO[Unit]
Process each FileAction and optionally publish them.
-
def
publishXml(id: Traversable[String]): IO[Unit]
Publish a WR.
- val selectUpload: Action
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unpublish(id: String): IO[Unit]
Not sure there is a way to unpublish a resource via API.
- def upload(): Action
-
def
uploadWR(id: String, json: String): IO[String]
Upload action.
Upload action. Return entity id.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def watchAndUpload(): Action
-
def
withData: Kleisli[IO, AppConfig, (AppConfig, Seq[WebResourceOData])]
Combinator to obtain web resources automatically
-
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.
- object Create extends UploadAction with Product with Serializable