package com.sibvisions.apps.test; import ... public class AppAccessController implements IAccessController { /** the allowed lifecycle objects. */ private ArrayUtil auAllowedLCO = null; /** * {@inheritDoc} */ public boolean isAllowed(String pLifecycleName) { //all explicite allowed lifecycle objects are accessible if (auAllowedLCO != null) { return auAllowedLCO.contains(pLifecycleName); } return false; } /** * {@inheritDoc} */ public void addAccess(String pLifecycleName) { if (pLifecycleName == null) { return; } if (auAllowedLCO == null) { auAllowedLCO = new ArrayUtil(); } if (!auAllowedLCO.contains(pLifecycleName)) { auAllowedLCO.add(pLifecycleName); } } }