Package | Description |
---|---|
com.sap.cds.services.messages |
Modifier and Type | Method and Description |
---|---|
Message |
Message.code(String code)
Adds the passed
code to the current message. |
Message |
Messages.error(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.ERROR to the current request with the given message text or format and format parameters. |
Message |
Messages.info(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.INFO to the current request with the given message text or format and format parameters. |
Message |
Message.longTextUrl(String longTextUrl)
Adds the passed
longTextUrl to the current message. |
Message |
Messages.success(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.SUCCESS to the current request with the given message text or format and format parameters. |
<E extends com.sap.cds.ql.StructuredType<E>> |
Message.target(Class<E> entity,
Function<E,Object> path)
Adds the passed root entity and CQN path as target to the current
Message . |
Message |
Message.target(String target)
Sets the provided string-based target.
|
<E extends com.sap.cds.ql.StructuredType<E>> |
Message.target(String prefix,
Class<E> entity,
Function<E,Object> path)
Adds the passed root entity and CQN path as target to the current
Message . |
Message |
Message.target(String entity,
Function<com.sap.cds.ql.StructuredType<?>,Object> path)
Adds the passed root entity and CQN path as target to the current
Message . |
Message |
Message.target(String prefix,
String entity,
Function<com.sap.cds.ql.StructuredType<?>,Object> path)
Adds the passed root entity and CQN path as target to the current
Message . |
Message |
Messages.warn(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.WARNING to the current request with the given message text or format and format parameters. |
Modifier and Type | Method and Description |
---|---|
Stream<Message> |
Messages.stream()
Returns a
Stream of the added messages in the current request context |
Copyright © 2021. All rights reserved.