public class KcAttachmentServiceImpl extends Object implements KcAttachmentService
| Constructor and Description |
|---|
KcAttachmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkAndReplaceInvalidCharacters(String text)
This method checks string for invalid characters and replaces with underscores.
|
String |
checkAndReplaceSpecialCharacters(String text)
This method checks for special characters in strings and replaces
them with underscores.
|
protected String |
getDefaultIcon() |
String |
getFileTypeIcon(KcAttachment attachment)
Currently determining the icon based only on the mime type and using the default icon
if a mime type is not mapped in mimeTypeIcons.
|
String |
getInvalidCharacters(String text)
This method returns the invalid characters in the file name.
|
protected Map<String,String> |
getMimeTypeIcons() |
boolean |
getSpecialCharacter(String text)
This method check the Special characters in the string.
|
void |
setDefaultIcon(String defaultIcon) |
void |
setMimeTypeIcons(Map<String,String> mimeTypeIcons) |
public String getFileTypeIcon(KcAttachment attachment)
getFileTypeIcon in interface KcAttachmentServiceKcAttachmentService.getFileTypeIcon(org.kuali.kra.bo.KcAttachment)protected String getDefaultIcon()
public void setDefaultIcon(String defaultIcon)
public String getInvalidCharacters(String text)
KcAttachmentServicegetInvalidCharacters in interface KcAttachmentServicepublic String checkAndReplaceInvalidCharacters(String text)
checkAndReplaceInvalidCharacters in interface KcAttachmentServiceKcAttachmentService.checkAndReplaceInvalidCharacters(java.lang.String)public boolean getSpecialCharacter(String text)
KcAttachmentServicegetSpecialCharacter in interface KcAttachmentServicepublic String checkAndReplaceSpecialCharacters(String text)
KcAttachmentServicecheckAndReplaceSpecialCharacters in interface KcAttachmentServiceCopyright © 2013 The Kuali Foundation. All Rights Reserved.