CN109375960B - Copyright information loading method and device - Google Patents

Copyright information loading method and device Download PDF

Info

Publication number
CN109375960B
CN109375960B CN201811146026.1A CN201811146026A CN109375960B CN 109375960 B CN109375960 B CN 109375960B CN 201811146026 A CN201811146026 A CN 201811146026A CN 109375960 B CN109375960 B CN 109375960B
Authority
CN
China
Prior art keywords
configuration file
copyright information
user
selecting
login state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811146026.1A
Other languages
Chinese (zh)
Other versions
CN109375960A (en
Inventor
王传芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811146026.1A priority Critical patent/CN109375960B/en
Publication of CN109375960A publication Critical patent/CN109375960A/en
Application granted granted Critical
Publication of CN109375960B publication Critical patent/CN109375960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a copyright information loading method and device. The method and the device relate to the cloud computing technology, and solve the problems that the copyright information cannot be loaded and the copyright information cannot be reconfigured due to the influence of the login state. The method comprises the following steps: detecting a user login state when a web page is opened; selecting a configuration file from at least one preset configuration file according to the login state of the user; and reading and displaying the copyright information in the selected configuration file. The technical scheme provided by the invention is suitable for the server virtualization platform, and realizes a stable and friendly web environment.

Description

Copyright information loading method and device
Technical Field
The invention relates to a cloud computing technology, in particular to a copyright information loading method and device.
Background
In the cloud computing era, virtualization is particularly important as a cornerstone of cloud computing. The virtualization management system needs to perform custom configuration on copyright information of the Web page, so as to further perfect the customization function of the system.
Generally, a web system page performs data interaction with the background through restApi. However, when the user does not log in the system, the RestApi request is discarded according to the system management policy, so that the copyright information of the login page cannot be loaded. In addition, when the configuration file is covered due to system upgrade and the like, the user-defined configuration file is lost, reconfiguration is required, and the operation is complicated.
Disclosure of Invention
In order to solve the technical problem, the invention provides a copyright information loading method and a copyright information loading device.
In order to achieve the purpose of the invention, the invention provides a copyright information loading method, which comprises the following steps:
detecting a user login state when a web page is opened;
selecting a configuration file from at least one preset configuration file according to the login state of the user;
and reading and displaying the copyright information in the selected configuration file.
Preferably, before the step of detecting the login status of the user when the web page is opened, the method further comprises:
configuring at least one configuration file, wherein the at least one configuration file comprises a default configuration file.
Preferably, the at least one configuration file further includes at least one custom configuration file.
Preferably, the configuration file is an extensible markup language xml file.
Preferably, the step of selecting one profile from at least one preset profile according to the login status of the user includes:
when the user login state is not login, selecting a user-defined configuration file from the at least one configuration file;
and when the user login state is logged in, selecting the default configuration file.
Preferably, the step of selecting one configuration file from at least one preset configuration file according to the login status of the user further comprises:
and when the user login state is not login and the preset configuration file only comprises a default configuration file, selecting the default configuration file.
Preferably, after the step of reading and displaying the copyright information in the selected configuration file, the method further includes:
and receiving a restoring instruction, and deleting part or all of the custom configuration files according to the restoring instruction.
The invention also provides a copyright information loading device, comprising:
the state detection module is used for detecting the login state of the user when the web page is opened;
the configuration selection module is used for selecting one configuration file from at least one preset configuration file according to the login state of the user;
and the information loading module is used for reading and displaying the copyright information in the selected configuration file.
Preferably, the at least one configuration file includes a default configuration file, or the at least one configuration file includes a default configuration file and at least one custom configuration file, and the configuration selection module includes:
the first selection unit is used for selecting a user-defined configuration file from the at least one configuration file when the user login state is not login;
the second selection unit is used for selecting the default configuration file when the user login state is logged in;
and the third selection unit is used for selecting the default configuration file when the user login state is unregistered and the preset configuration file only comprises the default configuration file.
Preferably, the apparatus further comprises:
and the configuration file management module is used for receiving the restoration instruction and deleting part or all of the custom configuration files according to the restoration instruction.
The invention provides a copyright information loading method and a copyright information loading device. The problem that the copyright information cannot be loaded and the copyright information cannot be reconfigured under the influence of the login state is solved, and a stable and friendly web environment is realized.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flowchart of a copyright information loading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a copyright information loading apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of the configuration selection module 202 in fig. 2.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Generally, a web system page performs data interaction with the background through restApi. However, when the user does not log in the system, the RestApi request is discarded according to the system management policy, so that the copyright information of the login page cannot be loaded. In addition, when the configuration file is covered due to system upgrade and the like, the user-defined configuration file is lost, reconfiguration is required, and the operation is complicated.
In order to solve the above problem, embodiments of the present invention provide a method and an apparatus for loading copyright information. The user can configure the copyright information of the web page, and when the user does not configure the copyright information, the page displays the copyright information in the default configuration file; after the user performs the user-defined configuration, displaying the copyright information configured by the user by reading the user-defined configuration file; copyright information can also be restored. The invention provides a method and a device for configuring web page copyright information of a virtualization management system.
The invention provides a copyright information loading method, which is applied to a virtualization management system of a B/S framework, copyright information displayed on a Web page can be configured, default copyright information is stored in an xml file, a user logs in a Web management end and carries out user-defined operation on the copyright information by adopting restApi, and a background stores the user-defined copyright information in a new xml configuration file. When a user does not log in the system, the Web end cannot acquire background data through RestApi, and copyright information to be displayed on a login page can be acquired through the method. Meanwhile, the user-defined configuration and the default configuration exist independently, the user-defined configuration file cannot cover the default configuration file, the restoration operation can be carried out, and after the system is upgraded, the configured copyright information cannot be covered, and the reconfiguration is not needed. A method for configuring copyright information of a web page of a virtualization management system realizes the self-definition of the copyright information and correctly loads the copyright information when a login page user does not log in a system state.
The specific process is shown in fig. 1, and comprises the following steps:
step 101, configuring at least one configuration file.
The at least one configuration file comprises a default configuration file. Furthermore, the at least one configuration file also comprises at least one self-defined configuration file, and the self-defined configuration file comprises user-defined copyright information content which can be used for displaying in a non-login state.
The configuration file is an extensible markup language xml file.
Step 102, detecting a user login state when a web page is opened.
And 103, selecting a configuration file from at least one preset configuration file according to the login state of the user.
The method mainly comprises three conditions:
1. when the user login state is not login, selecting a user-defined configuration file from the at least one configuration file;
2. and when the user login state is logged in, selecting the default configuration file.
3. And when the user login state is not login and the preset configuration file only comprises a default configuration file, selecting the default configuration file.
And step 104, reading and displaying the copyright information in the selected configuration file.
And 105, receiving a restoring instruction, and deleting part or all of the custom configuration files according to the restoring instruction.
Optionally, a restore instruction may be further defined, where the restore instruction indicates to delete part or all of the custom configuration files, restore the configuration files, and reserve the default configuration files.
An embodiment of the present invention further provides a copyright information loading method, which includes the following specific implementation processes:
1) the copyright information is configured through a virtualization management system, the configuration information is transmitted to a background through a RestApi mode on a web page, and a configuration device stores the configured copyright information into a user-defined configuration file, wherein the user-defined configuration file is specifically an xml file.
2) When a web end login page is opened, the copyright information reading device cannot acquire data in a RestApi mode because of identity authentication, and the web reads and analyzes a custom configuration file. And if the user-defined configuration file does not exist or the user-defined configuration copyright information does not exist, reading the copyright information in the default configuration file.
3) And the restoring device can perform copyright information restoring operation after a user logs in the system, transmits a command to the background in a RestApi mode, and deletes the user-defined copyright information through the restoring device in the background.
4) And the display device is used for displaying the copyright information acquired by the reading device.
An embodiment of the present invention further provides a copyright information loading apparatus, which has a structure shown in fig. 2 and includes:
a state detection module 201, configured to detect a user login state when a web page is opened;
a configuration selection module 202, configured to select a configuration file from at least one preset configuration file according to the user login state;
and the information loading module 203 is configured to read and display the copyright information in the selected configuration file.
Preferably, the at least one configuration file includes a default configuration file, or the at least one configuration file includes a default configuration file and at least one custom configuration file, and the configuration selection module 202 is configured as shown in fig. 3, and includes:
the first selecting unit 2021 is configured to select a custom configuration file from the at least one configuration file when the user login status is unregistered;
a second selecting unit 2022, configured to select the default configuration file when the user login status is logged in;
the third selecting unit 2023 is configured to select the default configuration file when the user login status is unregistered and the preset configuration file only includes the default configuration file.
Preferably, the apparatus further comprises:
and the configuration file management module 204 is configured to receive a restore instruction, and delete part or all of the custom configuration files according to the restore instruction.
The embodiment of the invention provides a copyright information loading method and a copyright information loading device. The problem that the copyright information cannot be loaded and the copyright information cannot be reconfigured under the influence of the login state is solved, and a stable and friendly web environment is realized.
According to the technical scheme provided by the embodiment of the invention, when the login page is loaded, the web end can directly read and analyze the configuration file to display the copyright information, so that the problem that the copyright information of the login page cannot be loaded because the configured copyright information cannot be acquired by using a RestApi method for identity verification of a system which is not logged in is solved. Meanwhile, the problem that the user-defined configuration file is lost due to the fact that the configuration file is covered due to system upgrading can be avoided. The usability of the web end is enhanced, so that the user experience of the management end of the virtualization management system is more friendly, meanwhile, the configuration method is suitable for various scenes, the reconfiguration is not needed after the system is upgraded every time, and the maintenance cost is reduced.
The copyright information configuration device, the copyright information reading device, the reduction device and the information display device are reasonably designed, a user can customize copyright information, the copyright information can be correctly displayed under the condition that the user does not log in the log-in page, the copyright information can be reduced, the user-defined configuration is always effective when the system is upgraded, the customizable function and the usability of the system are increased, and the system is suitable for more application scenes.
In the embodiment of the invention, the default configuration file and the user-defined configuration file are stored in an xml configuration file mode, and the user-defined configuration file and the default configuration file are independent and cannot be modified and covered. By adopting the method, when the login page is loaded, the web end can directly read and analyze the configuration file to display the copyright information, so that the problem that the copyright information of the login page cannot be loaded because the system is not logged in for identity verification and the RestApi method cannot be used for obtaining the configured copyright information is solved. Meanwhile, the problem that the user-defined configuration file is lost due to the fact that the configuration file is covered due to system upgrading can be avoided, user experience of a management end of the virtualization management system is more friendly and easy once and for all, and reconfiguration is not needed after each system upgrading.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (9)

1. A copyright information loading method is characterized by comprising the following steps:
detecting a user login state when a web page is opened;
selecting a configuration file from at least one preset configuration file according to the login state of the user;
reading and displaying the copyright information in the selected configuration file;
selecting one configuration file from at least one preset configuration file according to the user login state comprises the following steps:
when the user login state is not login, selecting a user-defined configuration file from the at least one configuration file;
and when the user login state is logged in, selecting a default configuration file.
2. A copyright information loading method according to claim 1, characterized in that before the step of detecting the login status of the user when the web page is opened, it further comprises:
configuring at least one configuration file, wherein the at least one configuration file comprises a default configuration file.
3. A copyright information loading method according to claim 2, characterized in that said at least one configuration file further comprises at least one custom configuration file.
4. A copyright information loading method according to claim 2 or 3, characterized in that the configuration file is an extensible markup language xml file.
5. A copyright information loading method according to claim 1, wherein the step of selecting one configuration file from at least one preset configuration file according to the user login status further comprises:
and when the user login state is not login and the preset configuration file only comprises a default configuration file, selecting the default configuration file.
6. The copyright information loading method according to claim 3, wherein after the step of reading and presenting the copyright information in the selected configuration file, the method further comprises:
and receiving a restoring instruction, and deleting part or all of the custom configuration files according to the restoring instruction.
7. A copyright information loading apparatus, comprising:
the state detection module is used for detecting the login state of the user when the web page is opened;
the configuration selection module is used for selecting one configuration file from at least one preset configuration file according to the login state of the user;
the information loading module is used for reading and displaying the copyright information in the selected configuration file;
the at least one configuration file comprises a default configuration file, or the at least one configuration file comprises a default configuration file and at least one custom configuration file, and the configuration selection module comprises:
the first selection unit is used for selecting a user-defined configuration file from the at least one configuration file when the user login state is not login;
and the second selection unit is used for selecting the default configuration file when the user login state is logged in.
8. The copyright information loading apparatus according to claim 7, wherein the configuration selection module further comprises:
and the third selection unit is used for selecting the default configuration file when the user login state is unregistered and the preset configuration file only comprises the default configuration file.
9. A copyright information loading apparatus according to claim 8, characterized in that the apparatus further comprises:
and the configuration file management module is used for receiving the restoration instruction and deleting part or all of the custom configuration files according to the restoration instruction.
CN201811146026.1A 2018-09-29 2018-09-29 Copyright information loading method and device Active CN109375960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811146026.1A CN109375960B (en) 2018-09-29 2018-09-29 Copyright information loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811146026.1A CN109375960B (en) 2018-09-29 2018-09-29 Copyright information loading method and device

Publications (2)

Publication Number Publication Date
CN109375960A CN109375960A (en) 2019-02-22
CN109375960B true CN109375960B (en) 2021-10-01

Family

ID=65403213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811146026.1A Active CN109375960B (en) 2018-09-29 2018-09-29 Copyright information loading method and device

Country Status (1)

Country Link
CN (1) CN109375960B (en)

Family Cites Families (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE394748T1 (en) * 2003-06-18 2008-05-15 Ericsson Telefon Ab L M ARRANGEMENT AND METHOD RELATING TO IP NETWORK ACCESS
US20090007243A1 (en) * 2007-06-27 2009-01-01 Trusteer Ltd. Method for rendering password theft ineffective
US8881003B1 (en) * 2007-12-13 2014-11-04 Symantec Corporation Online storage aggregation and publishing
CN102065106B (en) * 2009-11-16 2014-05-28 中国电信股份有限公司 Web flow collator, and method and system for accessing Web page by using terminal
CN101763430A (en) * 2010-01-06 2010-06-30 成都娱音科技股份有限公司 Copyright calibration method based on universal search engine
CN102135872B (en) * 2010-01-22 2016-06-15 腾讯科技(深圳)有限公司 A kind of method and device configuring image at logging zone
CN101819445B (en) * 2010-02-05 2012-05-16 北京航空航天大学 Embedded satellite-borne fault-tolerant temperature control system and verification method thereof
CN101872399B (en) * 2010-07-01 2012-08-22 武汉理工大学 Dynamic digital copyright protection method based on dual identity authentication
CN102413154B (en) * 2010-09-21 2014-04-09 北大方正集团有限公司 Method of data information synchronization between systems and apparatus thereof
CN102629307B (en) * 2012-03-02 2016-04-13 北京绿色森林信息技术有限公司 A kind of internet reflects online and reads the antitheft loading system of document and method thereof
CN103634271B (en) * 2012-08-21 2018-07-06 腾讯科技(深圳)有限公司 A kind of authority control method of authority control system, device and network request
CN102968510B (en) * 2012-12-21 2016-05-11 厦门市美亚柏科信息股份有限公司 The searching method of internet personage information and system
CN103559050A (en) * 2013-10-23 2014-02-05 天脉聚源(北京)传媒科技有限公司 Customization method for computer starting process and computer
CN103731428B (en) * 2014-01-02 2015-11-11 合一网络技术(北京)有限公司 Copyright user is carried out to the method and system of rights management
US9449187B2 (en) * 2014-08-11 2016-09-20 Document Dynamics, Llc Environment-aware security tokens
JP6067648B2 (en) * 2014-11-08 2017-01-25 京セラドキュメントソリューションズ株式会社 Pull print system
CN104468571A (en) * 2014-12-05 2015-03-25 上海斐讯数据通信技术有限公司 Configuration file backup and recovery method and system
CN104580406B (en) * 2014-12-23 2019-11-26 北京百度网讯科技有限公司 A kind of method and apparatus of synchronous logging state
CN106294369A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Web data acquisition methods and device
CN106778204B (en) * 2015-11-20 2019-12-03 北京国双科技有限公司 The interconnection method and device of login system
CN105608343A (en) * 2015-12-24 2016-05-25 张梅云 Method for protecting copyright of computer file
CN105677342B (en) * 2016-01-06 2019-02-12 四川中电启明星信息技术有限公司 A kind of combined table top virtual method solving heterogeneous operating system
CN105913348A (en) * 2016-04-12 2016-08-31 北京奇虎科技有限公司 Copyright registering method and copyright registering system
CN108139915B (en) * 2016-04-29 2020-10-16 华为技术有限公司 Operation method of application program group and terminal
CN105872604B (en) * 2016-06-15 2018-09-21 武汉斗鱼网络科技有限公司 Live video stream method for pushing and system based on different user state
CN106775950A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of virtual machine remote access method and device
CN108536576B (en) * 2017-03-02 2021-08-27 富士通株式会社 Method and device for optimizing test scripts of application program
CN107818143B (en) * 2017-10-16 2021-12-17 中国银联股份有限公司 Page configuration and generation method and device
CN107679223A (en) * 2017-10-20 2018-02-09 郑州云海信息技术有限公司 A kind of books resource sharing system and method based on cloud computing
CN107908399B (en) * 2017-11-14 2021-03-16 浪潮通用软件有限公司 Page development method and device

Also Published As

Publication number Publication date
CN109375960A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN107038085B (en) Method, device and system for repairing client application
CN105867947B (en) Data processing method and device after preset application program updating
CN107403089B (en) Resource tampering identification method and device based on application program
US20120110308A1 (en) Method for controlling bmc having customized sdr
US10359999B2 (en) Declarative configuration and execution of card content management operations for trusted service manager
US20130311763A1 (en) Customizing operating systems
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN103324507A (en) Method and apparatus for updating terminal preset application program
US20130290405A1 (en) Test system and test method using same for automatically distributing test files
CN104216719A (en) Method and device for updating android system
US8856740B2 (en) Implementing multiple versions of a plug-in concurrently
CN111427596A (en) Software upgrading method and device and terminal equipment
CN108874441B (en) Board card configuration method, device, server and storage medium
CN111158945B (en) Kernel fault processing method, device, network security equipment and readable storage medium
CN110362371B (en) View level control method, device and system, computer equipment and medium
CN111158729A (en) System upgrading method, device, equipment and storage medium
CN105700903A (en) User terminal upgrading method and user terminal
CN104021074A (en) Vulnerability detection method and device for application program of PhoneGap framework
CN109375960B (en) Copyright information loading method and device
CN108920338A (en) A kind of method and terminal indicating file system state
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN110413800B (en) Method and equipment for providing novel information
CN108279937B (en) Parameter calling method and device, storage medium and electronic equipment
CN110554915A (en) Information processing method and device, computer storage medium and terminal
CN111124882B (en) Method and device for realizing application test, computer storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant