From portal-commits at lists.jboss.org Thu Feb 21 20:13:50 2008 Content-Type: multipart/mixed; boundary="===============2816187738254136025==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r10075 - modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/metadata. Date: Thu, 21 Feb 2008 20:13:49 -0500 Message-ID: --===============2816187738254136025== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2008-02-21 20:13:49 -0500 (Thu, 21 Feb 2008) New Revision: 10075 Removed: modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/met= adata/JBossApplicationMetaData.java modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/met= adata/JBossPortletMetaData.java modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/met= adata/PolicyPermissionMetaData.java modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/met= adata/SecurityConstraintMetaData.java modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/met= adata/SessionConfigMetaData.java Log: remove legacy classes Deleted: modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portl= et/metadata/JBossApplicationMetaData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/JBossApplicationMetaData.java 2008-02-22 01:12:15 UTC (rev 10074) +++ modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/JBossApplicationMetaData.java 2008-02-22 01:13:49 UTC (rev 10075) @@ -1,60 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2006, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.metadata; - -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * @author Julien Viet - * @version $Revision: 5448 $ - */ -public class JBossApplicationMetaData -{ - - /** . */ - protected Boolean remotable; - - /** . */ - protected Map portlets; - - public JBossApplicationMetaData() - { - portlets =3D new LinkedHashMap(); - } - - public Map getPortlets() - { - return portlets; - } - - public Boolean getRemotable() - { - return remotable; - } - - public void setRemotable(Boolean remotable) - { - this.remotable =3D remotable; - } -} Deleted: modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portl= et/metadata/JBossPortletMetaData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/JBossPortletMetaData.java 2008-02-22 01:12:15 UTC (rev 10074) +++ modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/JBossPortletMetaData.java 2008-02-22 01:13:49 UTC (rev 10075) @@ -1,163 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2006, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.metadata; - -import org.jboss.portal.common.transaction.Transactions; - -/** - * Specific metadata specified to jboss portlet container. - * - * @author Julien Viet - * @version $Revision: 7226 $ - */ -public class JBossPortletMetaData implements Cloneable -{ - - /** . */ - private String name; - - /** . */ - private Boolean remotable; - - /** . */ - private SecurityConstraintMetaData securityConstraint; - - /** . */ - private Integer cacheRefType; - - /** . */ - private Transactions.Type txType; - - /** . */ - private Boolean distributed; - - public String getName() - { - return name; - } - - public void setName(String name) - { - this.name =3D name; - } - - public Boolean getRemotable() - { - return remotable; - } - - public void setRemotable(Boolean remotable) - { - this.remotable =3D remotable; - } - - public Boolean getDistributed() - { - return distributed; - } - - public void setDistributed(Boolean distributed) - { - this.distributed =3D distributed; - } - - public SecurityConstraintMetaData getSecurityConstraint() - { - return securityConstraint; - } - - public void setSecurityConstraint(SecurityConstraintMetaData securityCo= nstraint) - { - this.securityConstraint =3D securityConstraint; - } - - public Integer getCacheRefType() - { - return cacheRefType; - } - - public void setCacheRefType(Integer cacheRefType) - { - this.cacheRefType =3D cacheRefType; - } - - public Transactions.Type getTxType() - { - return txType; - } - - public void setTxType(Transactions.Type txType) - { - this.txType =3D txType; - } - - /** - * Merge the current meta data with portlet application. - */ - public void merge(JBossApplicationMetaData application) - { - if (remotable =3D=3D null) - { - remotable =3D application.getRemotable(); - } - } - - /** - * Merge the current meta data with a specified one. - */ - public void merge(JBossPortletMetaData portlet) - { - if (remotable =3D=3D null) - { - remotable =3D portlet.getRemotable(); - } - if (txType =3D=3D null) - { - txType =3D portlet.getTxType(); - } - if (cacheRefType =3D=3D null) - { - cacheRefType =3D portlet.getCacheRefType(); - } - if (securityConstraint =3D=3D null) - { - securityConstraint =3D portlet.getSecurityConstraint(); - } - if (distributed =3D=3D null) - { - distributed =3D portlet.getDistributed(); - } - } - - public Object clone() - { - try - { - return super.clone(); - } - catch (CloneNotSupportedException e) - { - throw new Error(e); - } - } -} Deleted: modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portl= et/metadata/PolicyPermissionMetaData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/PolicyPermissionMetaData.java 2008-02-22 01:12:15 UTC (rev 10074) +++ modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/PolicyPermissionMetaData.java 2008-02-22 01:13:49 UTC (rev 10075) @@ -1,62 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2006, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.metadata; - -import java.util.HashSet; -import java.util.Set; - -/** - * @author Julien Viet - * @version $Revision: 5448 $ - */ -public class PolicyPermissionMetaData -{ - - private String roleName; - private Set actions; - - public PolicyPermissionMetaData() - { - actions =3D new HashSet(); - } - - public String getRoleName() - { - return roleName; - } - - public void setRoleName(String roleName) - { - this.roleName =3D roleName; - } - - public Set getActions() - { - return actions; - } - - public void setActions(Set actions) - { - this.actions =3D actions; - } -} Deleted: modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portl= et/metadata/SecurityConstraintMetaData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/SecurityConstraintMetaData.java 2008-02-22 01:12:15 UTC (rev 10074) +++ modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/SecurityConstraintMetaData.java 2008-02-22 01:13:49 UTC (rev 10075) @@ -1,51 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2006, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.metadata; - -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * @author Julien Viet - * @version $Revision: 5448 $ - */ -public class SecurityConstraintMetaData -{ - - private Map policyPermissions; - - public SecurityConstraintMetaData() - { - policyPermissions =3D new LinkedHashMap(); - } - - public Map getPolicyPermissions() - { - return policyPermissions; - } - - public void setPolicyPermissions(Map policyPermissions) - { - this.policyPermissions =3D policyPermissions; - } -} Deleted: modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portl= et/metadata/SessionConfigMetaData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/SessionConfigMetaData.java 2008-02-22 01:12:15 UTC (rev 10074) +++ modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/me= tadata/SessionConfigMetaData.java 2008-02-22 01:13:49 UTC (rev 10075) @@ -1,47 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2006, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.metadata; - -/** - * @author Julien Viet - * @version $Revision: 5448 $ - */ -public class SessionConfigMetaData -{ - - private boolean distributed; - - public SessionConfigMetaData() - { - } - - public boolean isDistributed() - { - return distributed; - } - - public void setDistributed(boolean distributed) - { - this.distributed =3D distributed; - } -} --===============2816187738254136025==--