Skip to content

Commit

Permalink
Regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Oct 10, 2011
1 parent eb5a05f commit 5d93628
Show file tree
Hide file tree
Showing 8 changed files with 2,031 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@
* @generated
*/
public class PermissionServiceSoap {
/**
* Checks to see if the group has permission to the resource.
*
* @param groupId the primary key of the group
* @param resourceId the primary key of the resource
* @throws PortalException if the group did not have permission to the
resource, or if a group or resource with the primary key could
not be found or was invalid
* @throws SystemException if a system exception occurred
*/
public static void checkPermission(long groupId, long resourceId)
throws RemoteException {
try {
Expand All @@ -76,6 +86,17 @@ public static void checkPermission(long groupId, long resourceId)
}
}

/**
* Checks to see if the group has permission to the service.
*
* @param groupId the primary key of the group
* @param name the service name
* @param primKey the primary key of the service
* @throws PortalException if the group did not have permission to the
service, if a group with the primary key could not be found or
if the permission information was invalid
* @throws SystemException if a system exception occurred
*/
public static void checkPermission(long groupId, java.lang.String name,
long primKey) throws RemoteException {
try {
Expand All @@ -88,6 +109,17 @@ public static void checkPermission(long groupId, java.lang.String name,
}
}

/**
* Checks to see if the group has permission to the service.
*
* @param groupId the primary key of the group
* @param name the service name
* @param primKey the primary key of the service
* @throws PortalException if the group did not have permission to the
service, if a group with the primary key could not be found or
if the permission information was invalid
* @throws SystemException if a system exception occurred
*/
public static void checkPermission(long groupId, java.lang.String name,
java.lang.String primKey) throws RemoteException {
try {
Expand All @@ -100,6 +132,17 @@ public static void checkPermission(long groupId, java.lang.String name,
}
}

/**
* Returns <code>true</code> if the group has permission to perform the
* action on the resource.
*
* @param groupId the primary key of the group
* @param actionId the action's ID
* @param resourceId the primary key of the resource
* @return <code>true</code> if the group has permission to perform the
action on the resource; <code>false</code> otherwise
* @throws SystemException if a system exception occurred
*/
public static boolean hasGroupPermission(long groupId,
java.lang.String actionId, long resourceId) throws RemoteException {
try {
Expand All @@ -115,6 +158,17 @@ public static boolean hasGroupPermission(long groupId,
}
}

/**
* Returns <code>true</code> if the user has permission to perform the
* action on the resource.
*
* @param userId the primary key of the user
* @param actionId the action's ID
* @param resourceId the primary key of the resource
* @return <code>true</code> if the user has permission to perform the
action on the resource; <code>false</code> otherwise
* @throws SystemException if a system exception occurred
*/
public static boolean hasUserPermission(long userId,
java.lang.String actionId, long resourceId) throws RemoteException {
try {
Expand All @@ -130,6 +184,29 @@ public static boolean hasUserPermission(long userId,
}
}

/**
* Returns <code>true</code> if the user has permission to perform the
* action on the resources.
*
* <p>
* This method does not support resources managed by the resource block
* system.
* </p>
*
* @param userId the primary key of the user
* @param groupId the primary key of the group containing the resource
* @param resources representations of the resource at each scope level
returned by {@link
com.liferay.portal.security.permission.AdvancedPermissionChecker#getResources(
long, long, String, String, String)}
* @param actionId the action's ID
* @param permissionCheckerBag the permission checker bag
* @return <code>true</code> if the user has permission to perform the
action on the resources; <code>false</code> otherwise
* @throws PortalException if a resource action based on any one of the
resources and the action ID could not be found
* @throws SystemException if a system exception occurred
*/
public static boolean hasUserPermissions(long userId, long groupId,
com.liferay.portal.model.ResourceSoap[] resources,
java.lang.String actionId,
Expand All @@ -150,6 +227,17 @@ public static boolean hasUserPermissions(long userId, long groupId,
}
}

/**
* Sets the group's permissions to perform the actions on the resource,
* replacing the group's existing permissions on the resource.
*
* @param groupId the primary key of the group
* @param actionIds the primary keys of the actions
* @param resourceId the primary key of the resource
* @throws PortalException if a group with the primary key could not be
found or if the group did not have permission to the resource
* @throws SystemException if a system exception occurred
*/
public static void setGroupPermissions(long groupId,
java.lang.String[] actionIds, long resourceId)
throws RemoteException {
Expand All @@ -164,6 +252,23 @@ public static void setGroupPermissions(long groupId,
}
}

/**
* Sets the entity's group permissions to perform the actions on the
* resource, replacing the entity's existing group permissions on the
* resource. Only {@link com.liferay.portal.model.Organization} and {@link
* com.liferay.portal.model.UserGroup} class entities are supported.
*
* @param className the class name of an organization or user group
* @param classPK the primary key of the class
* @param groupId the primary key of the group
* @param actionIds the primary keys of the actions
* @param resourceId the primary key of the resource
* @throws PortalException if the group did not have permission to the
resource, if an entity with the class name and primary key could
not be found, or if the entity's associated group could not be
found
* @throws SystemException if a system exception occurred
*/
public static void setGroupPermissions(java.lang.String className,
java.lang.String classPK, long groupId, java.lang.String[] actionIds,
long resourceId) throws RemoteException {
Expand All @@ -178,6 +283,21 @@ public static void setGroupPermissions(java.lang.String className,
}
}

/**
* Sets the organization permission to perform the actions on the resource
* for a particular group, replacing the organization's existing
* permissions on the resource.
*
* @param organizationId the primary key of the organization
* @param groupId the primary key of the group in which to scope the
permissions
* @param actionIds the primary keys of the actions
* @param resourceId the primary key of the resource
* @throws PortalException if the group did not have permission to the
resource or if an organization with the primary key could not be
found
* @throws SystemException if a system exception occurred
*/
public static void setOrgGroupPermissions(long organizationId,
long groupId, java.lang.String[] actionIds, long resourceId)
throws RemoteException {
Expand All @@ -192,6 +312,21 @@ public static void setOrgGroupPermissions(long organizationId,
}
}

/**
* Sets the role's permissions to perform the action on the named resource,
* replacing the role's existing permissions on the resource.
*
* @param roleId the primary key of the role
* @param groupId the primary key of the group
* @param name the resource name
* @param scope the resource scope
* @param primKey the resource primKey
* @param actionId the action's ID
* @throws PortalException if the group did not have permission to the role
or if the scope was {@link
com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
* @throws SystemException if a system exception occurred
*/
public static void setRolePermission(long roleId, long groupId,
java.lang.String name, int scope, java.lang.String primKey,
java.lang.String actionId) throws RemoteException {
Expand All @@ -206,6 +341,18 @@ public static void setRolePermission(long roleId, long groupId,
}
}

/**
* Sets the role's permissions to perform the actions on the resource,
* replacing the role's existing permissions on the resource.
*
* @param roleId the primary key of the role
* @param groupId the primary key of the group
* @param actionIds the primary keys of the actions
* @param resourceId the primary key of the resource
* @throws PortalException if the group did not have permission to the
resource or if a role with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static void setRolePermissions(long roleId, long groupId,
java.lang.String[] actionIds, long resourceId)
throws RemoteException {
Expand All @@ -220,6 +367,18 @@ public static void setRolePermissions(long roleId, long groupId,
}
}

/**
* Sets the user's permissions to perform the actions on the resource,
* replacing the user's existing permissions on the resource.
*
* @param userId the primary key of the user
* @param groupId the primary key of the group
* @param actionIds the primary keys of the actions
* @param resourceId the primary key of the resource
* @throws PortalException if the group did not have permission to the
resource or if a user with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static void setUserPermissions(long userId, long groupId,
java.lang.String[] actionIds, long resourceId)
throws RemoteException {
Expand All @@ -234,6 +393,15 @@ public static void setUserPermissions(long userId, long groupId,
}
}

/**
* Removes the permission from the role.
*
* @param roleId the primary key of the role
* @param groupId the primary key of the group
* @param permissionId the primary key of the permission
* @throws PortalException if the group did not have permission to the role
* @throws SystemException if a system exception occurred
*/
public static void unsetRolePermission(long roleId, long groupId,
long permissionId) throws RemoteException {
try {
Expand All @@ -247,6 +415,19 @@ public static void unsetRolePermission(long roleId, long groupId,
}
}

/**
* Removes the role's permissions to perform the action on the named
* resource with the scope and primKey.
*
* @param roleId the primary key of the role
* @param groupId the primary key of the group
* @param name the resource name
* @param scope the resource scope
* @param primKey the resource primKey
* @param actionId the action's ID
* @throws PortalException if the group did not have permission to the role
* @throws SystemException if a system exception occurred
*/
public static void unsetRolePermission(long roleId, long groupId,
java.lang.String name, int scope, java.lang.String primKey,
java.lang.String actionId) throws RemoteException {
Expand All @@ -261,6 +442,18 @@ public static void unsetRolePermission(long roleId, long groupId,
}
}

/**
* Removes the role's permissions to perform the action on the named
* resource.
*
* @param roleId the primary key of the role
* @param groupId the primary key of the group
* @param name the resource name
* @param scope the resource scope
* @param actionId the action's ID
* @throws PortalException if the group did not have permission to the role
* @throws SystemException if a system exception occurred
*/
public static void unsetRolePermissions(long roleId, long groupId,
java.lang.String name, int scope, java.lang.String actionId)
throws RemoteException {
Expand All @@ -275,6 +468,17 @@ public static void unsetRolePermissions(long roleId, long groupId,
}
}

/**
* Removes the user's permissions to perform the actions on the resource.
*
* @param userId the primary key of the user
* @param groupId the primary key of the group
* @param actionIds the primary keys of the actions
* @param resourceId the primary key of the resource
* @throws PortalException if the group did not have permission to the
resource
* @throws SystemException if a system exception occurred
*/
public static void unsetUserPermissions(long userId, long groupId,
java.lang.String[] actionIds, long resourceId)
throws RemoteException {
Expand Down
4 changes: 4 additions & 0 deletions portal-service/src/com/liferay/portal/model/Layout.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ public boolean isSelected(boolean selectable,

public boolean isTypeURL();

public void setGroupId(long groupId);

public void setPrivateLayout(boolean privateLayout);

public void setTypeSettings(java.lang.String typeSettings);

public void setTypeSettingsProperties(
Expand Down
Loading

0 comments on commit 5d93628

Please sign in to comment.