summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-09-18 23:40:37 +0000
committerRuss Allbery <rra@stanford.edu>2007-09-18 23:40:37 +0000
commit088e2ecba73fedebb0b7729a1f07022fd6155c22 (patch)
tree2d55f924132d08cb1ebd56a5c482db5d855f9a47 /docs
parente435832256e0ba069b771e9bb350e749600efcd4 (diff)
Document the locked flag in the server backend and client man pages.
Document locked flag issues when implementing a new object type.
Diffstat (limited to 'docs')
-rw-r--r--docs/design-api10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/design-api b/docs/design-api
index 48c5a66..af2ff65 100644
--- a/docs/design-api
+++ b/docs/design-api
@@ -45,6 +45,10 @@ Object API
administrator will want to destroy an orphaned wallet database entry
after something happened to the remote system entry.
+ If you override this method and perform actions before calling the
+ parent method, be sure to check the locked flag first and abort if the
+ object is locked.
+
flag_clear(FLAG, PRINCIPAL, HOSTNAME [, DATETIME])
Normally, objects won't have to override this method, but if the
@@ -68,6 +72,9 @@ Object API
Don't forget to call log_action() after successfully retrieving the
data to update the history and trace information.
+ Be sure to check the locked flag first and abort if the object is
+ locked before returning any data.
+
store(DATA, PRINCIPAL, HOSTNAME [, DATETIME])
Store user-supplied data into the given object. This may not be
@@ -76,6 +83,9 @@ Object API
storing data can just not implement this method and the default
store() method will return an appropriate error.
+ Be sure to check the locked flag first and abort if the object is
+ locked without storing any data.
+
If this method is implemented, don't forget to call log_action() after
successfully storing the data to update the history and trace
information.