@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.registerModule(Module.class); }
@Override public void destroy(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.unregisterModule(Module.class); }
protected IOClassIntrospector getOClassIntrospector() { if (oClassIntrospector == null) { oClassIntrospector = OrienteerWebApplication.get().getOClassIntrospector(); } return oClassIntrospector; }
/** * Logout page. Invalidates current session */ @MountPath("/logout") public class LogoutPage extends BasePage<Object> { private static final long serialVersionUID = 1L; public LogoutPage() { OrienteerWebSession.get().signOut(); setResponsePage(OrienteerWebApplication.get().getHomePage()); } }
@SuppressWarnings("unchecked") public <V> V getValue(OProperty property) { return getValue(property, (V) defaultValue); }
@Override public void onAfterInitialized(Application application) { new DBClosure<Boolean>() { @Override protected Boolean execute(ODatabaseDocument db) { String timeZoneId = (String) db.get(ATTRIBUTES.TIMEZONE); TimeZone.setDefault(TimeZone.getTimeZone(timeZoneId)); return true; } }.execute(); }
/** * Reload Orienteer with fixed delay=3s and wait=5s */ public static void reloadOrienteer() { reloadOrienteer(3000, 5000); }
@Override public boolean apply(String input) { return CustomAttribute.getIfExists(input)==null; } };
/** * Mount all pages and resources in a package * @param packageName to mount * @param classLoader {@link ClassLoader} where stuff defined */ public void mountPackage(String packageName, ClassLoader classLoader) { mountOrUnmountPackage(packageName, classLoader, true); }
@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication) application; app.registerModule(OArchitectModule.class); }
@Override public void destroy(Application application) { OrienteerWebApplication app = (OrienteerWebApplication) application; app.unregisterModule(OArchitectModule.class); } }
@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.registerModule(OMailModule.class); }
@Override public void destroy(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.unregisterModule(Module.class); }
@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.registerModule(Module.class); }
@Override public void destroy(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.unregisterModule(Module.class); }
@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.registerModule(BPMModule.class); }
@Override public void destroy(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.unregisterModule(OMailModule.class); }
@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication)application; app.registerModule(Module.class); }
@Override public void init(Application application) { OrienteerWebApplication app = (OrienteerWebApplication) application; app.registerModule(OrienteerUsersModule.class); }