Package jadex.bridge.service
Class PublishInfo
- java.lang.Object
-
- jadex.bridge.service.PublishInfo
-
public class PublishInfo extends java.lang.Object
Info struct for service publishing details.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassInfo
mapping
The mapping information (e.g.protected boolean
multi
Flag for allowing publishing to multiple locations.protected java.lang.String
pid
The publish id.protected java.util.List<UnparsedExpression>
properties
The mapping properties.protected ServiceScope
publishscope
The publish scope.protected java.lang.String
publishtype
The publish type.static java.lang.String
WP_APPNAME
static java.lang.String
WP_PASS
static java.lang.String
WP_TARGET
static java.lang.String
WP_URL
static java.lang.String
WP_USER
-
Constructor Summary
Constructors Constructor Description PublishInfo()
Create a new publish info.PublishInfo(PublishInfo info)
Create a new publish info.PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, UnparsedExpression[] properties)
Create a new publish info.PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, java.lang.Object[] props)
Create a new publish info.PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping)
Create a new publish info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(UnparsedExpression property)
Add a property.void
addProperty(java.lang.String name, java.lang.String val)
Add a property.ClassInfo
getMapping()
Get the mapping information (e.g.java.util.List<UnparsedExpression>
getProperties()
Get the properties.java.lang.String
getPublishId()
Get the publishid.ServiceScope
getPublishScope()
Gets the publish scope.java.lang.String
getPublishType()
Get the type.boolean
isMulti()
Gets if the publishing should be done on multiple publishing services.void
setMapping(ClassInfo mapping)
Set the mapping information (e.g.void
setMulti(boolean multi)
Sets if the publishing should be done on multiple publishing services.void
setProperties(java.util.List<UnparsedExpression> properties)
Set the properties.void
setPublishId(java.lang.String pid)
Set the publishid.void
setPublishScope(ServiceScope publishscope)
Set the publish scope.void
setPublishType(java.lang.String type)
Set the type.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
WP_URL
public static final java.lang.String WP_URL
- See Also:
- Constant Field Values
-
WP_APPNAME
public static final java.lang.String WP_APPNAME
- See Also:
- Constant Field Values
-
WP_TARGET
public static final java.lang.String WP_TARGET
- See Also:
- Constant Field Values
-
WP_USER
public static final java.lang.String WP_USER
- See Also:
- Constant Field Values
-
WP_PASS
public static final java.lang.String WP_PASS
- See Also:
- Constant Field Values
-
pid
protected java.lang.String pid
The publish id.
-
publishtype
protected java.lang.String publishtype
The publish type.
-
publishscope
protected ServiceScope publishscope
The publish scope.
-
multi
protected boolean multi
Flag for allowing publishing to multiple locations.
-
mapping
protected ClassInfo mapping
The mapping information (e.g. annotated interface).
-
properties
protected java.util.List<UnparsedExpression> properties
The mapping properties.
-
-
Constructor Detail
-
PublishInfo
public PublishInfo()
Create a new publish info.
-
PublishInfo
public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping)
Create a new publish info.- Parameters:
pid
- The publish id, e.g. url.publishtype
- The publish type.
-
PublishInfo
public PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, UnparsedExpression[] properties)
Create a new publish info.- Parameters:
pid
- The publish id, e.g. url.publishtype
- The publish type.
-
PublishInfo
public PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, java.lang.Object[] props)
Create a new publish info. Convenience constructor that creates unparsed expressions from a string array containing consecutive name/value pairs.- Parameters:
pid
- The publish id, e.g. url.publishtype
- The publish type.
-
PublishInfo
public PublishInfo(PublishInfo info)
Create a new publish info.
-
-
Method Detail
-
getPublishId
public java.lang.String getPublishId()
Get the publishid.- Returns:
- the publishid.
-
setPublishId
public void setPublishId(java.lang.String pid)
Set the publishid.- Parameters:
publishid
- The publishid to set.
-
getPublishType
public java.lang.String getPublishType()
Get the type.- Returns:
- the type.
-
setPublishType
public void setPublishType(java.lang.String type)
Set the type.- Parameters:
type
- The type to set.
-
getPublishScope
public ServiceScope getPublishScope()
Gets the publish scope.- Returns:
- The publish scope.
-
setPublishScope
public void setPublishScope(ServiceScope publishscope)
Set the publish scope.- Parameters:
publishscope
- The publish scope.
-
getMapping
public ClassInfo getMapping()
Get the mapping information (e.g. annotated interface).- Returns:
- The mapping.
-
setMulti
public void setMulti(boolean multi)
Sets if the publishing should be done on multiple publishing services.- Parameters:
multi
- Set true, if multi-publish.
-
isMulti
public boolean isMulti()
Gets if the publishing should be done on multiple publishing services.- Returns:
- True, if multi-publish.
-
setMapping
public void setMapping(ClassInfo mapping)
Set the mapping information (e.g. annotated interface).- Parameters:
mapping
- The mapping to set.
-
getProperties
public java.util.List<UnparsedExpression> getProperties()
Get the properties.- Returns:
- the properties.
-
setProperties
public void setProperties(java.util.List<UnparsedExpression> properties)
Set the properties.- Parameters:
properties
- The properties to set.
-
addProperty
public void addProperty(UnparsedExpression property)
Add a property.- Parameters:
property
- The property to add.
-
addProperty
public void addProperty(java.lang.String name, java.lang.String val)
Add a property.- Parameters:
property
- The property to add.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
-
-