org.kuali.rice.kim.impl.jaxb
Class PermissionXmlUtil

java.lang.Object
  extended by org.kuali.rice.kim.impl.jaxb.PermissionXmlUtil

public final class PermissionXmlUtil
extends Object

Helper class containing static methods for aiding in parsing parsing XML.

All non-private methods are package-private so that only the KIM-parsing-related code can make use of them. (TODO: Is that necessary?)

TODO: Should this be converted into a service instead?

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
private PermissionXmlUtil()
           
 
Method Summary
(package private) static void validateAndPersistNewPermission(PermissionXmlDTO newPermission)
          Validates a new permission and then saves it.
private static void validatePermission(PermissionXmlDTO newPermission)
          Validates a permission to ensure that the required fields have been filled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionXmlUtil

private PermissionXmlUtil()
Method Detail

validateAndPersistNewPermission

static void validateAndPersistNewPermission(PermissionXmlDTO newPermission)
                                     throws UnmarshalException
Validates a new permission and then saves it.

Parameters:
newPermission -
Throws:
IllegalArgumentException - if newPermission is null.
UnmarshalException - if newPermission contains invalid data.

validatePermission

private static void validatePermission(PermissionXmlDTO newPermission)
                                throws UnmarshalException
Validates a permission to ensure that the required fields have been filled.

Throws:
UnmarshalException - if newPermission contains invalid data.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.