net.sf.farrago.fem.security
Interface UserAssignedNamespace

All Superinterfaces:
RefAssociation, RefBaseObject
All Known Implementing Classes:
UserAssignedNamespace$Hib

public interface UserAssignedNamespace
extends RefAssociation

UserAssignedNamespace association proxy interface.

A user must be assigned with a namespace, it can be a catolog or a schema within a given catalog.

A user can only have one default namespace, if the namespace is a schema then the user

Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.


Method Summary
 boolean add(FemUser namespaceAssignee, CwmNamespace defaultNamespace)
          Creates a link between the pair of instance objects in the associations link set.
 boolean exists(FemUser namespaceAssignee, CwmNamespace defaultNamespace)
          Queries whether a link currently exists between a given pair of instance objects in the associations link set.
 CwmNamespace getDefaultNamespace(FemUser namespaceAssignee)
          Queries the instance object that is related to a particular instance object by a link in the current associations link set.
 Collection<FemUser> getNamespaceAssignee(CwmNamespace defaultNamespace)
          Queries the instance objects that are related to a particular instance object by a link in the current associations link set.
 boolean remove(FemUser namespaceAssignee, CwmNamespace defaultNamespace)
          Removes a link between a pair of instance objects in the current associations link set.
 
Methods inherited from interface javax.jmi.reflect.RefAssociation
refAddLink, refAllLinks, refLinkExists, refQuery, refQuery, refRemoveLink
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

exists

boolean exists(FemUser namespaceAssignee,
               CwmNamespace defaultNamespace)
Queries whether a link currently exists between a given pair of instance objects in the associations link set.

Parameters:
namespaceAssignee - Value of the first association end.
defaultNamespace - Value of the second association end.
Returns:
Returns true if the queried link exists.

getNamespaceAssignee

Collection<FemUser> getNamespaceAssignee(CwmNamespace defaultNamespace)
Queries the instance objects that are related to a particular instance object by a link in the current associations link set.

Parameters:
defaultNamespace - Required value of the second association end.
Returns:
Collection of related objects.

getDefaultNamespace

CwmNamespace getDefaultNamespace(FemUser namespaceAssignee)
Queries the instance object that is related to a particular instance object by a link in the current associations link set.

Parameters:
namespaceAssignee - Required value of the first association end.
Returns:
Related object or null if none exists.

add

boolean add(FemUser namespaceAssignee,
            CwmNamespace defaultNamespace)
Creates a link between the pair of instance objects in the associations link set.

Parameters:
namespaceAssignee - Value of the first association end.
defaultNamespace - Value of the second association end.

remove

boolean remove(FemUser namespaceAssignee,
               CwmNamespace defaultNamespace)
Removes a link between a pair of instance objects in the current associations link set.

Parameters:
namespaceAssignee - Value of the first association end.
defaultNamespace - Value of the second association end.