org.opencrx.kernel.backend
Class SecureObject

java.lang.Object
  extended by org.opencrx.kernel.backend.SecureObject

public class SecureObject
extends Object


Field Summary
static int MODE_LOCAL
           
static int MODE_RECURSIVE
           
 
Constructor Summary
SecureObject(Backend backend, DataproviderObject args)
           
SecureObject(Backend backend, Path paramUserIdentity, List<Path> paramGroupIdentity, Short paramMode, Short paramAccessLevelBrowse, Short paramAccessLevelUpdate, Short paramAccessLevelDelete)
           
 
Method Summary
 void addOwningGroup(Path secureObjectIdentity, List<String> report)
           
 void addOwningGroups(DataproviderObject_1_0 obj, List<String> report)
           
 void applyAcls(DataproviderObject_1_0 obj, Marshaller marshaller, Short mode, String reportText, List<String> report)
           
static org.openmdx.security.realm1.jmi1.Principal findPrincipal(String name, org.openmdx.security.realm1.jmi1.Realm realm, javax.jdo.PersistenceManager pm)
           
static org.openmdx.security.realm1.jmi1.Realm getRealm(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
           
 DataproviderObject_1_0 getUser(String principalName)
           
static PrincipalGroup initPrincipalGroup(String groupName, javax.jdo.PersistenceManager pm, String providerName, String segmentName)
           
 void removeAllOwningGroup(DataproviderObject_1_0 obj, List<String> report)
           
 void removeAllOwningGroup(Path secureObjectIdentity, List<String> report)
           
 void removeOwningGroup(DataproviderObject_1_0 obj, List<String> report)
           
 void removeOwningGroup(Path secureObjectIdentity, List<String> report)
           
 void replaceOwningGroups(DataproviderObject_1_0 obj, List<String> report)
           
 void replaceOwningGroups(Path secureObjectIdentity, List<String> report)
           
 void setAccessLevel(DataproviderObject_1_0 obj, List<String> report)
           
 void setAccessLevel(Path secureObjectIdentity, List<String> report)
           
 void setOwningUser(DataproviderObject_1_0 obj, List<String> report)
           
 void setOwningUser(Path secureObjectIdentity, List<String> report)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_LOCAL

public static final int MODE_LOCAL
See Also:
Constant Field Values

MODE_RECURSIVE

public static final int MODE_RECURSIVE
See Also:
Constant Field Values
Constructor Detail

SecureObject

public SecureObject(Backend backend,
                    DataproviderObject args)

SecureObject

public SecureObject(Backend backend,
                    Path paramUserIdentity,
                    List<Path> paramGroupIdentity,
                    Short paramMode,
                    Short paramAccessLevelBrowse,
                    Short paramAccessLevelUpdate,
                    Short paramAccessLevelDelete)
Method Detail

findPrincipal

public static org.openmdx.security.realm1.jmi1.Principal findPrincipal(String name,
                                                                       org.openmdx.security.realm1.jmi1.Realm realm,
                                                                       javax.jdo.PersistenceManager pm)

getRealm

public static org.openmdx.security.realm1.jmi1.Realm getRealm(javax.jdo.PersistenceManager pm,
                                                              String providerName,
                                                              String segmentName)

initPrincipalGroup

public static PrincipalGroup initPrincipalGroup(String groupName,
                                                javax.jdo.PersistenceManager pm,
                                                String providerName,
                                                String segmentName)

getUser

public DataproviderObject_1_0 getUser(String principalName)
                               throws ServiceException
Throws:
ServiceException

applyAcls

public void applyAcls(DataproviderObject_1_0 obj,
                      Marshaller marshaller,
                      Short mode,
                      String reportText,
                      List<String> report)

setOwningUser

public void setOwningUser(Path secureObjectIdentity,
                          List<String> report)
                   throws ServiceException
Throws:
ServiceException

setOwningUser

public void setOwningUser(DataproviderObject_1_0 obj,
                          List<String> report)
                   throws ServiceException
Throws:
ServiceException

addOwningGroup

public void addOwningGroup(Path secureObjectIdentity,
                           List<String> report)
                    throws ServiceException
Throws:
ServiceException

addOwningGroups

public void addOwningGroups(DataproviderObject_1_0 obj,
                            List<String> report)
                     throws ServiceException
Throws:
ServiceException

replaceOwningGroups

public void replaceOwningGroups(Path secureObjectIdentity,
                                List<String> report)
                         throws ServiceException
Throws:
ServiceException

replaceOwningGroups

public void replaceOwningGroups(DataproviderObject_1_0 obj,
                                List<String> report)
                         throws ServiceException
Throws:
ServiceException

removeOwningGroup

public void removeOwningGroup(Path secureObjectIdentity,
                              List<String> report)
                       throws ServiceException
Throws:
ServiceException

removeOwningGroup

public void removeOwningGroup(DataproviderObject_1_0 obj,
                              List<String> report)
                       throws ServiceException
Throws:
ServiceException

removeAllOwningGroup

public void removeAllOwningGroup(Path secureObjectIdentity,
                                 List<String> report)
                          throws ServiceException
Throws:
ServiceException

removeAllOwningGroup

public void removeAllOwningGroup(DataproviderObject_1_0 obj,
                                 List<String> report)
                          throws ServiceException
Throws:
ServiceException

setAccessLevel

public void setAccessLevel(Path secureObjectIdentity,
                           List<String> report)
                    throws ServiceException
Throws:
ServiceException

setAccessLevel

public void setAccessLevel(DataproviderObject_1_0 obj,
                           List<String> report)
                    throws ServiceException
Throws:
ServiceException


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