public final class Group extends Lockable<Group>
NetDB.FORMATAttribute.COMPARISON_TYPE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JSON_COMMENT |
static java.lang.String |
JSON_NAME |
static java.lang.String |
json_template_name
The template toJSON uses.
|
static java.lang.String |
template_name
The template toString uses.
|
JSON_CREATED_BY, JSON_CREATED_DATE, JSON_GROUPS, JSON_MODIFIED_BY, JSON_MODIFIED_DATEextra_data, UNPROCESSED_JSON| Constructor and Description |
|---|
Group() |
Group(NetDB_Datastore datastore) |
Group(NetDB_Datastore datastore,
java.lang.String name) |
Group(NetDB_Datastore datastore,
java.lang.String name,
java.lang.String comment) |
Group(java.lang.String name) |
Group(java.lang.String name,
java.lang.String comment) |
| Modifier and Type | Method and Description |
|---|---|
Group |
_commit(NetDB_Datastore datastore,
java.lang.Boolean unlock) |
static void |
_delete(NetDB_Datastore datastore,
java.lang.String handle)
This method makes the DB call(s).
|
static java.lang.String |
_handle(NetDB_Datastore datastore,
java.lang.Long id)
This method makes the DB call(s).
|
static java.lang.Boolean |
_has_access(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long user_id,
java.lang.String record_type,
java.lang.Long record_id)
This method makes the DB call(s).
|
static java.util.Hashtable |
_list(NetDB_Datastore datastore,
java.lang.Boolean all)
This method makes the DB call(s).
|
static java.util.Hashtable |
_load_object(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
This method makes the DB call(s).
|
static java.util.Hashtable |
_load_object(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.String handle)
This method makes the DB call(s).
|
static Lock_Result |
_lock_record(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
This method makes the DB call(s).
|
static Lock_Result |
_lock_record(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.String handle)
This method makes the DB call(s).
|
static java.util.Hashtable |
_search(NetDB_Datastore datastore,
java.lang.String filter)
This method makes the DB call(s).
|
java.lang.Boolean |
_unlock(NetDB_Datastore datastore)
This method makes the DB call(s).
|
static java.lang.Long |
_verify_or_die(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
This method makes the DB call(s).
|
java.lang.String |
comment()
Fetch the comment.
|
Group |
comment(java.lang.String comment)
Set the comment.
|
Group |
commit(NetDB_Datastore datastore,
java.lang.Boolean unlock)
Insert, or update, a Group, and optionally unlock it.
|
void |
delete(NetDB_Datastore datastore)
Delete this from the specified datastore.
|
static void |
delete(NetDB_Datastore datastore,
java.lang.String handle)
Delete handle from the specified datastore.
|
static void |
delete(java.lang.String handle)
Delete handle from the default datastore.
|
static java.util.Collection<Group> |
full_search(Group_FS_Parameters parameters) |
static java.util.Collection<Group> |
full_search(NetDB_Datastore datastore,
Group_FS_Parameters parameters) |
java.lang.String |
handle()
This is the unique identifier used in the database to identify a record.
|
static java.lang.Boolean |
has_access()
Check if the operating user has access to this record type in the default datastore.
|
static java.lang.Boolean |
has_access(NetDB_Datastore datastore)
Check if the operating user has access to this record type in the specified datastore.
|
static java.lang.Boolean |
has_access(NetDB_Datastore datastore,
java.lang.String handle)
Make an access check using the operating user and specified datastore.
|
static java.lang.Boolean |
has_access(NetDB_Datastore datastore,
User user)
Check if the specified user has access to this record type in the specified datastore.
|
static java.lang.Boolean |
has_access(NetDB_Datastore datastore,
User user,
java.lang.String handle)
Check if the specified user (or the operating user if a user is not specified) has access to
handle in the specified datastore.
|
static java.lang.Boolean |
has_access(java.lang.String handle)
Make an access check using the operating user and default datastore.
|
static java.lang.Boolean |
has_access(User user)
Check if the specified user has access to this record type in the default datastore.
|
static java.lang.Boolean |
has_access(User user,
java.lang.String handle)
Make an access check using the specified user and default datastore.
|
java.lang.Long |
id()
Fetch the ID.
|
static java.util.Collection<Group> |
list()
List the records that the current operating user has acces to in the default datastore.
|
static java.util.Collection<Group> |
list(java.lang.Boolean all)
List all of the records in the default datastore.
|
static java.util.Collection<Group> |
list(NetDB_Datastore datastore)
List the records that the current operating user has acces to in the specified datastore.
|
static java.util.Collection<Group> |
list(NetDB_Datastore datastore,
java.lang.Boolean all)
List all of the records in the specified datastore.
|
static Group |
load(java.lang.Boolean lock,
java.lang.Long id)
Load id, and optionally lock the record, from the default datastore.
|
static Group |
load(java.lang.Boolean lock,
java.lang.String handle)
Load handle, and optionally lock the record, from the default datastore.
|
static Group |
load(java.lang.Long id)
Load id from the default datastore.
|
static Group |
load(NetDB_Datastore datastore,
java.lang.Boolean lock,
java.lang.Long id)
Load id, and optionally lock the record, from the specified datastore.
|
static Group |
load(NetDB_Datastore datastore,
java.lang.Boolean lock,
java.lang.String handle)
Load handle, and optionally lock the record, from the specified datastore.
|
static Group |
load(NetDB_Datastore datastore,
java.lang.Long id)
Load id from the specified datastore.
|
static Group |
load(NetDB_Datastore datastore,
java.lang.String handle)
Load handle from the specified datastore.
|
static Group |
load(java.lang.String handle)
Load handle from the default datastore.
|
java.lang.String |
name()
Fetch the name.
|
Group |
name(java.lang.String name)
Set the name.
|
Group |
new_instance()
Create a new instance of this class's type.
|
static java.util.Collection<NetDB> |
related_records(NetDB_Datastore datastore,
Related_FS_Parameters parameters) |
static java.util.Collection<NetDB> |
related_records(Related_FS_Parameters parameters) |
static java.util.Collection<Group_SS_Result> |
search()
Search the default datastore for all Groups.
|
static java.util.Collection<Group_SS_Result> |
search(NetDB_Datastore datastore)
Search the specified datastore for all Groups.
|
static java.util.Collection<Group_SS_Result> |
search(NetDB_Datastore datastore,
java.lang.String filter)
Search the specified datastore for all Groups matching filter.
|
static java.util.Collection<Group_SS_Result> |
search(java.lang.String filter)
Search the default datastore for all Groups matching filter.
|
java.lang.String |
single_value_attributes()
This string only contains the group name.
|
java.lang.String |
toJSON(java.lang.Boolean pretty,
java.lang.Boolean ignore_exceptions)
Convert this to a JSON object using the template defined in json_template_name.
|
java.lang.String |
toString(NetDB.FORMAT format,
java.lang.Boolean ignore_exceptions)
Convert this to a String using the template defined in template_name.
|
Group |
unlink()
Treat this object as user created, and clear any datastore specific information.
|
Group |
unlock()
Unlock this record.
|
add_group, add_groups, add_owner, add_owners, bind, commit, commit, commit, created_at, created_by, groups, is_locked, locked_at, locked_by, modified_at, modified_by, owners, remove_group, remove_groups, remove_owner, remove_owners, unbindautocomplete, autocomplete, clear_extra_data, compare, compare, compare, compareTo, complete, created_by_user, datastore, default_datastore, default_datastore, defined_or_die_handle, defined_or_die, equals, extra_data, extra_data, extra_data, fromJSON, is_bound, is_complete, is_partial, json_recovery_log, reset_timing, rmi_exception, timing, toJSON, toJSON, toJSON, toJSON, toString, toString, toString, toString, unique_identifier, versionsort_comparatorbackup_logger, backup_logger, default_logger, default_logger, entered, entered, entered, exited, exited, exited, get_method_name, log_enter_exit, log_message, logger, loggerpublic static java.lang.String template_name
public static java.lang.String json_template_name
public static final java.lang.String JSON_NAME
public static final java.lang.String JSON_COMMENT
public Group()
public Group(java.lang.String name)
public Group(java.lang.String name,
java.lang.String comment)
public Group(NetDB_Datastore datastore)
public Group(NetDB_Datastore datastore, java.lang.String name)
public Group(NetDB_Datastore datastore, java.lang.String name, java.lang.String comment)
public java.lang.Long id()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic java.lang.String name()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String comment()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String handle()
NetDBpublic Group new_instance() throws java.lang.Exception
NetDBnew_instance in class NetDB<Group>java.lang.Exceptionpublic Group name(java.lang.String name)
public Group comment(java.lang.String comment)
public Group unlink()
NetDBpublic java.lang.String single_value_attributes()
single_value_attributes in class Attribute<Group>Attribute.compare(Attribute),
Attribute.compare(Attribute,COMPARISON_TYPE)public java.lang.String toString(NetDB.FORMAT format, java.lang.Boolean ignore_exceptions) throws java.lang.Exception
public java.lang.String toJSON(java.lang.Boolean pretty,
java.lang.Boolean ignore_exceptions)
throws java.lang.Exception
public static java.lang.String _handle(NetDB_Datastore datastore, java.lang.Long id) throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Long _verify_or_die(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Boolean has_access()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.lang.Boolean has_access(User user) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.lang.Boolean has_access(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.lang.Boolean has_access(NetDB_Datastore datastore, User user) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.lang.Boolean has_access(java.lang.String handle)
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationhas_access(NetDB_Datastore,User,String)public static java.lang.Boolean has_access(User user, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationhas_access(NetDB_Datastore,User,String)public static java.lang.Boolean has_access(NetDB_Datastore datastore, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationhas_access(NetDB_Datastore,User,String)public static java.lang.Boolean has_access(NetDB_Datastore datastore, User user, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.lang.Boolean _has_access(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long user_id,
java.lang.String record_type,
java.lang.Long record_id)
throws java.lang.Exception
java.lang.Exceptionpublic static Lock_Result _lock_record(java.lang.String transaction_name, NetDB_Datastore datastore, java.lang.String handle) throws java.lang.Exception
java.lang.Exceptionpublic static Lock_Result _lock_record(java.lang.String transaction_name, NetDB_Datastore datastore, java.lang.Long id, java.lang.String handle) throws java.lang.Exception
java.lang.Exceptionpublic Group unlock() throws java.lang.Exception, No_Datastore_Defined
Lockableunlock in class Lockable<Group>java.lang.ExceptionNo_Datastore_Definedpublic java.lang.Boolean _unlock(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined
java.lang.ExceptionNo_Datastore_Definedpublic static Group load(java.lang.Boolean lock, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(java.lang.Boolean lock, java.lang.Long id) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(NetDB_Datastore datastore, java.lang.Boolean lock, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(NetDB_Datastore datastore, java.lang.Boolean lock, java.lang.Long id) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(java.lang.Long id) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(NetDB_Datastore datastore, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Group load(NetDB_Datastore datastore, java.lang.Long id) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static java.util.Hashtable _load_object(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.String handle)
throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Hashtable _load_object(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Collection<Group> list() throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.util.Collection<Group> list(java.lang.Boolean all) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.util.Collection<Group> list(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.util.Collection<Group> list(NetDB_Datastore datastore, java.lang.Boolean all) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static java.util.Hashtable _list(NetDB_Datastore datastore, java.lang.Boolean all) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic void delete(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
delete in class Record<Group>java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static void delete(java.lang.String handle)
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static void delete(NetDB_Datastore datastore, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic static void _delete(NetDB_Datastore datastore, java.lang.String handle) throws java.lang.Exception
java.lang.Exceptionpublic Group commit(NetDB_Datastore datastore, java.lang.Boolean unlock) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
commit in class Lockable<Group>java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic Group _commit(NetDB_Datastore datastore, java.lang.Boolean unlock) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Collection<Group_SS_Result> search() throws java.lang.Exception, No_Datastore_Defined
java.lang.ExceptionNo_Datastore_Definedpublic static java.util.Collection<Group_SS_Result> search(java.lang.String filter) throws java.lang.Exception, No_Datastore_Defined
java.lang.ExceptionNo_Datastore_Definedpublic static java.util.Collection<Group_SS_Result> search(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined
java.lang.ExceptionNo_Datastore_Definedpublic static java.util.Collection<Group_SS_Result> search(NetDB_Datastore datastore, java.lang.String filter) throws java.lang.Exception, No_Datastore_Defined
java.lang.ExceptionNo_Datastore_Definedpublic static java.util.Hashtable _search(NetDB_Datastore datastore, java.lang.String filter) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Collection<Group> full_search(Group_FS_Parameters parameters) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Collection<Group> full_search(NetDB_Datastore datastore, Group_FS_Parameters parameters) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Collection<NetDB> related_records(Related_FS_Parameters parameters) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Collection<NetDB> related_records(NetDB_Datastore datastore, Related_FS_Parameters parameters) throws java.lang.Exception
java.lang.Exception