Package net.anotheria.anosite.access
Class AnoSiteAccessAPIImpl
- java.lang.Object
-
- net.anotheria.anosite.access.AnoSiteAccessAPIImpl
-
- All Implemented Interfaces:
net.anotheria.anoplass.api.API,AnoSiteAccessAPI
public class AnoSiteAccessAPIImpl extends Object implements AnoSiteAccessAPI
AnoSiteAccessAPIimplementation.- Author:
- Alexandr Bolbat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAnoSiteAccessAPIImpl.AccessConfigurationChangeListenerListener for updatingAccessServiceconfiguration if it's changed in CMS.classAnoSiteAccessAPIImpl.AccessUserDataChangeListenerListener for clearingAccessServicecache if user data (roles2user mapping) changed trough CMS.
-
Constructor Summary
Constructors Constructor Description AnoSiteAccessAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeInit()voidinit()booleanisAllowedForAction(String actionId)Validate access for given action.booleanisAllowedForBox(String boxId)Validate access for given box.booleanisAllowedForNaviItem(String naviItemId)Validate access for given navigation item.booleanisAllowedForPage(String pageId)Validate access for given page.booleanisAllowedForWizard(String wizardId)Validate access for given wizard.
-
-
-
Method Detail
-
init
public void init() throws net.anotheria.anoplass.api.APIInitException- Specified by:
initin interfacenet.anotheria.anoplass.api.API- Throws:
net.anotheria.anoplass.api.APIInitException
-
deInit
public void deInit()
- Specified by:
deInitin interfacenet.anotheria.anoplass.api.API
-
isAllowedForPage
public boolean isAllowedForPage(String pageId) throws AnoSiteAccessAPIException
Description copied from interface:AnoSiteAccessAPIValidate access for given page. If access operation not configured for given page this validation returntrue.- Specified by:
isAllowedForPagein interfaceAnoSiteAccessAPI- Parameters:
pageId- - given page it- Returns:
trueif have access orfalse- Throws:
AnoSiteAccessAPIException- TODO dummy comment for javadoc.
-
isAllowedForBox
public boolean isAllowedForBox(String boxId) throws AnoSiteAccessAPIException
Description copied from interface:AnoSiteAccessAPIValidate access for given box. If access operation not configured for given box this validation returntrue.- Specified by:
isAllowedForBoxin interfaceAnoSiteAccessAPI- Parameters:
boxId- - given box it- Returns:
trueif have access orfalse- Throws:
AnoSiteAccessAPIException- TODO dummy comment for javadoc.
-
isAllowedForNaviItem
public boolean isAllowedForNaviItem(String naviItemId) throws AnoSiteAccessAPIException
Description copied from interface:AnoSiteAccessAPIValidate access for given navigation item. If access operation not configured for given navigation item this validation returntrue.- Specified by:
isAllowedForNaviItemin interfaceAnoSiteAccessAPI- Parameters:
naviItemId- given navigation item it- Returns:
trueif have access orfalse- Throws:
AnoSiteAccessAPIException- TODO dummy comment for javadoc.
-
isAllowedForAction
public boolean isAllowedForAction(String actionId) throws AnoSiteAccessAPIException
Description copied from interface:AnoSiteAccessAPIValidate access for given action. If access operation not configured for given action this validation returntrue.- Specified by:
isAllowedForActionin interfaceAnoSiteAccessAPI- Parameters:
actionId- - given action it- Returns:
trueif have access orfalse- Throws:
AnoSiteAccessAPIException- TODO dummy comment for javadoc.
-
isAllowedForWizard
public boolean isAllowedForWizard(String wizardId) throws AnoSiteAccessAPIException
Description copied from interface:AnoSiteAccessAPIValidate access for given wizard. If access operation not configured for given wizard this validation returntrue.- Specified by:
isAllowedForWizardin interfaceAnoSiteAccessAPI- Parameters:
wizardId- given wizard it.- Returns:
trueif have access orfalse- Throws:
AnoSiteAccessAPIException- TODO dummy comment for javadoc.
-
-