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

net.anotheria.anosite.photoserver.presentation.actions.AlbumAction Maven / Gradle / Ivy

The newest version!
package net.anotheria.anosite.photoserver.presentation.actions;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Actions on album's.
 *
 * @author Alexandr Bolbat
 * @version $Id: $Id
 */
public enum AlbumAction {

	/**
	 * Update album.
	 */
	UPDATE,

	/**
	 * Set photos order.
	 */
	SETORDER,

	/**
	 * Blur album.
	 */
	BLUR,

	/**
	 * Unblur album.
	 */
	UNBLUR,

	/**
	 * Remove album.
	 */
	REMOVE,

	/**
	 * List album information.
	 */
	LIST,

	/**
	 * List all albums information.
	 */
	LISTALL;

	/**
	 * Logger.
	 */
	private static final Logger LOG = LoggerFactory.getLogger(AlbumAction.class);

	/**
	 * Default action.
	 */
	public static final AlbumAction DEFAULT = LIST;

	/**
	 * 

getAction.

* * @param name a {@link java.lang.String} object. * @return a {@link net.anotheria.anosite.photoserver.presentation.actions.AlbumAction} object. */ public static AlbumAction getAction(String name) { for (AlbumAction action : AlbumAction.values()) if (action.name().equalsIgnoreCase(name)) return action; LOG.warn("getAction(" + name + ") Wrong AlbumAction name. Returning default AlbumAction[" + DEFAULT + "]."); return DEFAULT; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy