com.arsdigita.domain
Class DomainService

java.lang.Object
  extended bycom.arsdigita.domain.DomainService
Direct Known Subclasses:
DomainServiceInterfaceExposer, PermissionService, SearchIndexHelp

public abstract class DomainService
extends Object

This class should be extended by domain object services that need privileged access to the DataObject encapsulated by a DomainObject or the DataCollection encapsulated by a DomainCollection.

Version:
1.0
Author:
Oumi Mehrotra
See Also:
DataObject

Field Summary
static String versionId
           
 
Constructor Summary
DomainService()
           
 
Method Summary
protected static DataObject add(DomainObject domainObject, String roleName, DataObject value)
          Adds data object specified by value to the specified role (with multiplicity>1) of the specified domain object.
protected static DataObject add(DomainObject domainObject, String roleName, DomainObject value)
          Adds domain object specified by value to the specified role (with multiplicity>1) of the specified domain object.
protected static void clear(DomainObject domainObject, String roleName)
          Clears specified role (with multiplicity > 1) of specified domain object.
protected static Object get(DomainObject domainObject, String attr)
          Get a property of the specified domain object.
protected static DataCollection getDataCollection(DomainCollection domainCollection)
          Get the data collection encapsulated by a domain collection.
protected static DataObject getDataObject(DomainObject domainObject)
          Get the underlying DataObject of the DomainObject
protected static void remove(DomainObject domainObject, String roleName, DataObject value)
          Removes data object specified by value from the specified role (with multiplicity>1) of the specified domain object.
protected static void remove(DomainObject domainObject, String roleName, DomainObject value)
          Removes domain object specified by value from the specified role (with multiplicity>1) of the specified domain object.
protected static void set(DomainObject domainObject, String attr, Object value)
          Set a property of the DomainObjects DataObject.
protected static void setAssociation(DomainObject domainObject, String attr, DomainObject dobj)
          Set an association DomainObjects DataObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DomainService

public DomainService()
Method Detail

get

protected static Object get(DomainObject domainObject,
                            String attr)
Get a property of the specified domain object.

See Also:
DomainObject.get(String)

getDataObject

protected static DataObject getDataObject(DomainObject domainObject)
Get the underlying DataObject of the DomainObject


getDataCollection

protected static DataCollection getDataCollection(DomainCollection domainCollection)
Get the data collection encapsulated by a domain collection.

See Also:
DomainObject.get(String)

set

protected static void set(DomainObject domainObject,
                          String attr,
                          Object value)
Set a property of the DomainObjects DataObject.

See Also:
DomainObject.set(String, Object)

setAssociation

protected static void setAssociation(DomainObject domainObject,
                                     String attr,
                                     DomainObject dobj)
Set an association DomainObjects DataObject.

See Also:
DomainObject.set(String, Object)

add

protected static DataObject add(DomainObject domainObject,
                                String roleName,
                                DataObject value)
Adds data object specified by value to the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.add(String, DataObject)

add

protected static DataObject add(DomainObject domainObject,
                                String roleName,
                                DomainObject value)
Adds domain object specified by value to the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.add(String, DomainObject)

remove

protected static void remove(DomainObject domainObject,
                             String roleName,
                             DataObject value)
Removes data object specified by value from the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.remove(String, DataObject)

remove

protected static void remove(DomainObject domainObject,
                             String roleName,
                             DomainObject value)
Removes domain object specified by value from the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.remove(String, DomainObject)

clear

protected static void clear(DomainObject domainObject,
                            String roleName)
Clears specified role (with multiplicity > 1) of specified domain object.

See Also:
DomainObject.clear(String)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC