/** * <b>NOTE VERY CAREFULLY</b> - current implementation of EntityManager ignores referenceRoot! * This will fail if this ever changes */ public void init() { entityManager.registerEntityProducer(this, "/"); }
/** * Register this class as an EntityProducer. */ public void init() { entityManager.registerEntityProducer(this, referenceRoot); }
public void registerEntityProducer(EntityProducer entityProducer) { entityManager.registerEntityProducer(entityProducer, "/commons"); }
/** * Final initialization, once all dependencies are set. */ public void init() { log.info("init()"); // register as an entity producer m_entityManager.registerEntityProducer(this, REFERENCE_ROOT); }
public static void registerEntityProducer(org.sakaiproject.entity.api.EntityProducer param0, java.lang.String param1) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return; service.registerEntityProducer(param0, param1); }
public static void registerEntityProducer(org.sakaiproject.entity.api.EntityProducer param0, java.lang.String param1) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return; service.registerEntityProducer(param0, param1); }
protected void init() throws Exception { logger.info("init()"); try { getEntityManager().registerEntityProducer(this, ChatManager.REFERENCE_ROOT); } catch (Exception e) { logger.warn("Error registering Chat Entity Producer", e); } }
public void init() { logger.info("init()"); try { getEntityManager().registerEntityProducer(this, Entity.SEPARATOR + MetaobjEntityManager.METAOBJ_CONTENT_ENTITY_PREFIX); } catch (Exception e) { logger.warn("Error registering MetaObj Content Entity Producer", e); } }
public void init() { logger.info("init()"); try { getEntityManager().registerEntityProducer(this, Entity.SEPARATOR + MetaobjEntityManager.METAOBJ_ENTITY_PREFIX); } catch (Exception e) { logger.warn("Error registering MetaObj Entity Producer", e); } }
public void init() { try { entityManager.registerEntityProducer(this, REFERENCE_ROOT); } catch (Exception t) { log.warn("init(): ", t); } externalLogic.registerFunction(PERMISSION_VOTE); externalLogic.registerFunction(PERMISSION_ADD); externalLogic.registerFunction(PERMISSION_DELETE_OWN); externalLogic.registerFunction(PERMISSION_DELETE_ANY); externalLogic.registerFunction(PERMISSION_EDIT_ANY); externalLogic.registerFunction(PERMISSION_EDIT_OWN); log.info(this + " init()"); }
/** * * */ public void init() { m_storage = newStorage(); m_nextSerialNumber = new AtomicInteger(0); m_relativeAccessPoint = CitationService.REFERENCE_ROOT; rb = new ResourceLoader("citations"); //initializeSchemas(); m_defaultSchema = "article"; // register as an entity producer m_entityManager.registerEntityProducer(this, REFERENCE_ROOT); if(m_configService.isCitationsEnabledByDefault() || m_configService.isAllowSiteBySiteOverride() ) { registerResourceType(); } }
/** * Final initialization, once all dependencies are set. */ public void init() { try { m_relativeAccessPoint = REFERENCE_ROOT; // construct storage and read m_storage = newStorage(); m_storage.open(); // register as an entity producer entityManager().registerEntityProducer(this, REFERENCE_ROOT); // register functions functionManager().registerFunction(SECURE_ADD_ALIAS); functionManager().registerFunction(SECURE_UPDATE_ALIAS); functionManager().registerFunction(SECURE_REMOVE_ALIAS); prohibited_aliases = Arrays.asList(serverConfigurationService().getString("mail.prohibitedaliases", "postmaster").trim().toLowerCase().split("\\s*,\\s*")); } catch (Exception t) { log.warn("init(): ", t); } } // init
PreferenceService.class.getName()); userDirectoryService = (UserDirectoryService) load(cm,UserDirectoryService.class.getName()); entityManager.registerEntityProducer(this, RWikiObjectService.REFERENCE_ROOT); if (ServerConfigurationService.getBoolean("wiki.notification", true)) //$NON-NLS-1$
/** * Final initialization, once all dependencies are set. */ public void init() { try { m_relativeAccessPoint = REFERENCE_ROOT; // construct storage and read m_storage = newStorage(); m_storage.open(); // register as an entity producer entityManager().registerEntityProducer(this, REFERENCE_ROOT); // register functions functionManager().registerFunction(SECURE_ADD_PREFS); functionManager().registerFunction(SECURE_EDIT_PREFS); functionManager().registerFunction(SECURE_REMOVE_PREFS); //register a cache m_cache = memoryService().getCache(BasePreferencesService.class.getName() +".preferences"); log.info("init()"); } catch (Exception t) { log.warn("init(): ", t); } }
entityManager().registerEntityProducer(this, REFERENCE_ROOT);
m_entityManager.registerEntityProducer(this, REFERENCE_ROOT);
m_entityManager.registerEntityProducer(this, REFERENCE_ROOT);
/** * Final initialization, once all dependencies are set. */ public void init() { try { super.init(); // register a transient notification for mail NotificationEdit edit = m_notificationService.addTransientNotification(); // set function edit.setFunction(eventId(SECURE_ADD)); // set the filter to any email resource (see messageReference()) edit.setResourceFilter(getAccessPoint(true) + Entity.SEPARATOR + REF_TYPE_MESSAGE); // set the action edit.setAction(new SiteEmailNotificationMail()); // register functions FunctionManager.registerFunction(eventId(SECURE_READ)); FunctionManager.registerFunction(eventId(SECURE_ADD)); FunctionManager.registerFunction(eventId(SECURE_REMOVE_ANY)); // entity producer registration m_entityManager.registerEntityProducer(this, REFERENCE_ROOT); M_log.info("init()"); } catch (Throwable t) { M_log.warn("init(): ", t); } } // init
public void init() { m_relativeAccessPoint = REFERENCE_ROOT; NotificationEdit edit = notificationService.addTransientNotification(); edit.setFunction(EVENT_SYLLABUS_POST_NEW); edit.addFunction(EVENT_SYLLABUS_POST_CHANGE); edit.addFunction(EVENT_SYLLABUS_DELETE_POST); edit.addFunction(EVENT_SYLLABUS_READ); edit.addFunction(EVENT_SYLLABUS_DRAFT_NEW); edit.addFunction(EVENT_SYLLABUS_DRAFT_CHANGE); edit.setResourceFilter(getAccessPoint(true)); edit.setAction(new SiteEmailNotificationSyllabus()); entityManager.registerEntityProducer(this, REFERENCE_ROOT); functionManager.registerFunction(SECURE_ADD_ITEM); functionManager.registerFunction(SECURE_BULK_ADD_ITEM); functionManager.registerFunction(SECURE_BULK_EDIT_ITEM); functionManager.registerFunction(SECURE_REDIRECT); }
entityManager().registerEntityProducer(this, REFERENCE_ROOT);