Class ScriptResource
java.lang.Object
org.gatein.portal.controller.resource.Resource<ScriptResource>
org.gatein.portal.controller.resource.script.BaseScriptResource<ScriptResource>
org.gatein.portal.controller.resource.script.ScriptResource
- All Implemented Interfaces:
Comparable<ScriptResource>
public class ScriptResource
extends BaseScriptResource<ScriptResource>
implements Comparable<ScriptResource>
This class implements the Comparable interface, however the natural ordering provided here is not consistent with
equals, therefore this class should not be used as a key in a TreeMap for instance.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.gatein.portal.controller.resource.script.BaseScriptResource
contextPath -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(ResourceId dependencyId) voidaddDependency(ResourceId dependencyId, String alias, String pluginRS) addLocalModule(String contextPath, String path, String resourceBundle, int priority) addLocalModule(String contextPath, Module.Local.Content[] contents, String resourceBundle, int priority) addLocalModule(String contextPath, Module.Local.Content[] contents, String resourceBundle, int priority, boolean minify) addRemoteModule(String contextPath, String path, int priority) voidaddSupportedLocale(Locale locale) intgetAlias()If no alias was set, return the last part of the resource name If resourceID is null, return nullgetDepInfo(ResourceId id) booleanisEmpty()removeModuleByContextPath(String contextPath) toString()Methods inherited from class org.gatein.portal.controller.resource.script.BaseScriptResource
getParameters
-
Method Details
-
isEmpty
public boolean isEmpty() -
getFetchMode
-
addDependency
-
addDependency
-
getClosure
-
addLocalModule
public Module.Local addLocalModule(String contextPath, String path, String resourceBundle, int priority) -
addLocalModule
public Module.Local addLocalModule(String contextPath, Module.Local.Content[] contents, String resourceBundle, int priority) -
addLocalModule
public Module.Local addLocalModule(String contextPath, Module.Local.Content[] contents, String resourceBundle, int priority, boolean minify) -
addRemoteModule
-
addSupportedLocale
- Overrides:
addSupportedLocalein classBaseScriptResource<ScriptResource>
-
removeModuleByContextPath
-
getModules
-
compareTo
- Specified by:
compareToin interfaceComparable<ScriptResource>
-
getDependencies
- Overrides:
getDependenciesin classResource<ScriptResource>
-
getDepInfo
-
getAlias
If no alias was set, return the last part of the resource name If resourceID is null, return null -
toString
-