public void clear() { cacheClear(); } public synchronized static void cacheClear()
public void remove(Identity oid) { cacheRemove(oid); } /**
public Object lookup(Identity oid) { return cacheLookup(oid); } public synchronized static Object cacheLookup(Identity oid)
public PersistenceBrokerPortletRegistry(String repositoryPath, JetspeedCache applicationOidCache, JetspeedCache portletOidCache, JetspeedCache applicationNameCache, JetspeedCache portletNameCache, PortletPreferencesProvider preferenceService, SearchEngine search) { super(repositoryPath); this.applicationOidCache = applicationOidCache; this.portletOidCache = portletOidCache; this.applicationNameCache = applicationNameCache; this.portletNameCache = portletNameCache; PortletApplicationProxyImpl.setRegistry(this); RegistryApplicationCache.cacheInit(this, applicationOidCache, applicationNameCache, listeners); RegistryPortletCache.cacheInit(this, portletOidCache, portletNameCache, listeners); this.applicationNameCache.addEventListener(this, false); this.portletNameCache.addEventListener(this, false); this.preferenceService = preferenceService; this.searchEngine = search; }
public void savePortletDefinition( PortletDefinition portlet ) throws FailedToStorePortletDefinitionException { try { getPersistenceBrokerTemplate().store(portlet); portlet.storeChildren(); } catch (DataAccessException e) { throw new FailedToStorePortletDefinitionException(portlet, e); } }
public boolean portletApplicationExists( String name ) { return getPortletApplication(name, true) != null; }
public String getCacheKey() { return getKey(); }
public PortletDefinition getPortletDefinitionByUniqueName( String name ) { return getPortletDefinitionByUniqueName(name, false); }
/** * <p>Parses the portlet application name from the portlet * unique name.</p> * @param uniqueName The portlet unique name. */ public static String parseAppName(String uniqueName) { int split = splitUniqueName(uniqueName); return uniqueName.substring(0, split); }
public void cache(Identity oid, Object obj) { cacheAdd(oid, obj); } public synchronized static void cacheAdd(Identity oid, Object obj)
public void clear() { cacheClear(); } public synchronized static void cacheClear()
/** * <p> * Constructor providing access to the {@link UserManager}. * </p> * * @param userMgr The user manager. * @param registry The portlet registry component. */ public UserInfoManagerImpl(PortletRegistry registry) { this.registry = registry; registry.addRegistryListener(this); }
public Object lookup(Identity oid) { return cacheLookup(oid); } public synchronized static Object cacheLookup(Identity oid)
public void cache(Identity oid, Object obj) { cacheAdd(oid, obj); } public synchronized static void cacheAdd(Identity oid, Object obj)
public void remove(Identity oid) { cacheRemove(oid); } /**
public void updatePortletApplication(PortletApplication app) throws RegistryException { getPersistenceBrokerTemplate().store(app); }
public PortletApplication getPortletApplication(String name) { return getPortletApplication(name, false); }
public boolean portletDefinitionExists( String portletName, PortletApplication app ) { return getPortletDefinitionByUniqueName(app.getName() + "::" + portletName) != null; }
/** * <p>Parses the portlet name from the portlet * unique name.</p> * @param uniqueName The portlet unique name. */ public static String parsePortletName(String uniqueName) { int split = splitUniqueName(uniqueName); return uniqueName.substring((split + 2), uniqueName.length()); }