+++ /dev/null
-/*******************************************************************************\r
- * ============LICENSE_START====================================================\r
- * * org.onap.aaf\r
- * * ===========================================================================\r
- * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * * ===========================================================================\r
- * * Licensed under the Apache License, Version 2.0 (the "License");\r
- * * you may not use this file except in compliance with the License.\r
- * * You may obtain a copy of the License at\r
- * * \r
- * * http://www.apache.org/licenses/LICENSE-2.0\r
- * * \r
- * * Unless required by applicable law or agreed to in writing, software\r
- * * distributed under the License is distributed on an "AS IS" BASIS,\r
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * * See the License for the specific language governing permissions and\r
- * * limitations under the License.\r
- * * ============LICENSE_END====================================================\r
- * *\r
- * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
- * *\r
- ******************************************************************************/\r
-package com.att.cmd.ns;\r
-\r
-import javax.xml.datatype.XMLGregorianCalendar;\r
-\r
-import com.att.cmd.BaseCmd;\r
-\r
-import aaf.v2_0.Users.User;\r
-\r
-public class ListUsers extends BaseCmd<List> {\r
- \r
- public ListUsers(List parent) {\r
- super(parent,"user");\r
- cmds.add(new ListUsersWithPerm(this));\r
- cmds.add(new ListUsersInRole(this));\r
- }\r
-\r
- public void report(String header, String ns) {\r
- ((List)parent).report(null, header,ns);\r
- }\r
-\r
- public void report(String subHead) {\r
- pw().println(subHead);\r
- }\r
-\r
- private static final String uformat = "%s%-50s expires:%02d/%02d/%04d\n";\r
- public void report(String prefix, User u) {\r
- XMLGregorianCalendar xgc = u.getExpires();\r
- pw().format(uformat,prefix,u.getId(),xgc.getMonth()+1,xgc.getDay(),xgc.getYear());\r
- }\r
-\r
-}\r