public abstract class EntityResourceUploadActionTransformer<T> extends Object implements org.apache.commons.collections.Transformer
Map
from DocumentManagerPanel
.FileUploadForm.postUploadCustomAction()Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections.Transformer |
dao
A Transformer capable of returning an object for an id and updating the object if the input to it is the object itself.
|
Constructor and Description |
---|
EntityResourceUploadActionTransformer() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
derivePath(T entity,
Map context,
String path)
Use the raw path to convert it to desired path, associate it with the entity; and return the same 'desired path'.
|
org.apache.commons.collections.Transformer |
getAction()
An action Transformer that takes the following as input {objectId, savedPath of original file, renamedPath}
|
org.apache.commons.collections.Transformer |
getDao()
A Transformer capable of returning an object for an id and updating the object if the input to it is the object itself.
|
String |
getObjectIdNumberType()
The object Id provided is number type and will suffix this for use in
NumberUtils.createNumber(String) to specify the type |
void |
setAction(org.apache.commons.collections.Transformer action)
An action Transformer that takes the following as input {objectId, savedPath of original file, renamedPath}
|
void |
setDao(org.apache.commons.collections.Transformer dao)
A Transformer capable of returning an object for an id and updating the object if the input to it is the object itself.
|
void |
setObjectIdNumberType(String objectIdNumberType)
The object Id provided is number type and will suffix this for use in
NumberUtils.createNumber(String) to specify the type |
Object |
transform(Object input) |
protected org.apache.commons.collections.Transformer dao
DaoWrapperTransformer
public EntityResourceUploadActionTransformer()
protected abstract String derivePath(T entity, Map context, String path) throws Exception
entity
- as Tcontext
- as Mappath
- as StringException
@Transactional(readOnly=false) public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public org.apache.commons.collections.Transformer getDao()
DaoWrapperTransformer
public void setDao(org.apache.commons.collections.Transformer dao)
DaoWrapperTransformer
public org.apache.commons.collections.Transformer getAction()
public void setAction(org.apache.commons.collections.Transformer action)
public String getObjectIdNumberType()
NumberUtils.createNumber(String)
to specify the typepublic void setObjectIdNumberType(String objectIdNumberType)
NumberUtils.createNumber(String)
to specify the typeCopyright © 2018. All rights reserved.