org.opencrx.kernel.backend
Class Admin

java.lang.Object
  extended by org.opencrx.kernel.backend.AbstractImpl
      extended by org.opencrx.kernel.backend.Admin

public class Admin
extends AbstractImpl


Nested Class Summary
static class Admin.PrincipalType
           
 
Constructor Summary
protected Admin()
           
 
Method Summary
 void createAdministrator(Segment adminSegment, String segmentName, String principalName, String initialPassword, String initialPasswordVerification, List<String> errors)
           
 Contact createContact(Segment adminSegment, String segmentName, String principalName, User owningUser, List<PrincipalGroup> owningGroups, List<String> errors)
           
 org.openmdx.security.realm1.jmi1.Principal createPrincipal(String principalName, String principalDescription, org.openmdx.security.realm1.jmi1.Realm realm, Admin.PrincipalType principalType, List<org.openmdx.security.realm1.jmi1.Group> memberOfGroups, org.openmdx.security.realm1.jmi1.Subject subject)
           
 void createSegment(Provider provider, Segment segment, String segmentName, User owningUser, PrincipalGroup owningGroup, List<String> errors)
           
 Subject createSubject(Segment identitySegment, String subjectName, String subjectDescription, List<String> errors)
           
static Admin getInstance()
           
 String importLoginPrincipals(Segment adminSegment, byte[] item)
           
static void register()
           
 
Methods inherited from class org.opencrx.kernel.backend.AbstractImpl
getInstance, getUidAsString, registerImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Admin

protected Admin()
Method Detail

register

public static void register()

getInstance

public static Admin getInstance()
                         throws ServiceException
Throws:
ServiceException

createSegment

public void createSegment(Provider provider,
                          Segment segment,
                          String segmentName,
                          User owningUser,
                          PrincipalGroup owningGroup,
                          List<String> errors)

createContact

public Contact createContact(Segment adminSegment,
                             String segmentName,
                             String principalName,
                             User owningUser,
                             List<PrincipalGroup> owningGroups,
                             List<String> errors)

createSubject

public Subject createSubject(Segment identitySegment,
                             String subjectName,
                             String subjectDescription,
                             List<String> errors)

createPrincipal

public org.openmdx.security.realm1.jmi1.Principal createPrincipal(String principalName,
                                                                  String principalDescription,
                                                                  org.openmdx.security.realm1.jmi1.Realm realm,
                                                                  Admin.PrincipalType principalType,
                                                                  List<org.openmdx.security.realm1.jmi1.Group> memberOfGroups,
                                                                  org.openmdx.security.realm1.jmi1.Subject subject)

createAdministrator

public void createAdministrator(Segment adminSegment,
                                String segmentName,
                                String principalName,
                                String initialPassword,
                                String initialPasswordVerification,
                                List<String> errors)
                         throws ServiceException
Throws:
ServiceException

importLoginPrincipals

public String importLoginPrincipals(Segment adminSegment,
                                    byte[] item)
                             throws ServiceException
Throws:
ServiceException


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