public class DefaultColumnLayoutManager extends Object implements ColumnLayoutManager
Constructor and Description |
---|
DefaultColumnLayoutManager(FieldManager fieldManager,
OfBizDelegator ofBizDelegator,
UserKeyService userKeyService,
com.atlassian.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
ColumnLayout |
getColumnLayout(com.atlassian.crowd.embedded.api.User remoteUser)
Get the columns layout for a user, if the user does not have one the default is returned
|
ColumnLayout |
getColumnLayout(com.atlassian.crowd.embedded.api.User remoteUser,
SearchRequest searchRequest)
Get the columns layout for a searchRequest, if the searchRequest does not have one the user's columns are
returned.
|
ColumnLayout |
getDefaultColumnLayout() |
ColumnLayout |
getDefaultColumnLayout(com.atlassian.crowd.embedded.api.User remoteUser)
Get the default Layout, and filter out the columns which a user cannot see
|
EditableDefaultColumnLayout |
getEditableDefaultColumnLayout()
Get an editable default column layout for the system
|
EditableSearchRequestColumnLayout |
getEditableSearchRequestColumnLayout(com.atlassian.crowd.embedded.api.User user,
SearchRequest searchRequest)
Get an editable column layout for the searchRequest, returns null if it does not have one
|
EditableUserColumnLayout |
getEditableUserColumnLayout(com.atlassian.crowd.embedded.api.User user)
Get an editable column layout for the user, returns null if they do not have one
|
boolean |
hasColumnLayout(Long filterId)
Tells whether the filter with the given id has columns configured.
|
boolean |
hasColumnLayout(SearchRequest searchRequest)
Tells whether the given
filter has columns configured. |
boolean |
hasColumnLayout(com.atlassian.crowd.embedded.api.User user)
Tells whether the given user has a column layout.
|
boolean |
hasDefaultColumnLayout()
Tells whether the system has a default column layout object in the persistent store.
|
void |
onClearCache(ClearCacheEvent event) |
void |
refresh() |
void |
restoreDefaultColumnLayout()
Sets the ColumnLayout in use for users who have not defined their own, also known as the System column layout.
|
void |
restoreSearchRequestColumnLayout(SearchRequest searchRequest) |
void |
restoreUserColumnLayout(com.atlassian.crowd.embedded.api.User user) |
void |
storeEditableDefaultColumnLayout(EditableDefaultColumnLayout editableDefaultColumnLayout)
Writes the default column layout to permanent storage
|
void |
storeEditableSearchRequestColumnLayout(EditableSearchRequestColumnLayout editableSearchRequestColumnLayout)
Writes the default column layout to permanent storage
|
void |
storeEditableUserColumnLayout(EditableUserColumnLayout editableUserColumnLayout)
Writes the default column layout to permanent storage
|
public DefaultColumnLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, UserKeyService userKeyService, com.atlassian.cache.CacheManager cacheManager)
@EventListener public void onClearCache(ClearCacheEvent event)
public void refresh()
refresh
in interface ColumnLayoutManager
public ColumnLayout getColumnLayout(com.atlassian.crowd.embedded.api.User remoteUser) throws ColumnLayoutStorageException
ColumnLayoutManager
getColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public ColumnLayout getDefaultColumnLayout(com.atlassian.crowd.embedded.api.User remoteUser) throws ColumnLayoutStorageException
ColumnLayoutManager
getDefaultColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public ColumnLayout getDefaultColumnLayout() throws ColumnLayoutStorageException
getDefaultColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public EditableDefaultColumnLayout getEditableDefaultColumnLayout()
ColumnLayoutManager
getEditableDefaultColumnLayout
in interface ColumnLayoutManager
public EditableUserColumnLayout getEditableUserColumnLayout(com.atlassian.crowd.embedded.api.User user)
ColumnLayoutManager
getEditableUserColumnLayout
in interface ColumnLayoutManager
public void storeEditableDefaultColumnLayout(EditableDefaultColumnLayout editableDefaultColumnLayout) throws ColumnLayoutStorageException
ColumnLayoutManager
storeEditableDefaultColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public void storeEditableUserColumnLayout(EditableUserColumnLayout editableUserColumnLayout) throws ColumnLayoutStorageException
ColumnLayoutManager
storeEditableUserColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public void restoreDefaultColumnLayout()
ColumnLayoutManager
restoreDefaultColumnLayout
in interface ColumnLayoutManager
public void restoreUserColumnLayout(com.atlassian.crowd.embedded.api.User user)
restoreUserColumnLayout
in interface ColumnLayoutManager
public ColumnLayout getColumnLayout(com.atlassian.crowd.embedded.api.User remoteUser, SearchRequest searchRequest) throws ColumnLayoutStorageException
ColumnLayoutManager
getColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public EditableSearchRequestColumnLayout getEditableSearchRequestColumnLayout(com.atlassian.crowd.embedded.api.User user, SearchRequest searchRequest)
ColumnLayoutManager
getEditableSearchRequestColumnLayout
in interface ColumnLayoutManager
public void storeEditableSearchRequestColumnLayout(EditableSearchRequestColumnLayout editableSearchRequestColumnLayout)
ColumnLayoutManager
storeEditableSearchRequestColumnLayout
in interface ColumnLayoutManager
public void restoreSearchRequestColumnLayout(SearchRequest searchRequest) throws ColumnLayoutStorageException
restoreSearchRequestColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
public boolean hasColumnLayout(SearchRequest searchRequest)
ColumnLayoutManager
filter
has columns configured.hasColumnLayout
in interface ColumnLayoutManager
public boolean hasColumnLayout(Long filterId)
ColumnLayoutManager
hasColumnLayout
in interface ColumnLayoutManager
public boolean hasColumnLayout(com.atlassian.crowd.embedded.api.User user)
ColumnLayoutManager
hasColumnLayout
in interface ColumnLayoutManager
public boolean hasDefaultColumnLayout() throws ColumnLayoutStorageException
ColumnLayoutManager
hasDefaultColumnLayout
in interface ColumnLayoutManager
ColumnLayoutStorageException
- when the persistent store is inaccessible.Copyright © 2002-2015 Atlassian. All Rights Reserved.