|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.servlets.post.impl.helper.RequestProperty
public class RequestProperty
Encapsulates all infos from the respective request parameters that are needed to create the repository property
Field Summary | |
---|---|
static String |
DEFAULT_IGNORE
|
static String |
DEFAULT_NULL
|
Constructor Summary | |
---|---|
RequestProperty(String path)
|
Method Summary | |
---|---|
RequestParameter[] |
getDefaultValues()
|
String |
getName()
|
String |
getParentPath()
|
String |
getPath()
|
String |
getRepositorySource()
Returns the absolute path of the repository item from which the content for this property is to be copied or moved. |
String[] |
getStringValues()
Returns the assembled string array out of the provided request values and default values. |
String |
getTypeHint()
|
RequestParameter[] |
getValues()
|
boolean |
hasMultiValueTypeHint()
|
boolean |
hasRepositoryCopySource()
Returns true if the content of this property is to be set
by copying content from another repository item. |
boolean |
hasRepositoryMoveSource()
Returns true if the content of this property is to be set
by moving content from another repository item. |
boolean |
hasValues()
|
boolean |
isDelete()
Returns true if the repository item described by this is
to be deleted before setting new content to it. |
boolean |
isFileUpload()
|
boolean |
providesValue()
Checks if this property provides any values. |
void |
setDefaultValues(RequestParameter[] defaultValues)
|
void |
setDelete(boolean isDelete)
Specifies whether this property should be deleted before any new content is to be set according to the values stored. |
void |
setIgnoreBlanks(boolean b)
|
void |
setRepositorySource(String sourcePath,
boolean isMove)
Sets the path of the repository item from which the content for this property is to be copied or moved. |
void |
setTypeHintValue(String typeHint)
|
void |
setUseDefaultWhenMissing(boolean b)
|
void |
setValues(RequestParameter[] values)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_IGNORE
public static final String DEFAULT_NULL
Constructor Detail |
---|
public RequestProperty(String path)
Method Detail |
---|
public String getTypeHint()
public boolean hasMultiValueTypeHint()
public void setTypeHintValue(String typeHint)
public String getPath()
public String getName()
public String getParentPath()
public boolean hasValues()
public RequestParameter[] getValues()
public void setValues(RequestParameter[] values)
public RequestParameter[] getDefaultValues()
public void setDefaultValues(RequestParameter[] defaultValues)
public boolean isFileUpload()
public boolean providesValue()
true
if this property provides valuespublic String[] getStringValues()
null
if the property needs to be
removed.public void setDelete(boolean isDelete)
isDelete
- true
if the repository item described by
this is to be deleted before any other operation.public boolean isDelete()
true
if the repository item described by this is
to be deleted before setting new content to it.
public void setRepositorySource(String sourcePath, boolean isMove)
sourcePath
- The path of the repository item to get the content fromisMove
- true
if the source content is to be moved,
otherwise the source content is copied from the repository
item.public boolean hasRepositoryMoveSource()
true
if the content of this property is to be set
by moving content from another repository item.
getRepositorySource()
public boolean hasRepositoryCopySource()
true
if the content of this property is to be set
by copying content from another repository item.
getRepositorySource()
public String getRepositorySource()
hasRepositoryCopySource()
,
hasRepositoryMoveSource()
,
setRepositorySource(String, boolean)
public void setIgnoreBlanks(boolean b)
public void setUseDefaultWhenMissing(boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |