public abstract class ExportInfoMapping extends Object implements BaseMapping<ExportInfo,Object>
| Modifier and Type | Field and Description |
|---|---|
static String |
NODE_NAME |
JCR_TYPE_NAME_CONSTANT_NAME| Constructor and Description |
|---|
ExportInfoMapping() |
| Modifier and Type | Method and Description |
|---|---|
ExportErrorMapping |
createError(String errorCode) |
ExportedStateMapping |
createExportedState(String portletHandle) |
protected abstract List<ExportErrorMapping> |
getErrors() |
abstract long |
getExpirationTime() |
abstract InputStream |
getExportContext() |
abstract List<ExportedStateMapping> |
getExportedStates() |
abstract long |
getExportTime() |
Class<ExportInfo> |
getModelClass()
Retrieves the Java class of the model object this BaseMapping deals with.
|
void |
initFrom(ExportInfo exportInfo)
Initializes this BaseMapping from the data of the specified model object
|
abstract ExportErrorMapping |
internalCreateError(String errorCode) |
abstract ExportedStateMapping |
internalCreateExportedState(String portletHandle) |
abstract void |
setExpirationTime(long expirationTime) |
abstract void |
setExportContext(InputStream exportContext) |
abstract void |
setExportTime(long exportTime) |
ExportInfo |
toModel(ExportInfo initial,
Object registry)
Converts this BaseMapping into a model object, creating a new one if needed or resetting the specified initial value to the persisted state.
|
public static final String NODE_NAME
public abstract long getExportTime()
public abstract void setExportTime(long exportTime)
public abstract long getExpirationTime()
public abstract void setExpirationTime(long expirationTime)
public abstract InputStream getExportContext()
public abstract void setExportContext(InputStream exportContext)
public abstract List<ExportedStateMapping> getExportedStates()
public abstract ExportedStateMapping internalCreateExportedState(String portletHandle)
public ExportedStateMapping createExportedState(String portletHandle)
protected abstract List<ExportErrorMapping> getErrors()
public abstract ExportErrorMapping internalCreateError(String errorCode)
public ExportErrorMapping createError(String errorCode)
public void initFrom(ExportInfo exportInfo)
BaseMappinginitFrom in interface BaseMapping<ExportInfo,Object>exportInfo - the model object to initialize frompublic ExportInfo toModel(ExportInfo initial, Object registry)
BaseMappingtoModel in interface BaseMapping<ExportInfo,Object>initial - a potentially null initial value that will be reset to the persisted stateregistry - the registry associated with instances of the specified model typepublic Class<ExportInfo> getModelClass()
BaseMappinggetModelClass in interface BaseMapping<ExportInfo,Object>Copyright © 2006-2014 GateIn. All Rights Reserved.