2020年12月24日星期四

Intra-mart IAP menu setting

 1.routing setting

  path: %resin_home%\webapps\%project_name%\WEB-INF\conf\routing-jssp-config\project_name.xml
example:

<?xml version="1.0" encoding="UTF-8"?>
<routing-jssp-config
  xmlns="http://www.intra-mart.jp/router/routing-jssp-config"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.intra-mart.jp/router/routing-jssp-config routing-jssp-config.xsd ">

  <!-- <authz-default uri="service://test/manager" action="execute"/> -->
  <!--file exist confirm: WEB-INF/jssp/src/test/common/search.html,search.js -->
  <file-mapping path="/test/common/search" page="/test/common/search">
    <authz uri="service://test/manager" action="execute" />
  </file-mapping>

</routing-jssp-config>

 2.Auth setting

open menu Auth(認可) -> select resource catalog: pages ->  start auth setting -> 
new a resouce named "test Manager"



3.menu item setting

open menu -> new a menu item with url:"test/common/search".
attention: no "/" before "test/", and no "jssp" after search





4.mapping menu item  and resources

make the mapping relationship between the menu item and resource
by click auth-setting in the menu item page, after the URL textbox.



2020年12月14日星期一

Oracle Create User And grant rights

CREATE USER WXG01
IDENTIFIED BY "WXG01"
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp

GRANT DBA TO WXG01
GRANT UNLIMITED TABLESPACE TO WXG01

CREATE TABLE WXG_MESSAGE(
 MSG_CD CHAR(10),
 MSG_MONG VARCHAR2(200)
);

DROP USER username CASCADE;
SELECT 'DROP TABLE "' || TABLE_NAME || '" CASCADE CONSTRAINTS;' 
FROM user_tables;
begin
  for i in (select 'drop table '||table_name||' cascade constraints' tb from user_tables) 
  loop
     execute immediate i.tb;
  end loop;
  commit;
end;
purge RECYCLEBIN;

2020年12月7日星期一

Introduction of git rollback commands.

git status and rollback commands:

1. editing.  a new source file editing, without any git operation.

git checkout -- a.txt   # rollback  a.txt 
git checkout -- .       #  rollback all files.

2. stage.   after git add

git reset HEAD a.txt    # rollback  a.txt 
git reset HEAD .  #  rollback all files.
      

3. committed.   after git commit

git log # get the commit id you want to rollback 
git reset --hard <commit_id_youget_above> 
# or 
git reset --hard HEAD^  # rollback to last commited and added 
git reset --soft HEAD^  # rollback commit only, ignore added
# or 

git reset HEAD^  # rollback to git add .



4. pushed.   after git push

git log # get the commit id you want to rollback 
git reset --hard <commit_id_youget_above> 

# force push for deleting the remote sources after 
commit_id_youget_above
git push origin HEAD --force

5. git branch -D branchname