Пример #1
0
 /**
  * Removes the given Group from this ContentModelGroup.
  *
  * @param group the Group to remove.
  * @return true if the group has been successfully removed, false otherwise.
  */
 public boolean removeGroup(Group group) {
   boolean result = _contentModel.removeGroup(group);
   group.setParent(null);
   return result;
 }
Пример #2
0
  /**
   * Adds the given Group to this ContentModelGroup
   *
   * @param group the Group to add
   * @exception SchemaException when a group with the same name as the specified group already
   *     exists in the current scope
   */
  public void addGroup(Group group) throws SchemaException {
    _contentModel.addGroup(group);

    // -- set reference to parent
    group.setParent(this);
  } // -- addGroup