Package step.functions.packages
Class FunctionPackage
- java.lang.Object
-
- step.core.accessors.AbstractIdentifiableObject
-
- step.core.accessors.AbstractOrganizableObject
-
- step.functions.packages.FunctionPackage
-
public class FunctionPackage extends step.core.accessors.AbstractOrganizableObject
Represents a package ofFunction
-
-
Field Summary
Fields Modifier and Type Field Description protected List<org.bson.types.ObjectId>
functions
Keep track of the functions added by this packageprotected Map<String,String>
packageAttributes
protected String
packageLibrariesLocation
protected String
packageLocation
protected String
referencePackageId
protected boolean
watchForChange
-
Constructor Summary
Constructors Constructor Description FunctionPackage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.bson.types.ObjectId>
getFunctions()
Map<String,String>
getPackageAttributes()
String
getPackageLibrariesLocation()
String
getPackageLocation()
String
getReferencePackageId()
boolean
isWatchForChange()
void
setFunctions(List<org.bson.types.ObjectId> functions)
void
setPackageAttributes(Map<String,String> packageAttributes)
void
setPackageLibrariesLocation(String packageLibrariesLocation)
void
setPackageLocation(String packageLocation)
void
setReferencePackageId(String referencePackageId)
void
setWatchForChange(boolean watchForChange)
String
toString()
-
Methods inherited from class step.core.accessors.AbstractOrganizableObject
addAttribute, getAttributes, setAttributes
-
-
-
-
Field Detail
-
packageLibrariesLocation
protected String packageLibrariesLocation
-
packageLocation
protected String packageLocation
-
referencePackageId
protected String referencePackageId
-
watchForChange
protected boolean watchForChange
-
functions
protected List<org.bson.types.ObjectId> functions
Keep track of the functions added by this package
-
-
Method Detail
-
getPackageLibrariesLocation
public String getPackageLibrariesLocation()
- Returns:
- the resource path to the package libraries. Package libraries are either a folder of jar or DLLs
-
setPackageLibrariesLocation
public void setPackageLibrariesLocation(String packageLibrariesLocation)
-
getPackageLocation
public String getPackageLocation()
- Returns:
- the path to the package file. might be a
Resource
-
setReferencePackageId
public void setReferencePackageId(String referencePackageId)
-
getReferencePackageId
public String getReferencePackageId()
- Returns:
- the path to the package file. might be a
Resource
-
setPackageLocation
public void setPackageLocation(String packageLocation)
-
isWatchForChange
public boolean isWatchForChange()
- Returns:
- true if changes to the content of the package file have to be tracked to automatically update the package
-
setWatchForChange
public void setWatchForChange(boolean watchForChange)
-
getPackageAttributes
public Map<String,String> getPackageAttributes()
- Returns:
- the additional attributes that have to be added to the attributes of the functions contained in this package
-
getFunctions
public List<org.bson.types.ObjectId> getFunctions()
- Returns:
- the ID of the functions tracked by this package
-
setFunctions
public void setFunctions(List<org.bson.types.ObjectId> functions)
-
-