|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebInterfaceContext
When rendering web fragments, this context is used for retrieval of Confluence content information.
It can be converted to and from a Map to fit with the Condition and WebInterfaceManager interfaces.
The map returned by toMap()
is also used as a Velocity context for rendering URLs.
Parameters that are only used in a couple of places can be retrieved without type-safe
accessors via getParameter(String)
or hasParameter(String)
.
BaseConfluenceCondition
,
ConfluenceWebInterfaceManager
Field Summary | |
---|---|
static String |
CONTEXT_KEY_ATTACHMENT
|
static String |
CONTEXT_KEY_COMMENT
|
static String |
CONTEXT_KEY_DRAFT
|
static String |
CONTEXT_KEY_EDIT_PAGE_RESTRICTED
|
static String |
CONTEXT_KEY_LABEL
|
static String |
CONTEXT_KEY_PAGE
|
static String |
CONTEXT_KEY_PERSONAL_INFORMATION
|
static String |
CONTEXT_KEY_SPACE
|
static String |
CONTEXT_KEY_TARGET_USER
|
static String |
CONTEXT_KEY_USER
|
Method Summary | |
---|---|
Attachment |
getAttachment()
Returns the attachment related to the web interface state, or null if there is no attachment. |
Comment |
getComment()
Returns the comment related to the web interface state, or null if there is no comment. |
Draft |
getDraft()
Returns a draft related to the web interface state, or null if there is no draft. |
DisplayableLabel |
getLabel()
Returns the label related to the web interface state, or null if there is no label. |
AbstractPage |
getPage()
Returns the page related to the web interface state, or null if there is no page. |
Object |
getParameter(String key)
Returns a custom parameter, or null if the parameter has not been set. |
PersonalInformation |
getPersonalInformation()
Returns the personal information (i.e. |
Space |
getSpace()
Returns the space related to the web interface state, or null if there is no space. |
com.atlassian.user.User |
getTargetUser()
Returns the target user of the action, or null if there is no target user. |
com.atlassian.user.User |
getUser()
Returns the current user, or null if there is no user logged in. |
boolean |
hasParameter(String key)
Returns true if the parameter has been set (even if it is set to null). |
boolean |
isEditPageRestricted()
Indicates if the current edit page is restricted (i.e. |
Map<String,Object> |
toMap()
Converts the parameters into a map using the "context keys" defined as constants in this class. |
Field Detail |
---|
static final String CONTEXT_KEY_USER
static final String CONTEXT_KEY_TARGET_USER
static final String CONTEXT_KEY_PAGE
static final String CONTEXT_KEY_DRAFT
static final String CONTEXT_KEY_SPACE
static final String CONTEXT_KEY_COMMENT
static final String CONTEXT_KEY_LABEL
static final String CONTEXT_KEY_ATTACHMENT
static final String CONTEXT_KEY_PERSONAL_INFORMATION
static final String CONTEXT_KEY_EDIT_PAGE_RESTRICTED
Method Detail |
---|
com.atlassian.user.User getUser()
com.atlassian.user.User getTargetUser()
AbstractPage getPage()
Draft getDraft()
Space getSpace()
Comment getComment()
DisplayableLabel getLabel()
Attachment getAttachment()
PersonalInformation getPersonalInformation()
Object getParameter(String key)
boolean hasParameter(String key)
Map<String,Object> toMap()
boolean isEditPageRestricted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |