/** @see com.pureinfo.ark.interaction.ActionBase#executeAction() */
 public ActionForward executeAction() throws PureException {
   int nCollegeId = request.getRequiredInt("college", "ѧԺID");
   IOrganizationMgr mgr = (IOrganizationMgr) ArkContentHelper.getContentMgrOf(Organization.class);
   List listIns = mgr.getChildren(nCollegeId, true);
   Document sInsJson = makeXML(listIns);
   writeResponse(sInsJson);
   return null;
 }
 /**
  * @param org2Names
  * @param org2Ids
  * @throws PureException
  */
 private void setOrg2(List org2Names, List org2Ids) throws PureException {
   IOrganizationMgr mgr = (IOrganizationMgr) ArkContentHelper.getContentMgrOf(Organization.class);
   List objs = mgr.findAllByType(SRMConstants.ORG_TYPE.ACADEMY, true);
   for (Iterator iter = objs.iterator(); iter.hasNext(); ) {
     Organization dept = (Organization) iter.next();
     org2Names.add(dept.getName());
     org2Ids.add(new Integer(dept.getId()));
   }
 }
  /**
   * @see com.pureinfo.dolphin.script.function.handler.IFunctionHandler#perform(java.lang.Object[],
   *     com.pureinfo.dolphin.script.execute.IContext)
   */
  public Object perform(Object[] _args, IContext _context) throws PureException {

    int nId = -1;
    try {
      nId = FunctionHandlerUtil.getIntArg(_args, 0, -1);
    } catch (Exception ex) {
      ex.printStackTrace();
      nId = -1;
    }
    if (nId == -1) return new String[] {""};
    IOrganizationMgr mgr = (IOrganizationMgr) ArkContentHelper.getContentMgrOf(Organization.class);
    Organization org = (Organization) mgr.lookupById(nId);
    if (org == null) return new String[] {""};
    String sPath = org.getPath();
    if (sPath == null || sPath.length() < 2) {
      return new String[0];
    }
    return sPath.substring(1).split("\\.");
  }