Beispiel #1
0
def delete_object(perm_obj):
    """
    This method will remove permission object to perms container in directory. This method will also remove in associated permission objects that are attached to this object.
    
    required parameters:
    perm.obj_name - maps to existing perm object.        
    """
    utils.validate_perm_obj(perm_obj)
    return permdao.delete_obj(perm_obj)
Beispiel #2
0
def find_objects(perm_obj):
    """
    Method returns a list of type PermObj that match the perm object search string. 
    
    required parameters:
    perm.obj_name - maps to existing perm object.  May be partial with wildcard on end - *.        
    """    
    utils.validate_perm_obj(perm_obj)
    return permdao.search_objs(perm_obj)
Beispiel #3
0
def read_object(perm_obj):
    """
    Method reads permission object from perm container in directory. 
    
    required parameters:
    perm.obj_name - maps to existing perm object.        
    """    
    utils.validate_perm_obj(perm_obj)
    return permdao.read_obj(perm_obj)
Beispiel #4
0
def add_object(perm_obj):
    """
    This method will add permission object to perms container in directory. The perm object must not exist before making this call. 
    A PermObj instance exists in a hierarchical, one-many relationship between itself and children as stored in ldap tree: (PermObj*->Permission).
    
    required parameters:
    perm.obj_name - maps to arbitrary name of system resource.
            
    optional parameters
    perm_obj.description - any safe text
    perm_obj.type - contains any safe text
    perm_obj.props * - multi-occurring property key and values are separated with a ':'. e.g. mykey1:myvalue1
    """
    utils.validate_perm_obj(perm_obj)
    return permdao.create_obj(perm_obj)