[cvs] expresso commit by lhamel: put descriptions in bundle
JCorporate Ltd
jcorp at jcorp2.servlets.net
Wed Nov 17 00:55:23 PST 2004
Log Message:
-----------
put descriptions in bundle
Modified Files:
--------------
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj:
RowGroupPerms.java
Revision Data
-------------
Index: RowGroupPerms.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowGroupPerms.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowGroupPerms.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowGroupPerms.java -u -r1.9 -r1.10
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowGroupPerms.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowGroupPerms.java
@@ -70,11 +70,11 @@
/**
* storage for read/write permissions for a group, concerning a given row in the database
- this object and its table are a complement to the RowPermissions object and table.
- RowGroupPerms holds group permissions.
-
+ * this object and its table are a complement to the RowPermissions object and table.
+ * RowGroupPerms holds group permissions.
+ * <p/>
* this object and its table should be manipulated only through RowSecuredDBObject
-
+ *
* @author larry hamel
* @see com.jcorporate.expresso.core.dbobj.RowSecuredDBObject
* @see com.jcorporate.expresso.services.dbobj.RowPermissions
@@ -162,19 +162,20 @@
/**
* override in subclesses, and be sure to call this as first line of override
+ *
* @throws DBException upon error
*/
protected synchronized void setupFields() throws DBException {
setTargetTable(GROUP_PERMISSIONS_TABLE_NAME);
setDescription("RowGroupPermissons");
addField(TABLE_NAME, DBField.VARCHAR_TYPE,
- RowPermissions.MAX_TABLE_NAME_LENGTH, false, "Target table name");
+ RowPermissions.MAX_TABLE_NAME_LENGTH, false, "Targettablename");
/**
* @todo should ROW_KEY be longvarchar? is that indexable on all databases?
*/
- addField(ROW_KEY, RowPermissions.sKeyType, RowPermissions.sMaxKeyLen, false, "Row key");
+ addField(ROW_KEY, RowPermissions.sKeyType, RowPermissions.sMaxKeyLen, false, "Rowkey");
addField(GROUP, DBField.CHAR_TYPE, UserGroup.GROUP_NAME_MAX_LEN, false, "Group");
- addField(PERMISSIONS, DBField.INT_TYPE, 0, true, "Permission bits");
+ addField(PERMISSIONS, DBField.INT_TYPE, 0, true, "Permissionbits");
addKey(TABLE_NAME);
addKey(ROW_KEY);
@@ -193,11 +194,12 @@
/**
* Set group;
- *will throw run-time exception if the entire key for this row,
+ * will throw run-time exception if the entire key for this row,
* which includes tablename, row key, and group name,
* is longer than permitted maximum for the host database.
- * @throws DBException upon error
+ *
* @param group the group string?
+ * @throws DBException upon error
*/
public void group(String group) throws DBException {
if (group == null) throw new DBException("null group name");
@@ -216,6 +218,7 @@
/**
* set group group is "Everybody"
* just sets fields--does not save; caller must call update()
+ *
* @throws DBException upon error
*/
public void setDefaultPermissions() throws DBException {
@@ -226,6 +229,7 @@
/**
* set permissions
+ *
* @param perm Permissions code
* @throws DBException upon error
*/
@@ -235,6 +239,7 @@
/**
* set permissions; not protected by test
+ *
* @return integer permission code
* @throws DBException upon error
*/
@@ -243,8 +248,10 @@
if (getField(PERMISSIONS).length() == 0) return 0;
return getFieldInt(PERMISSIONS);
}
+
/**
* accessor for table name
+ *
* @return table name
*/
public String table() throws DBException {
@@ -257,6 +264,7 @@
public void table(String targetTable) throws DBException {
setField(TABLE_NAME, targetTable);
}
+
/**
* @return row key
*/
More information about the cvs
mailing list