Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.bboard.* (51)com.RuntimeCollective.content.* (33)
com.RuntimeCollective.event.* (4)com.RuntimeCollective.permission.* (32)
com.RuntimeCollective.publication.* (14)com.RuntimeCollective.questionnaire.* (32)
com.RuntimeCollective.search.* (17)com.RuntimeCollective.sitemap.* (69)
com.RuntimeCollective.vanilla.* (10)com.RuntimeCollective.webapps.* (210)

Package Samples:

com.RuntimeCollective.publication.bean: The Publication module contains functionality to manage simple Publication items, against which user Subscriptions can be registered, and for which newsletters (SiteNode, basically) can be created and emailed in multipart/alternative html/plaintext to its subscribers.  
com.RuntimeCollective.content.bean: The Content module defines the Content contract for the Josephine framework, as well as a collection of basic types of Content (TextComponent, File, Image).  
com.RuntimeCollective.search.bean: The Search module uses Jakarta Lucene to provide a (hopefully) flexible search facility for Java objects.  
com.RuntimeCollective.questionnaire.bean: The Questionnaire modules allows for the creation of complex Questionnaires, and the processing of data submitted by Users.  
com.RuntimeCollective.permission.bean: The Permission module provides support for much more flexible Permission logic than webapps.bean.PermissionBean .  
com.RuntimeCollective.sitemap.bean: The Sitemap module defines the necessary classes to set up and edit the structure of a content library.  
com.RuntimeCollective.bboard.bean: The BBoard module offers Bulletin Board (aka Message Board), Blog and Faq functionality.  
com.RuntimeCollective.webapps.bean: Webapps is the core module of Josephine.  
com.RuntimeCollective.webapps
com.RuntimeCollective.webapps.action
com.RuntimeCollective.webapps.dbtools
com.RuntimeCollective.webapps.decorator
com.RuntimeCollective.webapps.form
com.RuntimeCollective.webapps.servlet
com.RuntimeCollective.webapps.tag
com.RuntimeCollective.webapps.test
com.RuntimeCollective.permission
com.RuntimeCollective.permission.action
com.RuntimeCollective.permission.form
com.RuntimeCollective.permission.tag

Classes:

PermissionFilter: A singleton Filter which constrains access to URLs using PermissionRules. At the moment, the filter supports three checks for each path: whether the user is in 1 of many UserGroups, specified by their names whether the user is in a (any) group belonging to a given UserGroupType, specified by name whether the request matches a given IP address pattern (Perl5, as in Jakarta ORO) whether the request matches, or ends in, a given domain (only complete components are matched, e.g. "apache.org" will match "foo.apache.org", but not "fooapache.org") whether the user is cleared by a PermissionRule, specified ...
ImageSubmitTag: A custom JSP tag that produces a submit button which uses an image rather than a button and behaves otherwise the same as SubmitTag, but also has all the same attributes as org.apache.struts.taglib.html.ImageTag Note this tag will not work if it sits next to a Struts html:submit tag. Convert other tags to rs:submit, to make sure it all works fine! This tag takes the following attributes: name - The name of the current form. [Mandatory]. src - The absolute url of the image file. [Optional]. srcKey - The key of the message resources string specifying the source URL of the image for this input tag. ...
InitialiserServlet: This servlet initializes the Runtime webapps environment using the initialisation parameters. These parameters are of the following kinds: Beans -- parameters used to register beans on an EntityBeanStore, where the name of the parameter is bean. bean_class_name (for example, 'bean.com.RuntimeCollective.webapps.bean.SimpleUser') and the value is the name of the class of EntityBeanStore where they should be stored (for example, 'com.RuntimeCollective.webapps.SimpleEntityBeanStore'). . Parameters -- general purpose parameters registered on RuntimeParameters, where the name of the parameter is param. ...
SubmitTag: A custom JSP tag that produces a submit button whose label is different from the submitted value. Note this tag will not work if it sits next to a Struts html:submit tag. Convert other tags to rs:submit, to make sure it all works fine! This tag takes the following attributes: name - The name of the current form. [Mandatory]. label - The label of the submit button. [Mandatory]. value - The value of property to submit. Defaults to property's current value. [Optional]. property - The property to be set to value. Defaults to "formAction". [Optional]. defaultValue - The default value to submit, used ...
BelongsToTag: Evaluate the body of this tag only if the user specified by name, property and scope (or the currently logged-on user, if name is not specified) is a member (or not!) of the given group, or is a member of any group with the given group type. This tag takes the following optional parameters. Either group or groupType must be specified: name - specifies the attribute name of the bean whose property is accessed to retrieve the value specified by property (if specified). If property is not specified, the value of this bean itself will specify the user. If name is not specified, the currently logged-on ...
EntityBeanStore: A store for EntityBean s that ensures that multiple instances of the same bean are never recreated from the database. There are three advantages to using EntityBeanStores: Reduces the overhead in creating new Java objects. Reduces the overhead in extra reads from the database. Eliminates the problem of keeping multiple instances of the same bean synchronised. There are four stages to using this store: Register bean types ( registerBean() ) Register each type of bean class that the store will hold, using a specified cache class. Initialise the store ( init() ) The store will then construct a hashtable, ...
EditorCheckLogonTag: Check for a valid User logged on in the current session under the key RuntimeParameters.get("logonUserKey") . If there is no such user, check for a cookie called "LoginCookie.COOKIE_NAME"; the random-key contained in this cookie will reference rs_user , to give the userId. If no such cookie exists, forward control to the logon page. This class has some logic which could be moved to CheckLogonTag Important: This tag must be placed on a jsp page before anything is written to the response. It's safest to always put it at the top. If the user is found from a cookie, a new Session is recorded by calling ...
CheckLogonTag: Check for a valid User logged on in the current session under the key RuntimeParameters.getParam("logonUserKey") . If there is no such user, forward control to the logon page. Important: This tag must be placed on a jsp page before anything is written to the response. It's safest to always put it at the top. This tag takes the following optional parameters: page - the page to go to if the user is not logged in (defaults to /logon.jsp) group - if set then the tag will only admit users if they are logged in, and are members of the UserGroup with this name. groups - if set then the tag will only admit ...
LoadBeanTag: A custom JSP tag that sets the request parameters necessary for calling a BeanLoaderAction . This tag takes the following attributes: action - the name of the action that will load the bean. This will normally be of type BeanLoaderAction , and the action mapping for this action (defined in struts-config.xml) defines the type of bean to load, and the form to populate. [Mandatory]. name - the name of the bean, under page or request or session scope, that holds the id of the bean to load as a property [Optional]. scope - the scope of the bean to load [Optional]. property - the property of the bean, ...
CheckEditTag: Check if a user can edit the named session-scoped bean. This bean must implement the PermissionBean interface. If they do not have permission to edit this bean, control will be forwarded to a page that will display errors (defaults to /logon.jsp). By default, the User on the session under RuntimeParameters.get("logonUserKey") will be used. A different User bean on the session can be used by specifying the "user" parameter. This tag assumes the user is logged on; this tag should be used after checkLogon (unless "user" is specified). Attributes: name - The name of the bean to check edit permissions ...
CheckViewTag: Check if a user can view the named session-scoped bean. This bean must implement the PermissionBean interface. If they do not have permission to view this bean, control will be forwarded to a page that will display errors (defaults to /logon.jsp). By default, the User on the session under RuntimeParameters.get("logonUserKey") will be used. A different User bean on the session can be used by specifying the "user" parameter. This tag assumes the user is logged on; this tag should be used after checkLogon (unless "user" is specified). Attributes: name - The name of the bean to check view permissions ...
Actor: Abstract class for all objects that wrap a registered user of a Runtime Webapp. Different modules will want to add to the properties of a basic User: the school module has Students and Staff, the content management system will have Authors etc. Each of these should be implemented as wrappers of User that implement this Actor interface. There are three ways of getting an Actor: If you have an existing User and want to 'promote' them to an Actor then construct a new actor using RuntimeParameters.getStore().create, and set the User with setUser. If there is an existing actor in the DB for which you ...
RemoveBookmarkTag: A custom JSP tag that sets the request parameters necessary for removing a site location from the user's bookmarks. It generates an a href tag, pointing to the /addRemoveBookmark action. This tag takes the following attributes: name - the name of the bean, under page or request or session scope, that holds the id of the site location [Optional]. scope - the scope of the bean to load [Optional]. property - the property of the bean, specified by 'name', that holds the id of the site location. If this is not set, then 'id' is used. [Optional]. id - the id of the site location to bookmark. [Optional]. ...
AddBookmarkTag: A custom JSP tag that sets the request parameters necessary for adding a site location to the user's bookmarks. It generates an a href tag, pointing to the /addRemoveBookmark action. This tag takes the following attributes: name - the name of the bean, under page or request or session scope, that holds the id of the site location [Optional]. scope - the scope of the bean to load [Optional]. property - the property of the bean, specified by 'name', that holds the id of the site location. If this is not set, then 'id' is used. [Optional]. id - the id of the site location to bookmark. [Optional]. ...
BeanSequence: A wrapper for a synchronised SortedMap of SequenceBean s which includes extra methods for maintaining sequence numbers to avoid conflicts. A bean sequence is a set of beans, ordered by their 'sequence' properties. If a bean is added to a bean sequence, then subsequent beans will have their sequences incremented to avoid conflicts; and if a bean is removed then subsequent beans will have their sequences decremented to avoid gaps. Changes to the bean sequence will be saved to the database (using the beans save() and delete() methods) to ensure that the sequence properties remain synchronized. Sequences ...
BreadcrumbTag: View the breadcrumb trail for a specified SiteNode. The attributes identify the id of the SiteNode to use, and options for how the breadcrumb trail is displayed. This JSP tag takes the following attributes: name - the name of the bean, under page or request or session scope, that holds the id of the SiteNode [Optional]. scope - the scope of the bean to load [Optional]. property - the property of the bean, specified by 'name', that holds the id of the SiteNode. If this is not set, then 'id' is used. [Optional]. id - the id of the SiteNode to bookmark. [Optional]. parameter - the request parameter ...
PlainTextLinkTag: a custom jsp tag that creates a link to the Runtime Betsie server or another Betsie server if specified in web.xml or the tag. You can also define the hostname of the site using your link either directly to the tag or in the web.xml Betsie is an opensource accessability tool that uses perl to render a plaintext version of your site suitable for text to speach web browsing. You can learn more by visiting http://betsie.sourceforge.net/ Takes the following attributes betsieDomain - Where the Betsie server is running. If not set checks web.xml for a parameter, if thats not set uses the default Runtime ...
HtmlInputTag: An abstract class for custom JSP tags that display a Java applet for WSIWYG editing of HTML. This class must be extended to provide methods for what applet class to use, what parameters to send in, and what script snippets (if any) are necessary. IMPORTANT: This tag must be used inside a form, and the form creation tag must contain onsubmit="return getHTMLEditorAppletValue()" , for example: <html:form action="/testHtmlAction" onsubmit="return getHTMLEditorAppletValue()"> Only one HtmlInputTag can be used per HTML page. This tag takes the following attributes: property ...
CrumbTrailTag: A custom JSP tag that adds the current page to the crumb trail and displays the result. Why not just hard-code the crumb trail into the jsp (or html)? This is OK for simple sites in which the same page is only accessed by a single path (i.e. which form a non-recurrent tree.) The advantage with this tag is that it can cope with more complex site graphs in which the same page can be access by multiple routes. This tag takes two attributes: label - the label to be given to the current page [Optional]. labelName, labelProperty - If label is not set, then the label can be taken from a bean of the given ...
EntityBeanTag: An abstract class meant to provide a base for tags that use EntityBeans. The getEntityBean(String entityName) method returns an EntityBean based on the values of name , scope , id , parameter , or throws a JspTagException if the EntityBean cannot be found from these values. You should pass in the EntityBean's class name. You should implement the doStartTag and doEndTag methods. They should call getEntityBean(String entityName) to get the EntityBean to use. If you add more properties, consider overriding release to free these resources as well. name - the name of the EntityBean object to use. [Optional]. ...
FindBeanCollectionTag: Finds a collection of EntityBean's given the bean type and a named query. The tag uses reflection to call the static finder method for the query on the bean type. The naming convention for the finder method is: public static Collection findQueryName(); Attributes: name - the name of the collection to create. scope - the scope in which to create the collection. [optional] type - the subtype of the EntityBean in which the finder is defined. query - the name of the query to be executed. For example, the tag: <rs:findBeans name="giraffes" type="com.RuntimeCollective.webapps.bean.Giraffe" ...
EntityBean: A javabean must implement this interface in order to be handled by the EntityBeanStore . As well as implementing this interface, all Entity Beans must define the following two constructors: EntityBean() - Return a new blank bean with a new unique id. Throw SQLException if not possible to generate new id. EntityBean(int id) - Generate a bean from the database corresponding to the given primary key. If there is no such bean in the database, then throw SQLException . Entity beans usually have other methods for getting various children or parent beans, and which access the database. The golden rule ...
ForwardLink: The ForwardLink class implements the Link abstract class, using a URL. For now, we cannot directly access the forwards defined in struts-config.xml. So all forwards used for ForwardLinks have to be copied into web.xml, as a param.FORWARDforwardname parameter. Sorry for the inconvenience. HOW TO : add a new Static Link ------------------------------ Step 1 - creating in the database a new ForwardLink. See /se/datamodel/mssqlserver/Content-sedata-load.sql for examples. Just copy an example, and change the name of the struts Forward you will be using, and its display name. Step 2 - in struts-config.xml, ...
DefineTag: Define a scripting variable based on the value(s) of the specified bean property. This tag takes the following parameters: id - the name of the scripting variable that will be populated with the value. param - the name of the request parameter that contains the value. type - the type of the bean to be defined. toScope - the scope in which to define the bean (default: page scope). name - the name of the variable to search for. property - the property of the named variable that contains the value. scope - the scope to search for the value in. value - the value to define the bean as. In addition to ...
SiteNode: The SiteNode version of the ContentSiteLocation, which can have a parent and children SiteNodes. The SiteNode hierarchy was designed with the principle of "the sub node doesn't *do* things to its parent": setting a Child in a SiteNode also sets the Child's ParentNode, NOT the opposite If you want to be spared the hassle of writing JSPs to create/edit your SiteNode objects, do have a look at the pages written for the Sussex Enterprise project. You can find them by checking out the relevent project: "cvs co rsework", then look in rsework/web/admin. The pages are called addPageXXX.jsp and editPageXXX.jsp. ...

Home | Contact Us | Privacy Policy | Terms of Service