Package org.jasig.portal.security

Examples of org.jasig.portal.security.RuntimeAuthorizationException


   * @param user performing the delete operation
   */
  public void deleteGroup(String key, IPerson deleter) {

        if (!canDeleteGroup(deleter, key)) {
            throw new RuntimeAuthorizationException(deleter, DELETE_PERMISSION, key);
        }
   
    log.info("Deleting group with key " + key);

    // find the current version of this group entity
View Full Code Here


   * @param updater Updating user
   */
  public void updateGroupDetails(GroupForm groupForm, IPerson updater) {

        if (!canEditGroup(updater, groupForm.getKey())) {
      throw new RuntimeAuthorizationException(updater, EDIT_PERMISSION, groupForm.getKey());
        }

    if (log.isDebugEnabled()) {
      log.debug("Updating group for group form [" + groupForm.toString() + "]");
    }
View Full Code Here

   * @param updater   Updating user
   */
  public void updateGroupMembers(GroupForm groupForm, IPerson updater) {

        if (!canEditGroup(updater, groupForm.getKey())) {
            throw new RuntimeAuthorizationException(updater, EDIT_PERMISSION, groupForm.getKey());
        }

    if (log.isDebugEnabled()) {
      log.debug("Updating group members for group form [" + groupForm.toString() + "]");
    }
View Full Code Here

   * @param creator    the uPortal user creating the new group
   */
  public void createGroup(GroupForm groupForm, JsonEntityBean parent, IPerson creator) {
   
        if (!canCreateMemberGroup(creator, parent.getId())) {
            throw new RuntimeAuthorizationException(creator, CREATE_PERMISSION, groupForm.getKey());
        }

    if (log.isDebugEnabled()) {
      log.debug("Creating new group for group form ["
          + groupForm.toString() + "] and parent ["
View Full Code Here

TOP

Related Classes of org.jasig.portal.security.RuntimeAuthorizationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.