org.ow2.jonas.versioning
Interface VersioningServiceBase

All Known Subinterfaces:
VersioningService, VersioningServiceImplMBean
All Known Implementing Classes:
VersioningServiceImpl

public interface VersioningServiceBase

Interface for the versioning service, which only contains methods for the versioning service and doesn't inherit from any other interface. This interface will be exposed via JMX.

Author:
Frederic Germaneau, S. Ali Tokmen

Field Summary
static String DEFAULT
          Policy for a default context.
static String DISABLED
          Policy for a disabled context.
static String[] POLICIES
          Possible policies.
static String PRIVATE
          Policy for a private context.
static String RESERVED
          Policy for a reserved context.
 
Method Summary
 String getBaseName(URL url)
           
 String getDefaultDeploymentPolicy()
           
 String[] getPolicies()
           
 String getPrefix(URL url)
           
 String getVersionID(URL url)
           
 boolean isVersioningEnabled()
           
 void setDefaultDeploymentPolicy(String defaultPolicy)
           
 

Field Detail

DEFAULT

static final String DEFAULT
Policy for a default context. All users that cannot access other contexts will access the default context.

See Also:
Constant Field Values

DISABLED

static final String DISABLED
Policy for a disabled context. Only old users on that context are allowed to access it, new users never get redirected to such a context.

See Also:
Constant Field Values

RESERVED

static final String RESERVED
Policy for a reserved context. Only users that know the exact address of this context can access it.

See Also:
Constant Field Values

PRIVATE

static final String PRIVATE
Policy for a private context.

See Also:
Constant Field Values

POLICIES

static final String[] POLICIES
Possible policies.

Method Detail

getPolicies

String[] getPolicies()
Returns:
Possible policies.

isVersioningEnabled

boolean isVersioningEnabled()
Returns:
Whether versioning is enabled.

getDefaultDeploymentPolicy

String getDefaultDeploymentPolicy()
Returns:
The default deployment policy.

setDefaultDeploymentPolicy

void setDefaultDeploymentPolicy(String defaultPolicy)
                                throws IllegalArgumentException
Parameters:
defaultPolicy - Default deployment policy to set.
Throws:
IllegalArgumentException - If defaultPolicy is not in POLICIES.

getVersionID

String getVersionID(URL url)
Parameters:
url - JAR, WAR or EAR file to read the version ID from.
Returns:
Version ID of url, null if none found.

getPrefix

String getPrefix(URL url)
Parameters:
url - JAR or EAR object to create a JNDI prefix from.
Returns:
JNDI prefix for url, null if none found.

getBaseName

String getBaseName(URL url)
Parameters:
url - JAR, WAR or EAR object to get the base name for. The base name is used when creating the JNDI naming prefix.
Returns:
Base name for URL, null if none found.


Copyright ? 2009 OW2 Consortium. All Rights Reserved.