Get the options for this portlet.
*/
private ConcreteElement[] getPortletOptions( RunData rundata ) {
Vector v = new Vector();
ContentURI content = new ContentURI( rundata );
int type = URILookup.getURIType(this.getPortlet(),
rundata);
int subtype = URILookup.SUBTYPE_NONE;
try {
subtype = URILookup.getURISubType(this.getPortlet(),
rundata);
}
catch (JetspeedException e) {
logger.error("Exception", e);
}
if ( type != URILookup.TYPE_EDIT_ACCOUNT) {
if ( ( rundata.getUser() != null ) &&
( rundata.getUser().hasLoggedIn()) ) {
if ( this.getPortlet().getAllowEdit( rundata ) ) {
if (type!=URILookup.TYPE_INFO) {
try {
org.apache.ecs.html.A edit =
new org.apache.ecs.html.A(
URILookup.getURI( URILookup.TYPE_INFO,
URILookup.SUBTYPE_MARK,
this.getPortlet(),
rundata ) )
.addElement( new IMG( content.getURI( JetspeedResources.INFO_IMAGE ) )
.setBorder( 0 ) );
v.addElement( edit );
}
catch (JetspeedException e) {
logger.error("Exception", e);
}
}
}
}
if ( this.getPortlet().getAllowMaximize( rundata ) ) {
try {
if ( subtype != URILookup.SUBTYPE_MAXIMIZE ) {
org.apache.ecs.html.A max =
new org.apache.ecs.html.A(
URILookup.getURI( URILookup.TYPE_HOME,
URILookup.SUBTYPE_MAXIMIZE,
this.getPortlet(),
rundata ) )
.addElement( new IMG( content.getURI( JetspeedResources.MAX_IMAGE ) )
.setBorder( 0 ) );
v.addElement( max );
}
}