Package com.easydesk.attribute
Class TestSheetFileAttribute
java.lang.Object
com.easydesk.om.BaseAttributeValue
com.easydesk.om.AttributeValue
com.easydesk.attribute.FreeFormAttribute
com.easydesk.attribute.FileAttribute
com.easydesk.attribute.TestSheetFileAttribute
- All Implemented Interfaces:
Viewable,Cacheable,Observed,Retrievable,Serializable,ColumnAccessByName,ObjectModel,Persistent
시험지 원문 파일 속성이다. 지금 서비스 되고 있는 System instance 가 문서를 처리를 담당하는 instance 가 아니면 등록된 문서처리 System 으로 파일을 전송한다.
- Version:
- $Revision: 1.110 $ $Date: 2008/12/25 04:03:44 $
- Author:
- Youngho Cho
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.easydesk.om.AttributeValue
AttributeValue.AccessEnum -
Field Summary
Fields inherited from class com.easydesk.attribute.FileAttribute
bt, GET_DATAFields inherited from class com.easydesk.om.AttributeValue
activitySet, chainedFields inherited from interface com.easydesk.validator.Retrievable
KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFixIt()자동 문서처리가 실패하였을경우 수동으로 문서처리가 완료 되었는지 확인boolean문서 처리중 hwp2html 이 error 를 발생하였는지byte[]getImageData(String name) 주어진 이름의 Image Data 를 구한다.getResourcePath(String name) 문서 파일과 같은 폴더에 있는 resource 의 경로를 구한다.getResourcePath(String name, boolean replace) 문서 파일과 같은 폴더에 있는 resource 의 경로를 구한다.saveFile()파일 System 에 저장한다.voidsaveParsableDocuments(Map pages) 문서 처리된 것을 html 로 File System 에 저장한다.Methods inherited from class com.easydesk.attribute.FileAttribute
copy, copyFileTo, copyFileTo, getActivityDescription, getByte, getData, getData, getData, getDisplayedValue, getDisplayedValue, getDocument, getExtension, getFile, getFileItem, getFormatter, getFullPath, getRelativePath, hasFile, hasValue, setByte, setFileItem, setProperties, setRandomValueMethods inherited from class com.easydesk.attribute.FreeFormAttribute
init, loadResources, setResourcesMethods inherited from class com.easydesk.om.AttributeValue
alwaysNeedActivity, clear, copy, copy, endActivitySet, getActivity, getAttachment, getChainedValue, getChainedValue, getChainedValue, getInputValue, getLocalizedValue, getLocalizedValue, getLocalizedValue, getLocalizedValue, getLocalizedValues, getLocalizedValues, getMethodCache, getModuleAttribute, getNewInstance, getNewInstance, getNumericValues, getNumericValues, getNumericValuesAsString, getNumericValuesAsString, getObserverOption, getOptionIdAsString, getOptionIds, getOptionIds, getOptionIdsAsString, getOptionIdsAsString, getOptionValues, getPossibleTransitionCount, getPossibleTransitionCount, getPrimitiveOptionIds, getPrimitiveUserIds, getQueryKey, getRelativePath, getRelativePath, getRepository, getResource, getTransactionId, getUser, getUserIds, getValueList, getValueList, getValues, getValues, getValuesAsString, getValuesAsString, hasAlreadyChained, isModified, isQuickSearchAttribute, isSet, isSetOnly, needActivity, performAfter, performBefore, register, save, setActivity, setActivityDescription, setAttachment, setChainedValue, setInputValue, setNumericValue, setNumericValueOnly, setNumericValues, setOptionId, setOptionIdOnly, setOptionIds, setOptionValues, setPrimitiveOptionIds, setPrimitiveUserIds, setTransactionId, setUser, setUserId, setUserIdOnly, setUserIds, setValue, setValueOnly, setValues, startActivitySet, toStringMethods inherited from class com.easydesk.om.BaseAttributeValue
copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getAttributeOption, getAttributeOption, getByName, getByPeerName, getByPosition, getDepend, getDepend, getDependId, getEasyDeskUserImpl, getEasyDeskUserImpl, getFieldNames, getForeignKeyForAttribute, getForeignKeyForAttributeOption, getForeignKeyForDepend, getForeignKeyForEasyDeskUserImpl, getForeignKeyForItem, getItem, getItem, getItemId, getNumericValue, getOptionId, getPeer, getPrimaryKey, getTableMap, getUserId, getValue, getValueId, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isRemoved, isSaving, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setAttributeOption, setAttributeOptionKey, setByName, setByPeerName, setByPosition, setDeleted, setDepend, setDependId, setDependKey, setEasyDeskUserImpl, setEasyDeskUserImplKey, setItem, setItemId, setItemKey, setLoading, setModified, setNew, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, setValueId, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.attribute.Viewable
getComponentName
-
Constructor Details
-
TestSheetFileAttribute
public TestSheetFileAttribute()새로운TestSheetFileAttribute인스턴스를 생성한다.
-
-
Method Details
-
saveFile
파일 System 에 저장한다. OS 를- Overrides:
saveFilein classFileAttribute- Returns:
- saved location
- Throws:
Exception- DOCUMENT ME!
-
getImageData
주어진 이름의 Image Data 를 구한다.- Parameters:
name- image 의 상대 경로- Returns:
- byte[] image data
- Throws:
Exception- image 를 읽는 중 오류가 발생한 경우
-
existsError
문서 처리중 hwp2html 이 error 를 발생하였는지- Returns:
- exists or not
- Throws:
TorqueException- 값 조회 중 오류가 발생한 경우
-
canFixIt
public boolean canFixIt()자동 문서처리가 실패하였을경우 수동으로 문서처리가 완료 되었는지 확인- Returns:
- 수동 문서처리가 완료되었으면
true
-
getResourcePath
문서 파일과 같은 폴더에 있는 resource 의 경로를 구한다. 이름의 ',' 는 '/' 로 변환한다.- Parameters:
name- resource 의 상대 경로- Returns:
- File
- Throws:
Exception- 경로를 구하는 중 오류가 발생한 경우
-
getResourcePath
문서 파일과 같은 폴더에 있는 resource 의 경로를 구한다.- Parameters:
name- resource 의 상대 경로replace- hwp, doc 파일이 아닌 경우 이름의 ',' 를 '/' 로 변환할지 여부- Returns:
- File
- Throws:
Exception- 경로를 구하는 중 오류가 발생한 경우
-
saveParsableDocuments
문서 처리된 것을 html 로 File System 에 저장한다. Format 은 pages/page.html 이다.- Parameters:
pages- { pageid, html Strings }- Throws:
Exception- 파일 저장 중 오류가 발생한 경우
-