|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.admin.DomainAdministeredHelper
The DomainAdministeredHelper
class provides methods for
manipulating the administrative domain reference information held by
objects that implement the DomainAdministered interface.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
DomainAdministeredHelper()
|
Method Summary | |
static void |
copyDomain(DomainAdministered from_obj,
DomainAdministered to_obj)
Copy the domain of one object to another. |
static AdministrativeDomain |
getAdminDomain(DomainAdministered obj)
Returns the administrative domain of the object. |
static AdminDomainRef |
getAdminDomainRef(DomainAdministered obj)
Returns a reference to the administrative domain of the object. |
static SearchCondition |
getSearchCondition(AdministrativeDomain domain)
Constructs and returns a search condition that can be used to retrieve all objects belonging to the domain passed as argument. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DomainAdministeredHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static boolean |
sameAdministrativeDomain(DomainAdministered obj1,
DomainAdministered obj2)
Returns true if both objects are in the same AdministrativeDomain . |
static DomainAdministered |
setAdminDomain(DomainAdministered obj,
AdminDomainRef domain_ref)
Sets the administrative domain of the object to the one whose reference is passed as argument. |
static DomainAdministered |
setAdminDomain(DomainAdministered obj,
AdministrativeDomain domain)
Sets the administrative domain of the object to the one passed as argument. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public DomainAdministeredHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DomainAdministeredHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static DomainAdministered setAdminDomain(DomainAdministered obj, AdministrativeDomain domain) throws WTException
obj
- domain
-
WTRuntimeException
- If the object is Persistable and is
already Persistent.
WTException
AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered
obj, AdminDomainRef domain_ref)
,
AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered
obj, AdminDomainRef domain_ref, boolean inheritedDomain)
,
AdministrativeDomainManagerSvr.replaceAdministrativeDomain(DomainAdministered
from, DomainAdministered to, boolean commit_change)
public static DomainAdministered setAdminDomain(DomainAdministered obj, AdminDomainRef domain_ref) throws WTException
obj
- domain_ref
-
WTRuntimeException
- If the object is Persistable and is
already Persistent.
WTException
AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered
obj, AdminDomainRef domain_ref)
,
AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered
obj, AdminDomainRef domain_ref, boolean inheritedDomain)
,
AdministrativeDomainManagerSvr.replaceAdministrativeDomain(DomainAdministered
from, DomainAdministered to, boolean commit_change)
public static AdministrativeDomain getAdminDomain(DomainAdministered obj) throws WTException
obj
-
WTException
public static AdminDomainRef getAdminDomainRef(DomainAdministered obj) throws WTException
obj
-
WTException
public static SearchCondition getSearchCondition(AdministrativeDomain domain) throws WTException
domain
-
WTException
public static void copyDomain(DomainAdministered from_obj, DomainAdministered to_obj) throws WTException
from_obj
- to_obj
-
WTException
public static boolean sameAdministrativeDomain(DomainAdministered obj1, DomainAdministered obj2) throws WTException
AdministrativeDomain
.
obj1
- obj2
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |