/** * Gets the locallyReadable. * * @return the locallyReadable. */ protected Boolean isLocallyReadable() { if (!GateHelper.areGatesOpen(getReadabilityGates())) { return false; } return locallyReadable; }
/** * Binds model gates. * <p> * {@inheritDoc} */ @Override public void boundAsView() { bindModelGates(getWritabilityGates()); bindModelGates(getReadabilityGates()); }
/** * Configures accessibility gates with the security handler. * * @param securityHandler * the security handler responsible for managing authorizations. */ @Override public void setSecurityHandler(ISecurityHandler securityHandler) { this.securityHandler = securityHandler; if (getReadabilityGates() != null) { for (IGate gate : getReadabilityGates()) { if (gate instanceof ISecurityHandlerAware) { ((ISecurityHandlerAware) gate).setSecurityHandler(securityHandler); } } } if (getWritabilityGates() != null) { for (IGate gate : getWritabilityGates()) { if (gate instanceof ISecurityHandlerAware) { ((ISecurityHandlerAware) gate).setSecurityHandler(securityHandler); } } } }