changeset 22:b0e75dfe1853

change isSemiprivate to isNew
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 13 Jun 2020 22:59:17 -0600
parents aba8ed4c8a06
children e424dc827823
files src/nabble/model/DbSiteCreator.java src/nabble/model/Site.java src/nabble/model/SiteImpl.java src/nabble/view/naml/permissions.naml src/nabble/view/web/template/NabbleNamespace.java
diffstat 5 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/nabble/model/DbSiteCreator.java	Sat Jun 13 22:30:48 2020 -0600
+++ b/src/nabble/model/DbSiteCreator.java	Sat Jun 13 22:59:17 2020 -0600
@@ -94,7 +94,7 @@
 		rootNode.setType(type);
 		rootNode.insert(false);
 		site.setRoot(rootNode);
-		site.setSemiprivate(true);
+		site.setNew(true);
 		return site;
 	}
 
--- a/src/nabble/model/Site.java	Sat Jun 13 22:30:48 2020 -0600
+++ b/src/nabble/model/Site.java	Sat Jun 13 22:59:17 2020 -0600
@@ -62,8 +62,8 @@
 	public List<Node> findTagNodes(String sqlCondition);
 	public List<Long> findTagNodeIds(String sqlCondition);
 
-	public boolean isSemiprivate();
-	public void setSemiprivate(boolean isSemiprivate);
+	public boolean isNew();
+	public void setNew(boolean isNew);
 
 	public boolean isModuleEnabled(String moduleName);
 	public void setModuleEnabled(String moduleName,boolean isEnabled);
--- a/src/nabble/model/SiteImpl.java	Sat Jun 13 22:30:48 2020 -0600
+++ b/src/nabble/model/SiteImpl.java	Sat Jun 13 22:59:17 2020 -0600
@@ -558,15 +558,15 @@
 	}
 
 
-	public boolean isSemiprivate() {
-		return hasTags(null,null,"label='semiprivate'");
+	public boolean isNew() {
+		return hasTags(null,null,"label='new'");
 	}
 
-	public void setSemiprivate(boolean isSemiprivate) {
-		if( isSemiprivate ) {
-			addTag(null,null,"semiprivate");
+	public void setNew(boolean isNew) {
+		if( isNew ) {
+			addTag(null,null,"new");
 		} else {
-			deleteTags(null,null,"label='semiprivate'");
+			deleteTags(null,null,"label='new'");
 		}
 	}
 
--- a/src/nabble/view/naml/permissions.naml	Sat Jun 13 22:30:48 2020 -0600
+++ b/src/nabble/view/naml/permissions.naml	Sat Jun 13 22:59:17 2020 -0600
@@ -335,9 +335,9 @@
 		</n.if.equal>
 		<n.if.is_private>
 			<then.get_private_node.id />
-			<else.if.is_semiprivate>
+			<else.if.is_new>
 				<then.id />
-			</else.if.is_semiprivate>
+			</else.if.is_new>
 		</n.if.is_private>
 	</n.get_node_from_parameter.>
 </macro>
--- a/src/nabble/view/web/template/NabbleNamespace.java	Sat Jun 13 22:30:48 2020 -0600
+++ b/src/nabble/view/web/template/NabbleNamespace.java	Sat Jun 13 22:59:17 2020 -0600
@@ -113,8 +113,8 @@
 		out.print( site.getId() );
 	}
 
-	@Command public void is_semiprivate(IPrintWriter out,Interpreter interp) {
-		out.print( site.isSemiprivate() );
+	@Command public void is_new(IPrintWriter out,Interpreter interp) {
+		out.print( site.isNew() );
 	}
 
 	@Command public void base_url(IPrintWriter out,Interpreter interp) {