Removing inappropriate content
Content management commands are used to update inappropriate information stored in the Profiles database, such as text displayed in the About Me and Background fields of the Profiles user interface. These administrative commands can also be used to delete inappropriate photos from the database. No file checkout or server restart is required when using the commands.
Before you begin
To access configuration files, you must use the wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.
About this task
Procedure
- Start the wsadmin client from the following
directory of the system on which you installed the Deployment Manager:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root\profiles\dm_profile_root\bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client.
- Start the Profiles Jython script interpreter.
- Use the following commands to remove or replace inappropriate
or unwanted content from the Profiles database.
- ProfilesService.updateExperience(String user_email_addr, String new_content_for_experience_field)
-
Replaces the existing experience text that is associated with a user's email address with alternative text enclosed by double quotation marks.
Experience is the information that is contained in the Background area of a user's profile.
For example:ProfilesService.updateExperience("ann_jones@example.com", "Text to display in Background field for Ann")
Note: Rich text cannot be entered with this command. - ProfilesService.updateDescription(String user_email_addr, String new_content_for_description_field)
-
Replaces the existing description text that is associated with a user's email address with an alternate description text enclosed by double quotation marks.
Description text is information that is contained on the About Me tab of a user's profile.
For example:ProfilesService.updateDescription("ann_jones@example.com", "Text to display in About Me tab for Ann")
Note: Rich text cannot be entered with this command. - ProfilesService.deletePhoto(String user_email_addr)
-
Deletes image files that are associated with a user's email address. This command can be used only if the user uploaded a photo to their profile. This command removes the photo.
For example:ProfilesService.deletePhoto("john_doe@example.com")