Package com.fluig.sdk.service
Interface MentionService
-
- All Superinterfaces:
BaseAPIService
public interface MentionService extends BaseAPIService
Fornece acesso aos serviços de menções.- Since:
- 1.5.13
-
-
Field Summary
Fields Modifier and Type Field Description static String
JNDI_NAME
static String
JNDI_REMOTE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
formatText(Long objectId, String objectClass, String text, String formatPattern)
Formats a text with mentions acording to the given pattern.String
formatText(String text, String formatPattern)
Formats a text with mentions acording to the given pattern.-
Methods inherited from interface com.fluig.sdk.service.BaseAPIService
expand, generateOrderParam
-
-
-
-
Field Detail
-
JNDI_NAME
static final String JNDI_NAME
- See Also:
- Constant Field Values
-
JNDI_REMOTE_NAME
static final String JNDI_REMOTE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
formatText
String formatText(String text, String formatPattern) throws NamingException
Formats a text with mentions acording to the given pattern. Type @[alias] in the formatPattern to replace with the mentioned's alias. Type @[name] in the formatPattern to replace with the mentioned's name.- Parameters:
text
- text with mentionsformatPattern
- pattern to format the mentions inside the text- Throws:
NamingException
-
formatText
String formatText(Long objectId, String objectClass, String text, String formatPattern) throws NamingException
Formats a text with mentions acording to the given pattern. Type @[alias] in the formatPattern to replace with the mentioned's alias. Type @[name] in the formatPattern to replace with the mentioned's name.- Parameters:
objectId
- id of the object that has made the mentionsobjectClass
- class of the object that has made the mentionstext
- text with mentionsformatPattern
- pattern to format the mentions inside the text- Throws:
NamingException
-
-