Skip to content

Commit

Permalink
Renamed org.apache.wicket.security to org.wicketstuff.security
Browse files Browse the repository at this point in the history
  • Loading branch information
papegaaij committed Apr 12, 2011
1 parent a2f3b65 commit 42908df
Show file tree
Hide file tree
Showing 173 changed files with 919 additions and 918 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive;
package org.wicketstuff.security.hive;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;

import org.apache.wicket.security.hive.authentication.Subject;
import org.apache.wicket.security.hive.authorization.Permission;
import org.apache.wicket.security.hive.authorization.Principal;
import org.apache.wicket.security.util.ManyToManyMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wicketstuff.security.hive.authentication.Subject;
import org.wicketstuff.security.hive.authorization.Permission;
import org.wicketstuff.security.hive.authorization.Principal;
import org.wicketstuff.security.util.ManyToManyMap;

/**
* Basic implementation of a Hive. It contains basic add methods to facilitate
Expand Down Expand Up @@ -136,7 +136,7 @@ public final void addPermission(Principal principal, Permission permission)
}

/**
* @see org.apache.wicket.security.hive.Hive#containsPrincipal(org.apache.wicket.security.hive.authorization.Principal)
* @see org.wicketstuff.security.hive.Hive#containsPrincipal(org.wicketstuff.security.hive.authorization.Principal)
*/
public final boolean containsPrincipal(Principal principal)
{
Expand Down Expand Up @@ -177,8 +177,8 @@ protected void cacheResult(Subject subject, Permission permission, boolean resul
}

/**
* @see org.apache.wicket.security.hive.Hive#hasPermission(org.apache.wicket.security.hive.authentication.Subject,
* org.apache.wicket.security.hive.authorization.Permission)
* @see org.wicketstuff.security.hive.Hive#hasPermission(org.wicketstuff.security.hive.authentication.Subject,
* org.wicketstuff.security.hive.authorization.Permission)
*/
public final boolean hasPermission(Subject subject, Permission permission)
{
Expand Down Expand Up @@ -247,7 +247,7 @@ private final boolean hasPrincipal(Subject subject, Set<Principal> principalSet)
}

/**
* @see org.apache.wicket.security.hive.Hive#containsPermission(org.apache.wicket.security.hive.authorization.Permission)
* @see org.wicketstuff.security.hive.Hive#containsPermission(org.wicketstuff.security.hive.authorization.Permission)
*/
public final boolean containsPermission(Permission permission)
{
Expand All @@ -256,7 +256,7 @@ public final boolean containsPermission(Permission permission)

/**
*
* @see org.apache.wicket.security.hive.Hive#getPermissions(org.apache.wicket.security.hive.authorization.Principal)
* @see org.wicketstuff.security.hive.Hive#getPermissions(org.wicketstuff.security.hive.authorization.Principal)
*/
public final Set<Permission> getPermissions(Principal principal)
{
Expand All @@ -268,7 +268,7 @@ public final Set<Permission> getPermissions(Principal principal)

/**
*
* @see org.apache.wicket.security.hive.Hive#getPrincipals(org.apache.wicket.security.hive.authorization.Permission)
* @see org.wicketstuff.security.hive.Hive#getPrincipals(org.wicketstuff.security.hive.authorization.Permission)
*/
public final Set<Principal> getPrincipals(Permission permission)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive;
package org.wicketstuff.security.hive;

import java.security.Policy;
import java.util.Set;

import org.apache.wicket.security.hive.authentication.Subject;
import org.apache.wicket.security.hive.authorization.Permission;
import org.apache.wicket.security.hive.authorization.Principal;
import org.wicketstuff.security.hive.authentication.Subject;
import org.wicketstuff.security.hive.authorization.Permission;
import org.wicketstuff.security.hive.authorization.Principal;

/**
* A Hive contains the security policy for the system, much like the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive;
package org.wicketstuff.security.hive;

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

import org.apache.wicket.security.hive.config.HiveFactory;
import org.wicketstuff.security.hive.config.HiveFactory;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive;
package org.wicketstuff.security.hive;

import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.wicket.security.hive.authentication.Subject;
import org.apache.wicket.security.hive.authorization.Permission;
import org.wicketstuff.security.hive.authentication.Subject;
import org.wicketstuff.security.hive.authorization.Permission;

/**
* A very simple caching mechanism on top of {@link BasicHive}. If you want more control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authentication;
package org.wicketstuff.security.hive.authentication;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import org.apache.wicket.security.hive.authorization.Principal;
import org.wicketstuff.security.hive.authorization.Principal;


/**
Expand All @@ -43,23 +43,23 @@ public class BaseSubject implements Subject
private Set<Principal> readOnlyPrincipals = Collections.unmodifiableSet(principals);

/**
* @see org.apache.wicket.security.hive.authentication.Subject#getPrincipals()
* @see org.wicketstuff.security.hive.authentication.Subject#getPrincipals()
*/
public final Set<Principal> getPrincipals()
{
return readOnlyPrincipals;
}

/**
* @see org.apache.wicket.security.hive.authentication.Subject#isReadOnly()
* @see org.wicketstuff.security.hive.authentication.Subject#isReadOnly()
*/
public final boolean isReadOnly()
{
return readOnly;
}

/**
* @see org.apache.wicket.security.hive.authentication.Subject#setReadOnly()
* @see org.wicketstuff.security.hive.authentication.Subject#setReadOnly()
*/
public final void setReadOnly()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authentication;
package org.wicketstuff.security.hive.authentication;

import org.apache.wicket.security.authentication.LoginException;
import org.wicketstuff.security.authentication.LoginException;

/**
* A LoginContext is little more than a factory to create a {@link Subject} and can be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authentication;
package org.wicketstuff.security.hive.authentication;

import java.io.Serializable;
import java.util.Set;

import org.apache.wicket.security.hive.authorization.Principal;
import org.wicketstuff.security.hive.authorization.Principal;

/**
* Subject represents (part of) an authenticated entity, such as an individual,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authentication;
package org.wicketstuff.security.hive.authentication;

import org.apache.wicket.security.authentication.LoginException;
import org.wicketstuff.security.authentication.LoginException;

/**
* Simple {@link LoginContext} for a username and password, which may or may not be
Expand Down Expand Up @@ -96,7 +96,7 @@ protected UsernamePasswordContext(String username, String password, int sortOrde
/**
* The username and password are always null after this method returns.
*
* @see org.apache.wicket.security.hive.authentication.LoginContext#login()
* @see org.wicketstuff.security.hive.authentication.LoginContext#login()
*/
@Override
public final Subject login() throws LoginException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authorization;
package org.wicketstuff.security.hive.authorization;

import org.apache.wicket.security.hive.authentication.Subject;
import org.wicketstuff.security.hive.authentication.Subject;

/**
* Principal used for permissions granted to everyone, regardless of an authenticated
Expand Down Expand Up @@ -52,7 +52,7 @@ public String getName()
/**
* Always returns true.
*
* @see org.apache.wicket.security.hive.authorization.Principal#implies(org.apache.wicket.security.hive.authentication.Subject)
* @see org.wicketstuff.security.hive.authorization.Principal#implies(org.wicketstuff.security.hive.authentication.Subject)
*/
public boolean implies(Subject subject)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authorization;
package org.wicketstuff.security.hive.authorization;

import java.io.Serializable;

import org.apache.wicket.security.hive.authorization.permissions.ActionPermission;
import org.wicketstuff.security.hive.authorization.permissions.ActionPermission;

/**
* Abstract class for representing access to a system resource. All permissions have a
Expand Down Expand Up @@ -49,7 +49,7 @@
* All permissions must at least have a public constructor accepting a String parameter
* which will be used as name for the permission. Note that the {@link ActionPermission}
* should also have a 2 argument constructor accepting a string as the name and a second
* {@link org.apache.wicket.security.actions.WaspAction} parameter to indicate which
* {@link org.wicketstuff.security.actions.WaspAction} parameter to indicate which
* actions are allowed.
*
* @author marrink
Expand Down Expand Up @@ -139,7 +139,7 @@ public Permission(String name)
/**
* Returns the name of this Permission. For example, in the case of a
*
* <code>org.apache.wicket.security.hive.authorization.permissions.ComponentPermission</code>
* <code>org.wicketstuff.security.hive.authorization.permissions.ComponentPermission</code>
* , the name will be a component path.
*
* @return the name of this Permission.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authorization;
package org.wicketstuff.security.hive.authorization;

import java.io.Serializable;

import org.apache.wicket.security.hive.authentication.Subject;
import org.wicketstuff.security.hive.authentication.Subject;

/**
* This interface represents the abstract notion of a principal, which can be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authorization;
package org.wicketstuff.security.hive.authorization;

import org.apache.wicket.security.hive.authentication.Subject;
import org.wicketstuff.security.hive.authentication.Subject;

/**
* A very simple principal. It does not imply any subject on its own. This is only
Expand Down Expand Up @@ -46,7 +46,7 @@ public SimplePrincipal(String name)
}

/**
* @see org.apache.wicket.security.hive.authorization.Principal#getName()
* @see org.wicketstuff.security.hive.authorization.Principal#getName()
*/
public final String getName()
{
Expand All @@ -56,7 +56,7 @@ public final String getName()
/**
* By default this principal does not imply any additional subjects.
*
* @see org.apache.wicket.security.hive.authorization.Principal#implies(org.apache.wicket.security.hive.authentication.Subject)
* @see org.wicketstuff.security.hive.authorization.Principal#implies(org.wicketstuff.security.hive.authentication.Subject)
*/
public boolean implies(Subject subject)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authorization.permissions;
package org.wicketstuff.security.hive.authorization.permissions;

import org.apache.wicket.security.actions.Inherit;
import org.apache.wicket.security.actions.WaspAction;
import org.apache.wicket.security.hive.authorization.Permission;
import org.apache.wicket.security.hive.config.HiveFactory;
import org.wicketstuff.security.actions.Inherit;
import org.wicketstuff.security.actions.WaspAction;
import org.wicketstuff.security.hive.authorization.Permission;
import org.wicketstuff.security.hive.config.HiveFactory;

/**
* Base class for any Permission that uses actions. Each implementation of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.authorization.permissions;
package org.wicketstuff.security.hive.authorization.permissions;

import org.apache.wicket.security.actions.ActionFactory;
import org.apache.wicket.security.actions.AllActions;
import org.apache.wicket.security.actions.Enable;
import org.apache.wicket.security.actions.Render;
import org.apache.wicket.security.actions.WaspAction;
import org.apache.wicket.security.hive.authorization.Permission;
import org.wicketstuff.security.actions.ActionFactory;
import org.wicketstuff.security.actions.AllActions;
import org.wicketstuff.security.actions.Enable;
import org.wicketstuff.security.actions.Render;
import org.wicketstuff.security.actions.WaspAction;
import org.wicketstuff.security.hive.authorization.Permission;

/**
* Permission that implies all other permissions, when created with the "all" action. If
Expand Down Expand Up @@ -77,7 +77,7 @@ public AllPermissions(String name, WaspAction actions)
* it only implies other {@link ActionPermission}s who's actions are implied by this
* permission's actions.
*
* @see org.apache.wicket.security.hive.authorization.permissions.ActionPermission#implies(org.apache.wicket.security.hive.authorization.Permission)
* @see org.wicketstuff.security.hive.authorization.permissions.ActionPermission#implies(org.wicketstuff.security.hive.authorization.Permission)
*/
@Override
public boolean implies(Permission permission)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.security.hive.config;
package org.wicketstuff.security.hive.config;

import org.apache.wicket.security.hive.Hive;
import org.apache.wicket.security.hive.HiveMind;
import org.wicketstuff.security.hive.Hive;
import org.wicketstuff.security.hive.HiveMind;

/**
* HiveFactory creates {@link Hive}s to be registered by the {@link HiveMind}.
Expand Down
Loading

0 comments on commit 42908df

Please sign in to comment.