Class ExperimentalActivitiesAuthorizationManagerImpl

  • All Implemented Interfaces:
    org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager

    @Singleton
    public class ExperimentalActivitiesAuthorizationManagerImpl
    extends Object
    implements org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager
    • Constructor Detail

      • ExperimentalActivitiesAuthorizationManagerImpl

        @Inject
        public ExperimentalActivitiesAuthorizationManagerImpl​(org.jboss.errai.ioc.client.container.SyncBeanManager iocManager,
                                                              ClientExperimentalFeaturesRegistryService experimentalFeaturesRegistryService,
                                                              javax.enterprise.event.Event<org.uberfire.client.workbench.widgets.menu.events.PerspectiveVisibiltiyChangeEvent> perspectiveVisibleEvent)
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager
      • authorizeActivity

        public boolean authorizeActivity​(Object activity)
        Specified by:
        authorizeActivity in interface org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager
      • authorizeActivityClass

        public boolean authorizeActivityClass​(Class activityClass)
        Specified by:
        authorizeActivityClass in interface org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager
      • securePart

        public void securePart​(org.uberfire.workbench.model.PartDefinition part,
                               org.uberfire.workbench.model.PanelDefinition panel)
        Specified by:
        securePart in interface org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager
      • authorizeByClassName

        protected boolean authorizeByClassName​(String activityClassName)
      • authorizeActivityId

        public boolean authorizeActivityId​(String activityId)
        Specified by:
        authorizeActivityId in interface org.uberfire.experimental.service.auth.ExperimentalActivitiesAuthorizationManager
      • doAuthorize

        protected boolean doAuthorize​(Supplier<String> keySupplier)
      • authorize

        protected boolean authorize​(String experimentalFeatureId)
      • onFeatureModified

        public void onFeatureModified​(@Observes
                                      org.uberfire.experimental.service.events.PortableExperimentalFeatureModifiedEvent event)
      • onFeatureModified

        public void onFeatureModified​(@Observes
                                      org.uberfire.experimental.service.events.NonPortableExperimentalFeatureModifiedEvent event)