wt.federation
Class ProxyGroup

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.fc.Item
          extended by wt.org.WTPrincipal
              extended by wt.org.WTGroup
                  extended by wt.federation.ProxyGroup
All Implemented Interfaces:
Externalizable, Serializable, Principal, AccessControlled, wt.access.AccessControlList, wt.access.AdHocControlled, wt.access.PolicyAccessControlled, wt.access.SecurityLabeled, wt.admin.DomainAdministered, wt.fc.BusinessInformation, NetFactor, ObjectMappable, Persistable, Federated, wt.federation.FederatedLinkHolder, wt.federation.RemotelyLinkable, DisplayIdentification, WTContained, RemoteAccess, wt.recent.RecentlyVisited, wt.ufid.Federatable

public class ProxyGroup
extends WTGroup
implements RemoteAccess, Federated, Externalizable

Proxy group of users.

Use the newProxyGroup static factory method(s), not the ProxyGroup constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface wt.federation.Federated
SERVICE_ID
 
Method Summary
 boolean addMember(WTPrincipal principal)
          Adds a member to the group.
 QueryResult findLinks(Class targetLinkClass, String obj1Role, Persistable obj2)
          Return all link objects that exist between the Federated object and the specified source object.
 FederatedService getService()
          Return the service object referenced by the serviceId attribute.
 ServiceIdentifier getServiceId()
          Gets the object for the association that plays role: SERVICE_ID.
 boolean isMember(WTPrincipal principal)
          

Supported API: true
 Enumeration members()
          

Supported API: true
 QueryResult navigate(String role, Class linkClass, boolean onlyOtherSide)
          Return objects related to this federated source object given a role and link class.
 QueryResult navigate(String role, QuerySpec criteria, boolean onlyOtherSide)
          Return objects related to this federated source object given a role and link selection crtieria.
 void postStore()
          The persistence manager calls this method just after storing the proxy object in the database.
 void prepareForStore()
          The persistence manager calls this method just before storing the proxy object in the database.
 void preset()
          This method is called when a proxy object is first created by a service, just after the object is instantiated and its readExternal method has been called to populate its properties from attributes obtained from the remote information source.
 void refresh()
          Refresh the derived attributes of the object.
 void refreshIfStale()
          Refresh the derived attributes of the object, but only if the properties are stale.
 boolean removeMember(WTPrincipal principal)
          Removes a member from the group.
 void setServiceId(ServiceIdentifier a_ServiceId)
          Sets the object for the association that plays role: SERVICE_ID.
 void update()
          Update the derived attributes of the object on the source service.
 
Methods inherited from class wt.org.WTGroup
addMembers, getBusinessType, initialize, initialize, newWTGroup, newWTGroup, newWTGroup, parentGroups
 
Methods inherited from class wt.org.WTPrincipal
getPrincipalDisplayIdentifier
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

isMember

public boolean isMember(WTPrincipal principal)
                 throws WTException


Supported API: true

Overrides:
isMember in class WTGroup
Parameters:
principal -
Returns:
boolean
Throws:
WTException

members

public Enumeration members()
                    throws WTException


Supported API: true

Overrides:
members in class WTGroup
Returns:
Enumeration
Throws:
WTException

getService

public FederatedService getService()
                            throws wt.federation.FederationServicesException
Return the service object referenced by the serviceId attribute.

Supported API: true

Specified by:
getService in interface Federated
Returns:
FederatedService
Throws:
wt.federation.FederationServicesException

preset

public void preset()
            throws wt.federation.FederationServicesException
This method is called when a proxy object is first created by a service, just after the object is instantiated and its readExternal method has been called to populate its properties from attributes obtained from the remote information source. This method allows the proxy object to do further class-specific initialization.

Supported API: true

Specified by:
preset in interface Federated
Throws:
wt.federation.FederationServicesException

refresh

public void refresh()
             throws wt.federation.FederationServicesException
Refresh the derived attributes of the object.

Supported API: true

Specified by:
refresh in interface Federated
Throws:
wt.federation.FederationServicesException

refreshIfStale

public void refreshIfStale()
                    throws wt.federation.FederationServicesException
Refresh the derived attributes of the object, but only if the properties are stale.

Supported API: true

Specified by:
refreshIfStale in interface Federated
Throws:
wt.federation.FederationServicesException

update

public void update()
            throws wt.federation.FederationServicesException
Update the derived attributes of the object on the source service.

Supported API: true

Specified by:
update in interface Federated
Throws:
wt.federation.FederationServicesException

prepareForStore

public void prepareForStore()
                     throws wt.federation.FederationServicesException
The persistence manager calls this method just before storing the proxy object in the database. This gives the object an opportunity to make associated proxy objects persistent, if necessary.

Supported API: true

Specified by:
prepareForStore in interface Federated
Throws:
wt.federation.FederationServicesException

findLinks

public QueryResult findLinks(Class targetLinkClass,
                             String obj1Role,
                             Persistable obj2)
                      throws wt.federation.FederationServicesException
Return all link objects that exist between the Federated object and the specified source object.

Supported API: true

Specified by:
findLinks in interface Federated
Parameters:
targetLinkClass -
obj1Role -
obj2 -
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

navigate

public QueryResult navigate(String role,
                            Class linkClass,
                            boolean onlyOtherSide)
                     throws wt.federation.FederationServicesException
Return objects related to this federated source object given a role and link class. Return only the related objects themselves if specified. Otherwise, return both the related objects as well as the link objects that associate them with the source object.

Supported API: true

Specified by:
navigate in interface Federated
Parameters:
role -
linkClass -
onlyOtherSide -
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

navigate

public QueryResult navigate(String role,
                            QuerySpec criteria,
                            boolean onlyOtherSide)
                     throws wt.federation.FederationServicesException
Return objects related to this federated source object given a role and link selection crtieria. Return only the related objects themselves if specified. Otherwise, return both the related objects as well as the link objects that associate them with the source object.

Supported API: true

Specified by:
navigate in interface Federated
Parameters:
role -
criteria -
onlyOtherSide -
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

postStore

public void postStore()
               throws wt.federation.FederationServicesException
The persistence manager calls this method just after storing the proxy object in the database. This gives the object an opportunity to make associated objects persistent, if necessary. For example, links between the proxy object and other objects need to be persisted after the proxy object is persisted.

Supported API: true

Specified by:
postStore in interface Federated
Throws:
wt.federation.FederationServicesException

getServiceId

public ServiceIdentifier getServiceId()
Gets the object for the association that plays role: SERVICE_ID.

Supported API: true

Specified by:
getServiceId in interface Federated
Returns:
ServiceIdentifier

setServiceId

public void setServiceId(ServiceIdentifier a_ServiceId)
                  throws WTPropertyVetoException
Sets the object for the association that plays role: SERVICE_ID.

Supported API: true

Specified by:
setServiceId in interface Federated
Parameters:
a_ServiceId -
Throws:
WTPropertyVetoException

addMember

public boolean addMember(WTPrincipal principal)
                  throws WTException
Adds a member to the group. Returns true if user is added; false if user already belongs to group.

Supported API: true

Overrides:
addMember in class WTGroup
Parameters:
principal -
Returns:
boolean
Throws:
WTException

removeMember

public boolean removeMember(WTPrincipal principal)
                     throws WTException
Removes a member from the group. Returns true if user is removed; false if user doesn't belong to group.

Supported API: true

Overrides:
removeMember in class WTGroup
Parameters:
principal -
Returns:
boolean
Throws:
WTException