@DemoTest public class DefaultSearchRestrictionServiceDemoTest extends ServicelayerTest
importServicejaloSession| Constructor and Description |
|---|
DefaultSearchRestrictionServiceDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSearchRestrictionCreateAndGetSearchRestrictionsForType()
Demonstrates how to check whether type has restrictions then create model based restrictions for some type and
next obtain them from that type.
|
void |
clearSessionSearchRestriction()
Demonstrates how to clear all registered session search restrictions.
|
void |
createAndAddSessionSearchRestriction()
Demonstrates how to create
SessionSearchRestriction object and add it to the session. |
void |
enableAndDisableSearchRestriction()
Demonstrates how enable and disable search restrictions (both - session and persistent model based restrictions).
|
void |
removeSessionSearchRestriction()
Demonstrates how to remove few session search restrictions from list of registered session search restrictions.
|
void |
setUp() |
void |
tearDown() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic DefaultSearchRestrictionServiceDemoTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
public void createAndAddSessionSearchRestriction()
SessionSearchRestriction object and add it to the session.
Test scenario:SessionSearchRestriction objectSearchRestrictionService#addSessionSearchRestrictions(java.util.Collection) methodpublic void clearSessionSearchRestriction()
SessionSearchRestriction objectSearchRestrictionService#addSessionSearchRestrictions(java.util.Collection) methodpublic void removeSessionSearchRestriction()
SessionSearchRestriction objectsSearchRestrictionService#addSessionSearchRestrictions(java.util.Collection) methodpublic void enableAndDisableSearchRestriction()
public void checkSearchRestrictionCreateAndGetSearchRestrictionsForType()
Copyright © 2018 SAP SE. All Rights Reserved.