org.openmdx.security.realm1.jmi1
Interface Principal

All Superinterfaces:
org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, Principal, RefBaseObject, RefFeatured, RefObject, org.openmdx.compatibility.view1.cci2.ViewCapable
All Known Subinterfaces:
Group

public interface Principal
extends Principal, org.openmdx.base.jmi1.BasicObject

Class Principal


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.security.realm1.cci2.Principal
Principal.Identity
 
Method Summary
 void addAuthCredential(Credential newValue)
          
 void addAuthCredential(int index, Credential newValue)
          
 void addIsMemberOf(Group newValue)
          
 void addIsMemberOf(int index, Group newValue)
          
 Credential getCredential()
          Retrieves the value for the reference credential.
 Realm getRealm()
          Retrieves the value for the reference realm.
 Subject getSubject()
          Retrieves the value for the reference subject.
<T extends org.openmdx.compatibility.view1.cci2.View>
List<T>
getView(org.openmdx.compatibility.view1.cci2.ViewQuery query)
          Retrieves the value for the reference view for the specified query.
 void removeAuthCredential(int index)
          
 void removeCredential()
          Removes the value for the optional reference credential.
 void removeIsMemberOf(int index)
          
 void setCredential(Credential credential)
          Sets a new value for the reference credential.
 void setRealm(Realm realm)
          Sets a new value for the reference realm.
 void setRealm(Realm realm, boolean idIsPersistent, String id)
          Set the object's composite association org:openmdx:security:realm1:RealmContainsPrincipal.
 void setSubject(Subject subject)
          Sets a new value for the reference subject.
 
Methods inherited from interface org.openmdx.security.realm1.cci2.Principal
getAuthCredential, getDescription, getIsMemberOf, getName, isDisabled, setDescription, setDisabled
 
Methods inherited from interface org.openmdx.base.jmi1.BasicObject
getCreatedBy, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getModifiedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getView

<T extends org.openmdx.compatibility.view1.cci2.View> List<T> getView(org.openmdx.compatibility.view1.cci2.ViewQuery query)
Retrieves the value for the reference view for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

addAuthCredential

void addAuthCredential(int index,
                       Credential newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addAuthCredential

void addAuthCredential(Credential newValue)

Parameters:
newValue - The element to be appended.

removeAuthCredential

void removeAuthCredential(int index)


getCredential

Credential getCredential()
Retrieves the value for the reference credential.

Specified by:
getCredential in interface Principal
Returns:
The – possibly null – value for this reference.

setCredential

void setCredential(Credential credential)
Sets a new value for the reference credential.

Specified by:
setCredential in interface Principal
Parameters:
credential - The non-null new value for this reference.

removeCredential

void removeCredential()
Removes the value for the optional reference credential.


addIsMemberOf

void addIsMemberOf(int index,
                   Group newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addIsMemberOf

void addIsMemberOf(Group newValue)

Parameters:
newValue - The element to be appended.

removeIsMemberOf

void removeIsMemberOf(int index)


getRealm

Realm getRealm()
Retrieves the value for the reference realm.

Specified by:
getRealm in interface Principal
Returns:
The non-null value for this reference.

getSubject

Subject getSubject()
Retrieves the value for the reference subject.

Specified by:
getSubject in interface Principal
Returns:
The non-null value for this reference.

setSubject

void setSubject(Subject subject)
Sets a new value for the reference subject.

Specified by:
setSubject in interface Principal
Parameters:
subject - The non-null new value for this reference.

setRealm

void setRealm(Realm realm)
Sets a new value for the reference realm.

Specified by:
setRealm in interface Principal
Parameters:
realm - The non-null new value for this reference.

setRealm

void setRealm(Realm realm,
              boolean idIsPersistent,
              String id)
Set the object's composite association org:openmdx:security:realm1:RealmContainsPrincipal.

Specified by:
setRealm in interface Principal
Parameters:
realm - The non-null new value for this object's composite owner.
idIsPersistent - Defines whether the id is persistent.
id - The non-null new value for this object's qualifier.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.