All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindoo.domino.jna.html.CommandId Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
package com.mindoo.domino.jna.html;

import java.util.HashMap;
import java.util.Map;

import com.mindoo.domino.jna.internal.NotesConstants;

/**
 * This enumerates the commands supported in Domino urls
 * 
 * @author Karsten Lehmann
 */
public enum CommandId {
	UNKNOWN(NotesConstants.kUnknownCmdId),
	OPENSERVER(NotesConstants.kOpenServerCmdId),
	OPENDATABASE(NotesConstants.kOpenDatabaseCmdId),
	OPENVIEW(NotesConstants.kOpenViewCmdId),
	OPENDOCUMENT(NotesConstants.kOpenDocumentCmdId),
	OPENELEMENT(NotesConstants.kOpenElementCmdId),
	OPENFORM(NotesConstants.kOpenFormCmdId),
	OPENAGENT(NotesConstants.kOpenAgentCmdId),
	OPENNAVIGATOR(NotesConstants.kOpenNavigatorCmdId),
	OPENICON(NotesConstants.kOpenIconCmdId),
	OPENABOUT(NotesConstants.kOpenAboutCmdId),
	OPENHELP(NotesConstants.kOpenHelpCmdId),
	CREATEDOCUMENT(NotesConstants.kCreateDocumentCmdId),
	SAVEDOCUMENT(NotesConstants.kSaveDocumentCmdId),
	EDITDOCUMENT(NotesConstants.kEditDocumentCmdId),
	DELETEDOCUMENT(NotesConstants.kDeleteDocumentCmdId),
	SEARCHVIEW(NotesConstants.kSearchViewCmdId),
	SEARCHSITE(NotesConstants.kSearchSiteCmdId),
	NAVIGATE(NotesConstants.kNavigateCmdId),
	READFORM(NotesConstants.kReadFormCmdId),
	REQUESTCERT(NotesConstants.kRequestCertCmdId),
	READDESIGN(NotesConstants.kReadDesignCmdId),
	READVIEWENTRIES(NotesConstants.kReadViewEntriesCmdId),
	READENTRIES(NotesConstants.kReadEntriesCmdId),
	OPENPAGE(NotesConstants.kOpenPageCmdId),
	OPENFRAMESET(NotesConstants.kOpenFrameSetCmdId),
	/** OpenField command for Java applet(s) and HAPI */
	OPENFIELD(NotesConstants.kOpenFieldCmdId),
	SEARCHDOMAIN(NotesConstants.kSearchDomainCmdId),
	DELETEDOCUMENTS(NotesConstants.kDeleteDocumentsCmdId),
	LOGINUSER(NotesConstants.kLoginUserCmdId),
	LOGOUTUSER(NotesConstants.kLogoutUserCmdId),
	OPENIMAGERESOURCE(NotesConstants.kOpenImageResourceCmdId),
	OPENIMAGE(NotesConstants.kOpenImageCmdId),
	COPYTOFOLDER(NotesConstants.kCopyToFolderCmdId),
	MOVETOFOLDER(NotesConstants.kMoveToFolderCmdId),
	REMOVEFROMFOLDER(NotesConstants.kRemoveFromFolderCmdId),
	UNDELETEDOCUMENTS(NotesConstants.kUndeleteDocumentsCmdId),
	REDIRECT(NotesConstants.kRedirectCmdId),
	GETORBCOOKIE(NotesConstants.kGetOrbCookieCmdId),
	OPENCSSRESOURCE(NotesConstants.kOpenCssResourceCmdId),
	OPENFILERESOURCE(NotesConstants.kOpenFileResourceCmdId),
	OPENJAVASCRIPTLIB(NotesConstants.kOpenJavascriptLibCmdId),
	UNIMPLEMENTED(NotesConstants.kUnImplemented_01),
	CHANGEPASSWORD(NotesConstants.kChangePasswordCmdId),
	OPENPREFERENCES(NotesConstants.kOpenPreferencesCmdId),
	OPENWEBSERVICE(NotesConstants.kOpenWebServiceCmdId),
	WSDL(NotesConstants.kWsdlCmdId),
	GETIMAGE(NotesConstants.kGetImageCmdId);

	int m_val;

	private static Map idsByIntValue = new HashMap();

	static {
		for (CommandId currId : CommandId.values()) {
			idsByIntValue.put(currId.m_val, currId);
		}
	}

	CommandId(int type) {
		m_val = type;
	}

	public int getValue() {
		return m_val;
	}

	public static CommandId getCommandId(int intVal) {
		CommandId type = idsByIntValue.get(intVal);
		if (type==null)
			throw new IllegalArgumentException("Unknown int value: "+intVal);
		return type;
	}
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy