You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by pn...@apache.org on 2002/05/14 13:54:25 UTC
cvs commit: jakarta-slide/src/stores/slidestore/file UriProperties.java
pnever 02/05/14 04:54:25
Modified: src/stores/slidestore/file UriProperties.java
Log:
Fixed more bugs
Revision Changes Path
1.5 +13 -12 jakarta-slide/src/stores/slidestore/file/UriProperties.java
Index: UriProperties.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/stores/slidestore/file/UriProperties.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- UriProperties.java 10 May 2002 16:22:21 -0000 1.4
+++ UriProperties.java 14 May 2002 11:54:25 -0000 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/stores/slidestore/file/UriProperties.java,v 1.4 2002/05/10 16:22:21 pnever Exp $
- * $Revision: 1.4 $
- * $Date: 2002/05/10 16:22:21 $
+ * $Header: /home/cvs/jakarta-slide/src/stores/slidestore/file/UriProperties.java,v 1.5 2002/05/14 11:54:25 pnever Exp $
+ * $Revision: 1.5 $
+ * $Date: 2002/05/14 11:54:25 $
*
* ====================================================================
*
@@ -84,7 +84,7 @@
* Handles the saving and retreiving of descriptions attached to an Uri</a>
* @author <a href="mailto:mdecugis@mds-desing.fr">Marc D�cugis</a>
* @contact <a href="mailto:remm@apache.org">Remy Maucherat</a>
- * @version $Revision: 1.4 $ , $Date: 2002/05/10 16:22:21 $
+ * @version $Revision: 1.5 $ , $Date: 2002/05/14 11:54:25 $
*/
//----------------------------------------
@@ -240,7 +240,7 @@
if (revisionDescriptors==null) return aRevisionsHistory;
aRevisionsHistory.setAttribute("initialRevision",encodeRevisionNumber(revisionDescriptors.getInitialRevision()));
- aRevisionsHistory.setAttribute("useVersioning",booleanToString(revisionDescriptors.hasRevisions()));
+ aRevisionsHistory.setAttribute("useVersioning",booleanToString(revisionDescriptors.isVersioned()));
// System.out.println("---------- encodeRevisionDescriptors getLatestRevision="+
// revisionDescriptors.getLatestRevision());
@@ -420,8 +420,8 @@
String aSubject=aChild.getAttributeValue("subjectUri");
String aType=aChild.getAttributeValue("typeUri");
Date aDateExpiration=dateFormat.parse(aChild.getAttributeValue("date"));
- boolean aInheritable=Boolean.getBoolean(aChild.getAttributeValue("inheritance"));
- boolean aNegative=Boolean.getBoolean(aChild.getAttributeValue("exclusive"));
+ boolean aInheritable=new Boolean(aChild.getAttributeValue("inheritance")).booleanValue();
+ boolean aNegative=new Boolean(aChild.getAttributeValue("exclusive")).booleanValue();
String aLockId=aChild.getAttributeValue("lockId");
locks.addElement(
new NodeLock(aLockId,object.getUri(),aSubject,aType,aDateExpiration,aInheritable,aNegative)
@@ -439,7 +439,7 @@
Element aRevisionsHistory=aElement.getChild("revisionsHistory");
NodeRevisionNumber aInitialRevision=decodeRevisionNumber(aRevisionsHistory.getAttributeValue("initialRevision"));
- boolean aUseVersionning=Boolean.getBoolean(aRevisionsHistory.getAttributeValue("useVersioning"));
+ boolean aUseVersionning=new Boolean(aRevisionsHistory.getAttributeValue("useVersioning")).booleanValue();
Element aBranchesElement=aRevisionsHistory.getChild("branches");
if (aBranchesElement==null) {
@@ -466,7 +466,7 @@
Vector aSuccessorsNumbers=new Vector();
for (int k=0;k<aSuccessors.size();k++) {
Element aSuccessor=(Element)aSuccessors.get(k);
- NodeRevisionNumber aRevisionNumber=decodeRevisionNumber(aChild.getAttributeValue("number"));
+ NodeRevisionNumber aRevisionNumber=decodeRevisionNumber(aSuccessor.getAttributeValue("number"));
aSuccessorsNumbers.addElement(aRevisionNumber);
}
aBranches.put(aStartNumber,aSuccessorsNumbers);
@@ -516,8 +516,8 @@
String aRevisionNumber=aElement.getAttributeValue("revisionNumber");
String aSubject=aElement.getAttributeValue("subjectUri");
String aAction=aElement.getAttributeValue("actionUri");
- boolean aInheritable=Boolean.getBoolean(aElement.getAttributeValue("inheritable"));
- boolean aNegative=Boolean.getBoolean(aElement.getAttributeValue("negative"));
+ boolean aInheritable=new Boolean(aElement.getAttributeValue("inheritable")).booleanValue();
+ boolean aNegative=new Boolean(aElement.getAttributeValue("negative")).booleanValue();
return new NodePermission(aUri,aRevisionNumber,aSubject,aAction,aInheritable,aNegative);
}
@@ -537,7 +537,7 @@
String aValue=aElement.getAttributeValue("value");
String aNamespace=aElement.getAttributeValue("namespace");
String aType=aElement.getAttributeValue("type");
- boolean aProtected=Boolean.getBoolean(aElement.getAttributeValue("protected"));
+ boolean aProtected=new Boolean(aElement.getAttributeValue("protected")).booleanValue();
Element aPermisionsElement=aElement.getChild("permissions");
List aList=aPermisionsElement.getChildren();
@@ -583,3 +583,4 @@
}
*/
}
+
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>