Package fr.becpg.repo.entity.impl
Class EntityIconServiceImpl
java.lang.Object
fr.becpg.repo.entity.impl.EntityIconServiceImpl
- All Implemented Interfaces:
EntityIconService
@Service("entityIconService")
public class EntityIconServiceImpl
extends Object
implements EntityIconService
EntityIconServiceImpl class.
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate org.alfresco.service.cmr.repository.ContentServiceprivate static final Stringprivate static final Stringprivate static final Stringprivate EntityServiceprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeCPGException(String message, Exception cause) beCPGException.static StringencodeImage(InputStream inputStream) encodeImage.extractCSSClassName(String fileName) extractCSSClassName.voidwriteIconCSS(OutputStream out) writeIconCSS.
-
Field Details
-
entityService
-
contentService
@Autowired private org.alfresco.service.cmr.repository.ContentService contentService -
DATA_IMAGE_PREFIX
- See Also:
-
DATA_BASE64_ENCODING
- See Also:
-
URL_OPEN_TARGET_PATTERN
- See Also:
-
URL_CLOSE_TARGET_PATTERN
- See Also:
-
OPEN_CURLY_BRACKET
- See Also:
-
CLOSE_CURLY_BRACKET
- See Also:
-
DOUBLE_DASH
- See Also:
-
COLON
- See Also:
-
-
Constructor Details
-
EntityIconServiceImpl
public EntityIconServiceImpl()
-
-
Method Details
-
writeIconCSS
writeIconCSS.
- Specified by:
writeIconCSSin interfaceEntityIconService- Parameters:
out- aOutputStreamobject
-
extractCSSClassName
extractCSSClassName.
-
encodeImage
encodeImage.
- Parameters:
inputStream- aInputStreamobject- Returns:
- a
Stringobject - Throws:
IOException- if any.
-
beCPGException
beCPGException.
- Parameters:
message- aStringobjectcause- aExceptionobject- Returns:
- a
BeCPGExceptionobject
-