public class PublishInfo
extends java.lang.Object
Modifier and Type | Field and 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 java.lang.String |
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 and Description |
---|
PublishInfo()
Create a new publish info.
|
PublishInfo(PublishInfo info)
Create a new publish info.
|
PublishInfo(java.lang.String pid,
java.lang.String publishtype,
java.lang.Class<?> mapping)
Create a new publish info.
|
PublishInfo(java.lang.String pid,
java.lang.String publishtype,
java.lang.String 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.String publishscope,
boolean multi,
java.lang.Class<?> mapping,
UnparsedExpression[] properties)
Create a new publish info.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.String val)
Add a property.
|
void |
addProperty(UnparsedExpression property)
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.
|
java.lang.String |
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(java.lang.String publishscope)
Set the publish scope.
|
void |
setPublishType(java.lang.String type)
Set the type.
|
public static final java.lang.String WP_URL
public static final java.lang.String WP_APPNAME
public static final java.lang.String WP_TARGET
public static final java.lang.String WP_USER
public static final java.lang.String WP_PASS
protected java.lang.String pid
protected java.lang.String publishtype
protected java.lang.String publishscope
protected boolean multi
protected ClassInfo mapping
protected java.util.List<UnparsedExpression> properties
public PublishInfo()
public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping)
pid
- The publish id, e.g. url.publishtype
- The publish type.public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.String publishscope, boolean multi, java.lang.Class<?> mapping, UnparsedExpression[] properties)
pid
- The publish id, e.g. url.publishtype
- The publish type.public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.String publishscope, boolean multi, java.lang.Class<?> mapping, java.lang.Object[] props)
pid
- The publish id, e.g. url.publishtype
- The publish type.public PublishInfo(PublishInfo info)
public java.lang.String getPublishId()
public void setPublishId(java.lang.String pid)
publishid
- The publishid to set.public java.lang.String getPublishType()
public void setPublishType(java.lang.String type)
type
- The type to set.public java.lang.String getPublishScope()
public void setPublishScope(java.lang.String publishscope)
publishscope
- The publish scope.public ClassInfo getMapping()
public void setMulti(boolean multi)
multi
- Set true, if multi-publish.public boolean isMulti()
public void setMapping(ClassInfo mapping)
mapping
- The mapping to set.public java.util.List<UnparsedExpression> getProperties()
public void setProperties(java.util.List<UnparsedExpression> properties)
properties
- The properties to set.public void addProperty(UnparsedExpression property)
property
- The property to add.public void addProperty(java.lang.String name, java.lang.String val)
property
- The property to add.